Update bedroom motion to not turn on lights when watching tv
This commit is contained in:
parent
5f22b3f6eb
commit
25d5022813
1 changed files with 20 additions and 1 deletions
|
@ -14,7 +14,26 @@
|
||||||
entity_id: input_select.home_mode
|
entity_id: input_select.home_mode
|
||||||
state: Day
|
state: Day
|
||||||
action:
|
action:
|
||||||
- service: script.bedroom_lights_on
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: media_player.bedroom_tv
|
||||||
|
state: 'on'
|
||||||
|
sequence:
|
||||||
|
- choose:
|
||||||
|
- conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: sensor.bedroom_tv_media_input_source
|
||||||
|
state: HDMI2
|
||||||
|
- condition: not
|
||||||
|
conditions:
|
||||||
|
- condition: state
|
||||||
|
entity_id: media_player.bedroom_atv
|
||||||
|
state: playing
|
||||||
|
sequence:
|
||||||
|
- service: script.bedroom_lights_on
|
||||||
|
default:
|
||||||
|
- service: script.bedroom_lights_on
|
||||||
|
|
||||||
- id: bedroom-motion-off
|
- id: bedroom-motion-off
|
||||||
alias: '[Bedroom] Motion Off'
|
alias: '[Bedroom] Motion Off'
|
||||||
|
|
Loading…
Reference in a new issue