33 lines
807 B
YAML
33 lines
807 B
YAML
|
- id: bedroom_tv_button_off
|
||
|
alias: '[Bedroom] TV button off'
|
||
|
mode: single
|
||
|
trigger:
|
||
|
- device_id: 4d5298037e93ba11438409bff01b5005
|
||
|
domain: zha
|
||
|
platform: device
|
||
|
type: remote_button_short_press
|
||
|
subtype: turn_off
|
||
|
action:
|
||
|
- service: switch.turn_off
|
||
|
target:
|
||
|
entity_id: switch.bedroom_mitv_on_off
|
||
|
- delay:
|
||
|
seconds: 1
|
||
|
- service: switch.turn_on
|
||
|
target:
|
||
|
entity_id: switch.bedroom_mitv_on_off
|
||
|
|
||
|
- id: bedroom_tv_button_on
|
||
|
alias: '[Bedroom] TV button on'
|
||
|
mode: single
|
||
|
trigger:
|
||
|
- device_id: 4d5298037e93ba11438409bff01b5005
|
||
|
domain: zha
|
||
|
platform: device
|
||
|
type: remote_button_short_press
|
||
|
subtype: turn_on
|
||
|
action:
|
||
|
- service: media_player.toggle
|
||
|
target:
|
||
|
entity_id: media_player.bedroom_tv
|