From a999a7ec6dae9f986565e3c7784045e883e250f4 Mon Sep 17 00:00:00 2001 From: Przemek Grondek Date: Fri, 10 Dec 2021 00:25:17 +0100 Subject: [PATCH] Fix hallway automation sensor --- configuration/automations/hallway.yaml | 20 ++++++++++++++------ 1 file changed, 14 insertions(+), 6 deletions(-) diff --git a/configuration/automations/hallway.yaml b/configuration/automations/hallway.yaml index 14de4bc..44c947b 100644 --- a/configuration/automations/hallway.yaml +++ b/configuration/automations/hallway.yaml @@ -2,16 +2,24 @@ alias: '[Hallway] Super sensor reset' mode: restart trigger: - - entity_id: binary_sensor.hallway_motion_sensor + - platform: state + entity_id: binary_sensor.hallway_motion_sensor for: 00:00:05 from: 'off' - platform: state to: 'on' action: - - data_template: - entity_id: binary_sensor.hallway_motion_sensor - state: 'off' - service: python_script.set_state +# - service: python_script.set_state +# data_template: +# entity_id: binary_sensor.hallway_motion_sensor +# 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 alias: '[Hallway] Button single press'