I recently swapped from using deconz to using ZHA. Everything seems to have gone fine except I cant seem to get my automations to work with the binary sensors in my philips motion sensors.
I can watch the states of “binary_sensor.samjin_motion_aec00c01_ias_zone” and see that when it detects motion it toggles from off to on. However, my automations aren’t acting on this like they used to with deconz. I have attached the Automation Config generated with the motion sensor light blueprint. Does anyone see a reason this fails now?
mode: restart
max_exceeded: silent
trigger:
platform: state
entity_id: binary_sensor.samjin_motion_aec00c01_ias_zone
from: 'off'
to: 'on'
action:
- alias: Turn on the light
service: light.turn_on
target:
entity_id: switch.garage_hall
- alias: Wait until there is no motion from device
wait_for_trigger:
platform: state
entity_id: binary_sensor.samjin_motion_aec00c01_ias_zone
from: 'on'
to: 'off'
- alias: Wait the number of seconds that has been set
delay: 181
- alias: Turn off the light
service: light.turn_off
target:
entity_id: switch.garage_hall
id: '1637782542036'
alias: Motion-activated Light
description: ''