hansen-hasst/packages/office/button.yaml

114 lines
3.3 KiB
YAML
Raw Normal View History

2022-12-28 16:54:28 +00:00
automation:
# Living Room button turn light off
- alias: office_light_button_turn_off
trigger:
- device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- type: turn_off
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
domain: light
- type: turn_off
2023-07-17 11:39:40 +00:00
entity_id: light.office_switch_socket
device_id: 1fcba92f6a53183e10c1dc35a9bb82ce
2022-12-28 16:54:28 +00:00
domain: light
# Office button turn light on
- alias: office_light_button_turn_on
trigger:
- device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- type: turn_on
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
domain: light
# Office button turn light on long
- alias: office_light_button_turn_on_long
trigger:
- device_id: ca1b84b5a0bc1aaa9e1a6b856d77b37e
domain: zha
platform: device
type: remote_button_long_press
subtype: dim_up
action:
- type: turn_on
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
domain: light
- type: turn_on
2023-07-17 11:39:40 +00:00
entity_id: light.office_switch_socket
device_id: 1fcba92f6a53183e10c1dc35a9bb82ce
2023-07-14 23:04:33 +00:00
domain: light
#### Remote ####
# Office remote turn light on
- alias: office_light_remote_turn_on
trigger:
- device_id: 8cc9ef0e9155403ae478abf46bd884e4
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_on
action:
- type: turn_on
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
domain: light
# Office remote turn light off
- alias: office_light_remote_turn_off
trigger:
- device_id: 8cc9ef0e9155403ae478abf46bd884e4
domain: zha
platform: device
type: remote_button_short_press
subtype: turn_off
action:
- type: turn_off
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
domain: light
2023-07-17 11:39:40 +00:00
- type: turn_off
entity_id: light.office_switch_socket
device_id: 1fcba92f6a53183e10c1dc35a9bb82ce
domain: light
2023-07-14 23:04:33 +00:00
# Office remote turn pc on
2023-07-17 11:39:40 +00:00
- alias: office_remote_turn_on_pc
2023-07-14 23:04:33 +00:00
trigger:
- device_id: 8cc9ef0e9155403ae478abf46bd884e4
domain: zha
platform: device
type: remote_button_short_press
subtype: left
action:
- type: turn_on
2023-07-17 11:39:40 +00:00
entity_id: light.office_switch_socket
device_id: 1fcba92f6a53183e10c1dc35a9bb82ce
2023-07-14 23:04:33 +00:00
domain: light
2023-07-17 11:39:40 +00:00
- service: switch.turn_on
target:
entity_id: switch.tower
2023-07-14 23:04:33 +00:00
# Office remote turn all off
- alias: office_light_remote_turn_off_all
trigger:
- device_id: 8cc9ef0e9155403ae478abf46bd884e4
domain: zha
platform: device
type: remote_button_long_press
2024-04-24 19:58:21 +00:00
subtype: long_down
2023-07-14 23:04:33 +00:00
action:
- type: turn_off
entity_id: light.office_bulb
device_id: ce016fbf6d9602740bbabe1fe9915c88
2022-12-28 16:54:28 +00:00
domain: light