mirror of
https://github.com/thejeffreystone/home-assistant-configuration.git
synced 2025-06-14 03:01:11 +00:00
Now the theater light shouldnt turn off when we dont want it to.
This commit is contained in:
parent
787fff4004
commit
2791f04209
@ -280,16 +280,9 @@ script:
|
|||||||
sequence:
|
sequence:
|
||||||
- condition: and
|
- condition: and
|
||||||
conditions:
|
conditions:
|
||||||
- condition: template
|
- condition: state
|
||||||
value_template: >
|
entity_id: media_player.theater_tv
|
||||||
{%- if states.media_player.home_theater != "playing" -%}
|
state: 'off'
|
||||||
true
|
|
||||||
{%- endif -%}
|
|
||||||
- condition: template
|
|
||||||
value_template: >
|
|
||||||
{%- if states.media_player.playstation_4 != "playing" -%}
|
|
||||||
true
|
|
||||||
{%- endif -%}
|
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: binary_sensor.theater_occupancy
|
entity_id: binary_sensor.theater_occupancy
|
||||||
state: 'off'
|
state: 'off'
|
||||||
|
Loading…
x
Reference in New Issue
Block a user