The above/below conditions no longer match equal values (#2757)
This commit is contained in:
parent
476449131c
commit
6c3476ae95
2 changed files with 5 additions and 5 deletions
|
@ -75,15 +75,15 @@ automation:
|
|||
# if light is off, force a 0, otherwise use the brightness value
|
||||
value_template: {% raw %}'{% if states.light.livingroom_ec.state == "on" %}{{ states.light.livingroom_ec.attributes.brightness }}{% else %}0{% endif %}'{% endraw %}
|
||||
# brightness below 50% (255 = 100%)
|
||||
below: 127
|
||||
below: 128
|
||||
- condition: numeric_state
|
||||
entity_id: light.kitchen_bar
|
||||
value_template: {% raw %}'{% if states.light.kitchen_bar.state == "on" %}{{ states.light.kitchen_bar.attributes.brightness }}{% else %}0{% endif %}'{% endraw %}
|
||||
below: 127
|
||||
below: 128
|
||||
- condition: numeric_state
|
||||
entity_id: light.kitchen_ceiling
|
||||
value_template: {% raw %}'{% if states.light.kitchen_ceiling.state == "on" %}{{ states.light.kitchen_ceiling.attributes.brightness }}{% else %}0{% endif %}'{% endraw %}
|
||||
below: 127
|
||||
below: 128
|
||||
|
||||
# Trigger a scene
|
||||
# You could add as many services or scenes as you'd like
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue