1
0

Fix hallway automation sensor

This commit is contained in:
Przemek Grondek 2021-12-10 00:25:17 +01:00
parent e7581717ff
commit a999a7ec6d

View File

@ -2,16 +2,24 @@
alias: '[Hallway] Super sensor reset' alias: '[Hallway] Super sensor reset'
mode: restart mode: restart
trigger: trigger:
- entity_id: binary_sensor.hallway_motion_sensor - platform: state
entity_id: binary_sensor.hallway_motion_sensor
for: 00:00:05 for: 00:00:05
from: 'off' from: 'off'
platform: state
to: 'on' to: 'on'
action: action:
- data_template: # - service: python_script.set_state
entity_id: binary_sensor.hallway_motion_sensor # data_template:
state: 'off' # entity_id: binary_sensor.hallway_motion_sensor
service: python_script.set_state # state: 'off'
- 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'
- id: hallway-button - id: hallway-button
alias: '[Hallway] Button single press' alias: '[Hallway] Button single press'