hansen-hasst/packages/livingroom/remote/remote.yaml
2023-07-15 01:04:33 +02:00

124 lines
3.5 KiB
YAML

automation:
# Living Room button turn light on
- alias: living_room_light_button_turn_on
trigger:
- device_id: 86384e5da7e890f4a7a84d186383d1c1
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- service: light.turn_on
target:
entity_id: light.livingroom_switch_lamp_table
# Living Room button turn light off
- alias: living_room_light_button_turn_off
trigger:
- device_id: 86384e5da7e890f4a7a84d186383d1c1
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- service: light.turn_off
target:
entity_id: light.livingroom_switch_lamp_table
# Living Room button Netflix
- alias: living_room_light_button_tv
trigger:
- device_id: 86384e5da7e890f4a7a84d186383d1c1
domain: zha
platform: device
type: remote_button_short_press
subtype: left
action:
- service: script.turn_on
target:
entity_id: script.netflix_and_chill
# Living Room button Spotify
- alias: living_room_light_button_music
trigger:
- device_id: 86384e5da7e890f4a7a84d186383d1c1
domain: zha
platform: device
type: remote_button_short_press
subtype: right
action:
- service: script.turn_on
target:
entity_id: script.denon_listen_music
# Living Room button Turn On
- alias: living_room_turn_on_all_lights
trigger:
- device_id: 86384e5da7e890f4a7a84d186383d1c1
domain: zha
platform: device
type: remote_button_long_release
subtype: dim_up
action:
- service: light.turn_on
target:
entity_id: light.living_room_lights
# Living Room button Turn Off
- alias: living_room_turn_off_everything
trigger:
- device_id: 86384e5da7e890f4a7a84d186383d1c1
domain: zha
platform: device
type: remote_button_long_release
subtype: dim_down
action:
- service: light.turn_off
target:
entity_id: light.living_room_lights
#- service: script.turn_on
# target:
# entity_id: script.denon_tv_turn_off
#### Door Button ####
# Living Room door button turn light on
- alias: livingroom_button_door_turn_on
trigger:
- device_id: 85e0a07a3b952671b37fd008f7b2a299
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- service: light.turn_on
target:
entity_id: light.livingroom_switch_lamp_table
- alias: livingroom_button_door_turn_off
trigger:
- device_id: 85e0a07a3b952671b37fd008f7b2a299
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- service: light.turn_off
target:
entity_id: light.livingroom_switch_lamp_table
- alias: livingroom_button_door_turn_off_long
trigger:
- device_id: 85e0a07a3b952671b37fd008f7b2a299
domain: zha
platform: device
type: remote_button_long_press
subtype: dim_down
action:
- service: light.turn_off
target:
entity_id: light.living_room_lights
- service: script.turn_on
target:
entity_id: script.denon_tv_turn_off