Created
March 21, 2022 12:27
-
-
Save TheRealSimon42/5081dd36ec99a6ef16d0be4724beff79 to your computer and use it in GitHub Desktop.
Edited for 1% = No mopping
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"use strict"; | |
module.exports = { | |
// S5-Max (https://github.com/homebridge-xiaomi-roborock-vacuum/homebridge-xiaomi-roborock-vacuum/issues/79#issuecomment-576246934) | |
gen1: [ | |
// 0% = Off | |
{ | |
homekitTopLevel: 1, | |
miLevel: 200, | |
name: "Off", | |
}, | |
// 1-35% = "Light" | |
{ | |
homekitTopLevel: 35, | |
miLevel: 201, | |
name: "Light", | |
}, | |
// 36-70% = "Medium" | |
{ | |
homekitTopLevel: 70, | |
miLevel: 202, | |
name: "Medium", | |
}, | |
// 71-100% = "High" | |
{ | |
homekitTopLevel: 100, | |
miLevel: 203, | |
name: "Hight", | |
}, | |
], | |
// S6-MaxV + Custom | |
"gen1+custom": [ | |
// 0% = Off | |
{ | |
homekitTopLevel: 1, | |
miLevel: 200, | |
name: "Off", | |
}, | |
// 1-25% = "Light" | |
{ | |
homekitTopLevel: 25, | |
miLevel: 201, | |
name: "Light", | |
}, | |
// 26-50% = "Medium" | |
{ | |
homekitTopLevel: 50, | |
miLevel: 202, | |
name: "Medium", | |
}, | |
// 51-75% = "High" | |
{ | |
homekitTopLevel: 75, | |
miLevel: 203, | |
name: "Hight", | |
}, | |
// 76-100% = "Custom" | |
{ | |
homekitTopLevel: 100, | |
miLevel: 204, | |
name: "Custom", | |
}, | |
], | |
}; |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment