ZHA, events, and wait_template

Tags: #<Tag:0x00007f3f15783498>

With 0.96 some of my Zigbee remotes were converted from binary_sensor to zha_event. In my automations I have various wait_template that depend on these remote inputs and I’m trying to make them work again.

  1. I can’t figure out how to have a wait_template with the zha_event. Is this possible?

  2. The data along with the zha_event seems like it could be formatted a little differently. device_id has a stable nwk address, but it does not contain the endpoint. unique_id has the endpoint but the short nwk address could change at some point.

  3. I also don’t understand why these things were converted to zha_event so if anyone can explain that it would make me feel better, I guess. :grinning:

Nope. You can make a automation read the events and flip an input boolean.

1 Like

Thanks, I hate it. :upside_down_face:

I also was looking at Node-RED and it looks promising, but it seems like it can’t wait on an event either.

Maybe use Python scripts?