Question about non-Motion ONVIF triggers/events

Current Development version likely to have breaking changes
Post Reply
joelgb
Posts: 10
Joined: Fri Jun 11, 2010 12:50 am

Question about non-Motion ONVIF triggers/events

Post by joelgb »

I have a camera with Alarm Inputs. (I understand some Doorbells have this too). When the contacts of the alarm input are closed/shorted it can raise an alarm, but this is a different ONVIF trigger than MotionAlarm

In ODM I see the Events for this input:
Topic: tns1:Device/Trigger/DigitalInput
Operation: Changed
Source: InputToken:1
Data: LogicalState:true (also reads "LogicalState:false" when Alarm input has cleared/expired)

I'm having some trouble getting ZoneMinder to react to them. My goal is that if the input is tripped, it will flag in ONVIF for ZoneMinder to start recording.

In ZM, I've changed ONVIF_ALARM_TEXT to DigitalInput ,but that doesn't seem to work and this error is logged:

Couldn't do initial event pull! Error 1 The requested wsa5__To or wsa__To does not exist., (null)
by zm_monitor.cpp Line 1225

I just barely understand all of this... Am I doing something wrong? Is a non-MotionAlarm ONVIF Event allowed in ZoneMinder ???

Thanks for any help.
Joel
User avatar
iconnor
Posts: 3197
Joined: Fri Oct 29, 2010 1:43 am
Location: Toronto
Contact:

Re: Question about non-Motion ONVIF triggers/events

Post by iconnor »

There is a wsa checbox on the ONVIF tab in monitor, try the opposite setting to what you've got. Not all cameras support this wsa stuff.
joelgb
Posts: 10
Joined: Fri Jun 11, 2010 12:50 am

Re: Question about non-Motion ONVIF triggers/events

Post by joelgb »

Thank you! That's what was needed.

Setting the ONVIF_ALARM_TEXT value to watch for Alarm Input works perfectly now.

Totally unrelated, but thank you for your work on issue #4099 where ONVIF events stop if a camera freaks out. I think this could fix some long-standing issues with my cameras and ZoneMinder!

-Joel
Post Reply