Page 1 of 1

Current Run State information extraction

Posted: Thu Aug 19, 2021 1:29 pm
by lk777
Hi,

ZM 1.36.5

I am using Home Assistant and Node-Red to automate ZoneMinder scheduling and data from/to ZoneMinder for a Security Alarm.

Everything works fine, but I would like to extract the current Run State information from ZoneMinder.

Is it possible to achieve?

Thanks in advance for any help.

Re: Current Run State information extraction

Posted: Thu Aug 19, 2021 8:40 pm
by lk777
I figured it out.

In Node-Red used mysql node to query zm database:

SELECT Name FROM `States` WHERE IsActive=1

Then passed results to Home Assistant Call Service node (input_text helper).