2021-12-06 22:31:28 +00:00
|
|
|
- id: hallway-motion-reset
|
|
|
|
alias: '[Hallway] Super sensor reset'
|
|
|
|
mode: restart
|
|
|
|
trigger:
|
2021-12-09 23:25:17 +00:00
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.hallway_motion_sensor
|
2021-12-06 22:31:28 +00:00
|
|
|
for: 00:00:05
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
|
|
|
action:
|
2021-12-09 23:25:17 +00:00
|
|
|
- service: zha.set_zigbee_cluster_attribute
|
|
|
|
data:
|
|
|
|
ieee: 00:15:8d:00:07:75:31:c0
|
|
|
|
endpoint_id: 1
|
|
|
|
cluster_id: 1280
|
|
|
|
cluster_type: in
|
|
|
|
attribute: 2
|
|
|
|
value: '0'
|
2021-12-06 22:31:28 +00:00
|
|
|
|
2021-11-12 01:35:44 +00:00
|
|
|
- id: hallway-button
|
|
|
|
alias: '[Hallway] Button single press'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: cc4f08a2e2f0e5aebc43b87164378795
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_short_press
|
|
|
|
subtype: remote_button_short_press
|
|
|
|
action:
|
|
|
|
- service: script.hallway_lights_toggle
|
|
|
|
|
|
|
|
- id: hallway-button-double
|
|
|
|
alias: '[Hallway] Button double press'
|
|
|
|
mode: single
|
|
|
|
trigger:
|
|
|
|
- device_id: cc4f08a2e2f0e5aebc43b87164378795
|
|
|
|
domain: zha
|
|
|
|
platform: device
|
|
|
|
type: remote_button_double_press
|
|
|
|
subtype: remote_button_double_press
|
|
|
|
action:
|
|
|
|
- service: script.leave_home
|
|
|
|
|
|
|
|
- id: hallway-motion-on
|
|
|
|
alias: '[Hallway] Motion On'
|
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.hallway_motion_sensor
|
|
|
|
from: 'off'
|
|
|
|
to: 'on'
|
2022-04-21 21:22:34 +00:00
|
|
|
condition:
|
|
|
|
- condition: numeric_state
|
2022-05-02 23:34:47 +00:00
|
|
|
entity_id: sensor.office_illuminance
|
2023-02-03 13:54:55 +00:00
|
|
|
below: '170'
|
2021-11-12 01:35:44 +00:00
|
|
|
action:
|
|
|
|
- service: script.hallway_lights_on
|
|
|
|
|
|
|
|
- id: hallway-motion-off
|
|
|
|
alias: '[Hallway] Motion Off'
|
|
|
|
mode: restart
|
|
|
|
trigger:
|
|
|
|
- platform: state
|
|
|
|
entity_id: binary_sensor.hallway_motion_sensor
|
|
|
|
from: 'on'
|
|
|
|
to: 'off'
|
2021-12-06 22:31:28 +00:00
|
|
|
for: 00:00:05
|
2021-11-12 01:35:44 +00:00
|
|
|
action:
|
|
|
|
- service: script.hallway_lights_off
|
|
|
|
|