Many updates

This commit is contained in:
2022-12-28 17:54:28 +01:00
parent 2bfa07019e
commit 900f180c69
19 changed files with 351 additions and 110 deletions

50
packages/office/button.yaml Executable file
View File

@ -0,0 +1,50 @@
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
entity_id: light.office_switch_socket
device_id: 343b205f3ed48a715e59c5490050150f
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
entity_id: light.office_switch_socket
device_id: 343b205f3ed48a715e59c5490050150f
domain: light

7
packages/office/pc.yaml Executable file
View File

@ -0,0 +1,7 @@
wake_on_lan:
switch:
- platform: wake_on_lan
mac: !secret tower_mac
name: tower