Actions based on camera motion (zoneminder)

Hi,

I have a couple of camera’s around the house using zoneminder. I have integrated zoneminder in HASS. Now I want to control some lights based on movement. For example turn on the garden lights for 1 minute if movement is detected.
I don’t think there is such an option in the zoneminder component by default, to detect motion. What is the suggested approach on this? Should I use zoneminder filters (http://zoneminder.readthedocs.io/en/stable/userguide/filterevents.html) to send a API request to HASS (https://developers.home-assistant.io/docs/en/external_api_rest.html)? Or is there a better approach?

Thanks

I posted one way of doing it, using motion installed on a Pi or Odroid, might give you some ideas.

I’m happy with it, though it’s not going to win any code beauty contests :slight_smile:

I don’t know Zoneminder beyond the name, so I couldn’t tell you if there’s a better way with that.

Hi,

great. I’ll try to adapt it to ZM based on your example. Thanks!