mirror of
https://github.com/Anonym-tsk/smart-domofon.git
synced 2026-01-27 12:50:46 +03:00
Fix brightness
This commit is contained in:
@@ -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;"
|
||||||
|
|||||||
Reference in New Issue
Block a user