Fix brightness

This commit is contained in:
Nikolay Vasilchuk
2021-10-15 21:02:44 +03:00
parent 3f475b3e82
commit ed516952e3

View File

@@ -9,7 +9,7 @@ number:
min_value: 0 min_value: 0
max_value: 10 max_value: 10
step: 1 step: 1
set_action: on_value:
then: then:
if: if:
condition: condition:
@@ -17,4 +17,4 @@ number:
then: then:
light.control: light.control:
id: rgb_led id: rgb_led
brightness: !lambda "return id(led_brightness).state / 10;" brightness: !lambda "return x > 0 ? x / 10 : 0.01;"