Re-map light brightness range

Home Assistant uses brightness range 0-255 whilst Tuya somewhere around
29-1092. This commit maps brightness between these two ranges.
This commit is contained in:
Pierre Ståhl
2020-10-13 22:17:41 +02:00
parent 47d2900a2c
commit 15a79ec690
3 changed files with 65 additions and 19 deletions

View File

@@ -57,6 +57,8 @@
"state_on": "On Value",
"state_off": "Off Value",
"brightness": "Brightness",
"brightness_lower": "Brightness Lower Value",
"brightness_upper": "Brightness Upper Value",
"color_temp": "Color Temperature"
}
}
@@ -94,6 +96,8 @@
"state_on": "On Value",
"state_off": "Off Value",
"brightness": "Brightness",
"brightness_lower": "Brightness Lower Value",
"brightness_upper": "Brightness Upper Value",
"color_temp": "Color Temperature"
}
},