Hi,
I want to enable my security camera’s strobe alarm light (on 3 Hikvision cameras) when the Alarm is enabled (Alarmo) and is Night time.
I have Node-Red installed and can enable/disable the camera with Hikvision ISAPI commands, but I don´t have enough experience and feel that I´m overcomplicating the task.
The way could be checking the current state of the alarm, and sending a trigger when the alarm is enabled (enabled night or enabled away), then allowing the payload during sunset-sunrise, and finally sending the ISAPI information to the cameras.
But in this way, if the alarm doesn´t modify it state, the camera will remain enabled even when the sun rises the next day.
What is the best way to manage both conditions? (alarm enabled AND night)
Thanks
Chris