2023-02-10 23:00:48 -05:00
|
|
|
- alias: Bedroom TV Time
|
|
|
|
description: "Put the purifier in night mode when the TV starts playing"
|
|
|
|
id: "331f421c-c0b6-41cf-98ce-2ab0126a335a"
|
|
|
|
mode: single
|
2023-02-10 22:10:08 -05:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2024-10-06 17:49:40 -04:00
|
|
|
- media_player.bedroom_tv
|
2023-02-10 22:10:08 -05:00
|
|
|
to: playing
|
|
|
|
condition: []
|
|
|
|
action:
|
|
|
|
- service: switch.turn_on
|
|
|
|
data: {}
|
|
|
|
target:
|
2025-01-06 22:28:38 -05:00
|
|
|
entity_id: switch.purifier_night_mode
|
2023-02-10 22:10:08 -05:00
|
|
|
|
2023-02-10 23:00:48 -05:00
|
|
|
- alias: Bedroom TV Time Over
|
2023-02-10 22:10:08 -05:00
|
|
|
description: ""
|
2023-02-10 23:00:48 -05:00
|
|
|
id: "826af719-2a40-431f-8f02-4fa935369c3e"
|
|
|
|
mode: single
|
2023-02-10 22:10:08 -05:00
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id:
|
2024-10-06 17:49:40 -04:00
|
|
|
- media_player.bedroom_tv
|
2023-02-10 22:10:08 -05:00
|
|
|
to: standby
|
|
|
|
condition: []
|
|
|
|
action:
|
|
|
|
- service: switch.turn_off
|
|
|
|
data: {}
|
|
|
|
target:
|
2025-01-06 22:28:38 -05:00
|
|
|
entity_id: switch.purifier_night_mode
|