#Trigger Z2M device update when event comes

1 messages · Page 1 of 1 (latest)

noble grove
#

So I have like 40 Zigbee battery operated devices that sleep most of them time and if I start update in Z2M, they won't start, unless they first send something and thus wakeup.
I have an idea to create automation that would somewhat monitor if any entity changed that belongs to the list of devices, then start the update on update entity.

In parallel, I have already a script and logic to:

  • Check if any zigbee device is currently updating, to ensure Zigbee network is not overloaded and thus packet being lost.
  • If no update, check if any update shall be updated (filtered by mqtt integration)
  • Start the device update from the list.

What would be the best generic way (single automation if possible) to automatically start the update process if:

  • Device, whose entity was update, shall be update
  • No other updates are underway.

I guess the first part is difficult to detect properly?

Why I want that. This way I can do the update during the day when person randomly triggers the event, or when devices during the day send temperature and humidity data, and do the update while I am not at home (like in gym, when nothing is critical if something goes wrong)