Get Staus of Hikvision camera parameter on HA dashboard

Hi
I´m trying to have a visual indicator in HA dashboard (lovelace) about a Hikvision camera. What I need is to know if the camera have the strobe light & beep alarm activated.
I get this information from a XML Get, in Node Red… but I can´t figure out how to get this translated as a visual indicator in the dashboard. (a switch, or binary sensor… but I can´t get it work)
Any tip from the experts???

Thank you!!

Chris

Post that XML Get if you want a more visual help, post the path of the infomation you want to catch. Then you should set that path as the state of a sensor. Then use that sensor in HA dashboard.

Hi,
Thank you Obaldius.
I´m posting the XML get response with security parameters enabled and disabled.
What I´m looking for is to have a sensor in lovelace showing if the camera alarm (security) is armed or not.

this is the XML Get with the security parameters turned off

<EventTrigger xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<script/>
<id>fielddetection-1</id>
<eventType>fielddetection</eventType>
<eventDescription>fielddetection Event trigger Information</eventDescription>
<videoInputChannelID>1</videoInputChannelID>
<dynVideoInputChannelID>1</dynVideoInputChannelID>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
<videoInputID>1</videoInputID>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
</EventTriggerNotificationList>
</EventTrigger>

this is the XML Get with the security parameters turned ON

<EventTrigger xmlns="http://www.hikvision.com/ver20/XMLSchema" version="2.0">
<script/>
<id>fielddetection-1</id>
<eventType>fielddetection</eventType>
<eventDescription>fielddetection Event trigger Information</eventDescription>
<videoInputChannelID>1</videoInputChannelID>
<dynVideoInputChannelID>1</dynVideoInputChannelID>
<EventTriggerNotificationList>
<EventTriggerNotification>
<id>email</id>
<notificationMethod>email</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>record-1</id>
<notificationMethod>record</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
<videoInputID>1</videoInputID>
</EventTriggerNotification>
<EventTriggerNotification>
<id>beep</id>
<notificationMethod>beep</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>center</id>
<notificationMethod>center</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
</EventTriggerNotification>
<EventTriggerNotification>
<id>whiteLight</id>
<notificationMethod>whiteLight</notificationMethod>
<notificationRecurrence>beginning</notificationRecurrence>
<WhiteLightAction>
<whiteLightDurationTime>0</whiteLightDurationTime>
</WhiteLightAction>
</EventTriggerNotification>
</EventTriggerNotificationList>
</EventTrigger>

Regards

Chris

I assume this comes in as a string from some NR node, could you post that node/flow please? That XML message is kind of weird but I’ll try to make something usable…

Thank you Obaldius

This is the idea here:
To turn on several security features on 3 security cameras under 2 conditions: the home alarm is on (on night or away mode) AND is night.
I also put 2 switches there to enable or disable this manually (StrobeOn/ StrobeOff) just to activate it at anytime regarding the conditions.
Then they are the cameras with the functions On and or… and the last colum is the “get status” function from where I want to get the status of this features and publish on the dashboard.

[{"id":"5caabfedce4684da","type":"tab","label":"Hik Alarm","disabled":false,"info":"","env":[]},{"id":"eaed690a9ebdee64","type":"server-state-changed","z":"5caabfedce4684da","name":"Alarm armed_night","server":"2328616d.4f48fe","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.casa","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"armed_night","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"true","valueType":"bool"},{"property":"topic","propertyType":"msg","value":"home/alarm","valueType":"str"}],"x":110,"y":40,"wires":[["2fd84c1b18168a47"],[]]},{"id":"2fd84c1b18168a47","type":"or-gate","z":"5caabfedce4684da","name":"Alarm ON","rules":[{"t":"true","propertyType":"msg","property":"payload","topic":"home/alarm"}],"outputTopic":"home/alarmOn","gateType":"or","emitOnlyIfTrue":false,"x":320,"y":100,"wires":[["539e707f27ee6608"]]},{"id":"e45912c4352ff12d","type":"server-state-changed","z":"5caabfedce4684da","name":"Alarm armed_away","server":"2328616d.4f48fe","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.casa","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"armed_away","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"true","valueType":"bool"},{"property":"topic","propertyType":"msg","value":"home/alarm","valueType":"str"}],"x":110,"y":100,"wires":[["2fd84c1b18168a47"],[]]},{"id":"539e707f27ee6608","type":"and-gate","z":"5caabfedce4684da","name":"Alarm + Night","rules":[{"t":"true","propertyType":"msg","property":"payload","topic":"home/alarmOn"},{"t":"eq","v":"true","vt":"str","propertyType":"msg","property":"payload","topic":"BigTimer"}],"outputTopic":"Strobe","gateType":"and","emitOnlyIfTrue":false,"x":540,"y":140,"wires":[["628659bd8ade3a3a"]]},{"id":"c111640b1c403c60","type":"server-state-changed","z":"5caabfedce4684da","name":"Alarm Disarmed","server":"2328616d.4f48fe","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.casa","entityidfiltertype":"exact","outputinitially":true,"state_type":"str","haltifstate":"disarmed","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":"0","forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"false","valueType":"bool"},{"property":"topic","propertyType":"msg","value":"home/alarm","valueType":"str"}],"x":100,"y":240,"wires":[["2fd84c1b18168a47","628659bd8ade3a3a"],[]]},{"id":"b9ef5d42f35e1912","type":"hikvisionUltimateXML","z":"5caabfedce4684da","name":"Strobe On 54","server":"459e2fd7c861a60a","xmlText":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<EventTrigger version=\"2.0\" xmlns=\"http://www.std-cgi.com/ver20/XMLSchema\">\r\n    <id>fielddetection-1</id>\r\n    <eventType>fielddetection</eventType>\r\n    <eventDescription>fielddetection Event trigger Information</eventDescription>\r\n    <videoInputChannelID>1</videoInputChannelID>\r\n    <dynVideoInputChannelID>1</dynVideoInputChannelID>\r\n    <EventTriggerNotificationList>\r\n        <EventTriggerNotification>\r\n            <id>email</id>\r\n            <notificationMethod>email</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>record-1</id>\r\n            <notificationMethod>record</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <videoInputID>1</videoInputID>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>beep</id>\r\n            <notificationMethod>beep</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>center</id>\r\n            <notificationMethod>center</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>whiteLight</id>\r\n            <notificationMethod>whiteLight</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <WhiteLightAction>\r\n                <whiteLightDurationTime>0</whiteLightDurationTime>\r\n            </WhiteLightAction>\r\n        </EventTriggerNotification>\r\n    </EventTriggerNotificationList>\r\n</EventTrigger>","path":"/ISAPI/Event/triggers/fielddetection-1","method":"PUT","x":990,"y":200,"wires":[[]]},{"id":"4e6ea4cfbd83ade7","type":"hikvisionUltimateXML","z":"5caabfedce4684da","name":"Strobe On 52","server":"fb40ac64326e12cd","xmlText":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<EventTrigger version=\"2.0\" xmlns=\"http://www.std-cgi.com/ver20/XMLSchema\">\r\n    <id>fielddetection-1</id>\r\n    <eventType>fielddetection</eventType>\r\n    <eventDescription>fielddetection Event trigger Information</eventDescription>\r\n    <videoInputChannelID>1</videoInputChannelID>\r\n    <dynVideoInputChannelID>1</dynVideoInputChannelID>\r\n    <EventTriggerNotificationList>\r\n        <EventTriggerNotification>\r\n            <id>email</id>\r\n            <notificationMethod>email</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>record-1</id>\r\n            <notificationMethod>record</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <videoInputID>1</videoInputID>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>beep</id>\r\n            <notificationMethod>beep</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>center</id>\r\n            <notificationMethod>center</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>whiteLight</id>\r\n            <notificationMethod>whiteLight</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <WhiteLightAction>\r\n                <whiteLightDurationTime>0</whiteLightDurationTime>\r\n            </WhiteLightAction>\r\n        </EventTriggerNotification>\r\n    </EventTriggerNotificationList>\r\n</EventTrigger>","path":"/ISAPI/Event/triggers/fielddetection-1","method":"PUT","x":990,"y":80,"wires":[[]]},{"id":"062333c9a4fb0eca","type":"hikvisionUltimateXML","z":"5caabfedce4684da","name":"Strobe Off 54","server":"459e2fd7c861a60a","xmlText":"<EventTrigger version=\"2.0\" xmlns=\"http://www.std-cgi.com/ver20/XMLSchema\">\r\n    <id>fielddetection-1</id>\r\n    <eventType>fielddetection</eventType>\r\n    <eventDescription>fielddetection Event trigger Information</eventDescription>\r\n    <videoInputChannelID>1</videoInputChannelID>\r\n    <dynVideoInputChannelID>1</dynVideoInputChannelID>\r\n    <EventTriggerNotificationList>\r\n        <EventTriggerNotification>\r\n            <id>record-1</id>\r\n            <notificationMethod>record</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <videoInputID>1</videoInputID>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>center</id>\r\n            <notificationMethod>center</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n    </EventTriggerNotificationList>\r\n</EventTrigger>","path":"/ISAPI/Event/triggers/fielddetection-1","method":"PUT","x":990,"y":380,"wires":[[]]},{"id":"80dec28db9de97a3","type":"hikvisionUltimateXML","z":"5caabfedce4684da","name":"Strobe Off 53","server":"abd3259d696964a1","xmlText":"<EventTrigger version=\"2.0\" xmlns=\"http://www.std-cgi.com/ver20/XMLSchema\">\r\n    <id>fielddetection-1</id>\r\n    <eventType>fielddetection</eventType>\r\n    <eventDescription>fielddetection Event trigger Information</eventDescription>\r\n    <videoInputChannelID>1</videoInputChannelID>\r\n    <dynVideoInputChannelID>1</dynVideoInputChannelID>\r\n    <EventTriggerNotificationList>\r\n        <EventTriggerNotification>\r\n            <id>record-1</id>\r\n            <notificationMethod>record</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <videoInputID>1</videoInputID>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>center</id>\r\n            <notificationMethod>center</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n    </EventTriggerNotificationList>\r\n</EventTrigger>","path":"/ISAPI/Event/triggers/fielddetection-1","method":"PUT","x":990,"y":320,"wires":[["00ff4c2545ddf170"]]},{"id":"d4f082fc37fce540","type":"hikvisionUltimateXML","z":"5caabfedce4684da","name":"Strobe Off 52","server":"fb40ac64326e12cd","xmlText":"<EventTrigger version=\"2.0\" xmlns=\"http://www.std-cgi.com/ver20/XMLSchema\">\r\n    <id>fielddetection-1</id>\r\n    <eventType>fielddetection</eventType>\r\n    <eventDescription>fielddetection Event trigger Information</eventDescription>\r\n    <videoInputChannelID>1</videoInputChannelID>\r\n    <dynVideoInputChannelID>1</dynVideoInputChannelID>\r\n    <EventTriggerNotificationList>\r\n        <EventTriggerNotification>\r\n            <id>record-1</id>\r\n            <notificationMethod>record</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <videoInputID>1</videoInputID>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>center</id>\r\n            <notificationMethod>center</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n    </EventTriggerNotificationList>\r\n</EventTrigger>","path":"/ISAPI/Event/triggers/fielddetection-1","method":"PUT","x":990,"y":260,"wires":[[]]},{"id":"628659bd8ade3a3a","type":"switch","z":"5caabfedce4684da","name":"","property":"payload","propertyType":"msg","rules":[{"t":"true"},{"t":"false"}],"checkall":"true","repair":false,"outputs":2,"x":750,"y":220,"wires":[["4e6ea4cfbd83ade7","b9ef5d42f35e1912","02e3899a79cf7cb4"],["d4f082fc37fce540","80dec28db9de97a3","062333c9a4fb0eca"]]},{"id":"22f6e2317b49aa5b","type":"bigtimer","z":"5caabfedce4684da","outtopic":"BigTimer","outpayload1":"true","outpayload2":"false","name":"BigTimer","comment":"","lat":"-34.351158","lon":"-58.868846","starttime":"5004","endtime":"5003","starttime2":0,"endtime2":0,"startoff":0,"endoff":0,"startoff2":0,"endoff2":0,"offs":"0","outtext1":"","outtext2":"","timeout":"0","sun":true,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"jan":true,"feb":true,"mar":true,"apr":true,"may":true,"jun":true,"jul":true,"aug":true,"sep":true,"oct":true,"nov":true,"dec":true,"day1":0,"month1":0,"day2":0,"month2":0,"day3":0,"month3":0,"day4":0,"month4":0,"day5":0,"month5":0,"day6":0,"month6":0,"day7":0,"month7":0,"day8":0,"month8":0,"day9":0,"month9":0,"day10":0,"month10":0,"day11":0,"month11":0,"day12":0,"month12":0,"d1":0,"w1":0,"d2":0,"w2":0,"d3":0,"w3":0,"d4":0,"w4":0,"d5":0,"w5":0,"d6":0,"w6":0,"xday1":0,"xmonth1":0,"xday2":0,"xmonth2":0,"xday3":0,"xmonth3":0,"xday4":0,"xmonth4":0,"xday5":0,"xmonth5":0,"xday6":0,"xmonth6":0,"xday7":0,"xmonth7":0,"xday8":0,"xmonth8":0,"xday9":0,"xmonth9":0,"xday10":0,"xmonth10":0,"xday11":0,"xmonth11":0,"xday12":0,"xmonth12":0,"xd1":0,"xw1":0,"xd2":0,"xw2":0,"xd3":0,"xw3":0,"xd4":0,"xw4":0,"xd5":0,"xw5":0,"xd6":0,"xw6":0,"suspend":false,"random":false,"randon1":false,"randoff1":false,"randon2":false,"randoff2":false,"repeat":true,"atstart":true,"odd":false,"even":false,"x":320,"y":180,"wires":[["539e707f27ee6608"],[],[]]},{"id":"02e3899a79cf7cb4","type":"hikvisionUltimateXML","z":"5caabfedce4684da","name":"Strobe On 53","server":"abd3259d696964a1","xmlText":"<?xml version=\"1.0\" encoding=\"UTF-8\"?>\r\n<EventTrigger version=\"2.0\" xmlns=\"http://www.hikvision.com/ver20/XMLSchema\">\r\n    <id>fielddetection-1</id>\r\n    <eventType>fielddetection</eventType>\r\n    <eventDescription>fielddetection Event trigger Information</eventDescription>\r\n    <videoInputChannelID>1</videoInputChannelID>\r\n    <dynVideoInputChannelID>1</dynVideoInputChannelID>\r\n    <EventTriggerNotificationList>\r\n        <EventTriggerNotification>\r\n            <id>email</id>\r\n            <notificationMethod>email</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>record-1</id>\r\n            <notificationMethod>record</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <videoInputID>1</videoInputID>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>beep</id>\r\n            <notificationMethod>beep</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>center</id>\r\n            <notificationMethod>center</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n        </EventTriggerNotification>\r\n        <EventTriggerNotification>\r\n            <id>whiteLight</id>\r\n            <notificationMethod>whiteLight</notificationMethod>\r\n            <notificationRecurrence>beginning</notificationRecurrence>\r\n            <WhiteLightAction>\r\n                <whiteLightDurationTime>0</whiteLightDurationTime>\r\n            </WhiteLightAction>\r\n        </EventTriggerNotification>\r\n    </EventTriggerNotificationList>\r\n</EventTrigger>","path":"/ISAPI/Event/triggers/fielddetection-1","method":"PUT","x":990,"y":140,"wires":[["00ff4c2545ddf170"]]},{"id":"1512c7b36da78405","type":"ha-switch","z":"5caabfedce4684da","name":"StrobeOff","version":0,"inputs":1,"outputs":2,"entityConfig":"123ae7c0.58ab28","enableInput":true,"outputOnStateChange":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"str"}],"x":540,"y":320,"wires":[["d4f082fc37fce540","80dec28db9de97a3","062333c9a4fb0eca"],[]]},{"id":"4ecdb0744a501dc6","type":"ha-switch","z":"5caabfedce4684da","name":"StrobeOn","version":0,"inputs":1,"outputs":2,"entityConfig":"4c6fd81453e019cf","enableInput":true,"outputOnStateChange":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"str"}],"x":540,"y":60,"wires":[["4e6ea4cfbd83ade7","02e3899a79cf7cb4","b9ef5d42f35e1912"],[]]},{"id":"00ff4c2545ddf170","type":"hikvisionUltimateXML","z":"5caabfedce4684da","name":"get state","server":"fb40ac64326e12cd","xmlText":"","path":"/ISAPI/Event/triggers/fielddetection-1","method":"GET","x":1380,"y":260,"wires":[[]]},{"id":"2328616d.4f48fe","type":"server","name":"Home Assistant","version":5,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m","enableGlobalContextStore":true},{"id":"459e2fd7c861a60a","type":"Hikvision-config","host":"192.168.40.54","port":"80","name":"Cam4","authentication":"digest","protocol":"http","heartbeattimerdisconnectionlimit":"3","deviceinfo":"{\"DeviceInfo\":{\"$\":{\"version\":\"2.0\",\"xmlns\":\"http://www.hikvision.com/ver20/XMLSchema\"},\"deviceName\":\"IP CAMERA\",\"deviceID\":\"a9004000-67db-11b3-81a4-08a189ea89c1\",\"deviceDescription\":\"IPCamera\",\"deviceLocation\":\"hangzhou\",\"systemContact\":\"Hikvision.China\",\"model\":\"DS-2CD2386G2-ISU/SL\",\"serialNumber\":\"DS-2CD2386G2-ISU/SL20210420AAWRF88038368\",\"macAddress\":\"08:a1:89:ea:89:c1\",\"firmwareVersion\":\"V5.5.801\",\"firmwareReleasedDate\":\"build 211105\",\"encoderVersion\":\"V7.3\",\"encoderReleasedDate\":\"build 210903\",\"bootVersion\":\"V1.3.4\",\"bootReleasedDate\":\"100316\",\"hardwareVersion\":\"0x0\",\"deviceType\":\"IPCamera\",\"telecontrolID\":\"88\",\"supportBeep\":\"true\",\"supportVideoLoss\":\"false\",\"firmwareVersionInfo\":\"B-R-G3-0\"}}"},{"id":"fb40ac64326e12cd","type":"Hikvision-config","host":"192.168.40.52","port":"80","name":"Cam2","authentication":"digest","protocol":"http","heartbeattimerdisconnectionlimit":"2","deviceinfo":"{\"DeviceInfo\":{\"$\":{\"version\":\"2.0\",\"xmlns\":\"http://www.std-cgi.com/ver20/XMLSchema\"},\"deviceName\":\"Camera 2\",\"deviceID\":\"a77ac000-6c92-11b3-81aa-4cf5dc411186\",\"deviceDescription\":\"IPCamera\",\"deviceLocation\":\"STD-CGI\",\"systemContact\":\"STD-CGI\",\"model\":\"DS-2CD2386G2-ISU/SL\",\"serialNumber\":\"DS-2CD2386G2-ISU/SL20210426AAWRF92351110\",\"macAddress\":\"4c:f5:dc:41:11:86\",\"firmwareVersion\":\"V5.5.801\",\"firmwareReleasedDate\":\"build 211105\",\"encoderVersion\":\"V7.3\",\"encoderReleasedDate\":\"build 210903\",\"bootVersion\":\"V1.3.4\",\"bootReleasedDate\":\"100316\",\"hardwareVersion\":\"0x0\",\"deviceType\":\"IPCamera\",\"telecontrolID\":\"88\",\"supportBeep\":\"true\",\"supportVideoLoss\":\"false\",\"firmwareVersionInfo\":\"B-R-G3-0\"}}","credentials":{}},{"id":"abd3259d696964a1","type":"Hikvision-config","host":"192.168.40.53","port":"80","name":"Camera 3","authentication":"digest","protocol":"http","heartbeattimerdisconnectionlimit":"3","deviceinfo":"{\"DeviceInfo\":{\"$\":{\"version\":\"2.0\",\"xmlns\":\"http://www.hikvision.com/ver20/XMLSchema\"},\"deviceName\":\"Camera 3\",\"deviceID\":\"c3d28000-a164-11b4-8333-44a64242ef3b\",\"deviceDescription\":\"IPCamera\",\"deviceLocation\":\"hangzhou\",\"systemContact\":\"Hikvision.China\",\"model\":\"DS-2CD2386G2-ISU/SL\",\"serialNumber\":\"DS-2CD2386G2-ISU/SL20210819AAWRG40807417\",\"macAddress\":\"44:a6:42:42:ef:3b\",\"firmwareVersion\":\"V5.7.10\",\"firmwareReleasedDate\":\"build 220830\",\"encoderVersion\":\"V7.3\",\"encoderReleasedDate\":\"build 220704\",\"bootVersion\":\"V1.3.4\",\"bootReleasedDate\":\"100316\",\"hardwareVersion\":\"0x0\",\"deviceType\":\"IPCamera\",\"telecontrolID\":\"88\",\"supportBeep\":\"false\",\"supportVideoLoss\":\"false\",\"firmwareVersionInfo\":\"B-R-G5-0\",\"manufacturer\":\"hikvision\",\"subSerialNumber\":\"G40807417\",\"OEMCode\":\"1\"}}"},{"id":"123ae7c0.58ab28","type":"ha-entity-config","server":"2328616d.4f48fe","deviceConfig":"","name":"switch config for StrobeOff","version":6,"entityType":"switch","haConfig":[{"property":"name","value":"StrobeOff"},{"property":"device_class","value":""},{"property":"icon","value":""},{"property":"unit_of_measurement","value":""},{"property":"state_class","value":""},{"property":"last_reset","value":""}],"resend":true},{"id":"4c6fd81453e019cf","type":"ha-entity-config","server":"2328616d.4f48fe","deviceConfig":"","name":"switch config for StrobeOn","version":"6","entityType":"switch","haConfig":[{"property":"name","value":"StrobeOn"},{"property":"icon","value":""},{"property":"entity_category","value":""},{"property":"device_class","value":""}],"resend":true}]

Regards

Chris

Oh my, that’s quite a flow :). Where’s that XML message coming from? what’s its path? is the path payload/whatever? I need to know the path of that message and the node it’s coming out from.

Then you’ll have to figure out the differences between messages on or off and feed a sensor node with that info.

:0)

the XML is coming from the “get state” node (the one at the right).
There’re 2 different XMLs coming as the response of the “XML Get”:
This is the request in the node to GET the files
“192.168.xx.xx/ISAPI/Event/triggers/fielddetection-1”

and the answer If the camera alarm functions are not enabled:

<?xml version="1.0" encoding="UTF-8"?>
<EventTrigger version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
    <id>fielddetection-1</id>
    <eventType>fielddetection</eventType>
    <eventDescription>fielddetection Event trigger Information</eventDescription>
    <videoInputChannelID>1</videoInputChannelID>
    <dynVideoInputChannelID>1</dynVideoInputChannelID>
    <EventTriggerNotificationList>
        <EventTriggerNotification>
            <id>record-1</id>
            <notificationMethod>record</notificationMethod>
            <notificationRecurrence>beginning</notificationRecurrence>
            <videoInputID>1</videoInputID>
        </EventTriggerNotification>
        <EventTriggerNotification>
            <id>center</id>
            <notificationMethod>center</notificationMethod>
            <notificationRecurrence>beginning</notificationRecurrence>
        </EventTriggerNotification>
    </EventTriggerNotificationList>
</EventTrigger>

And this is what I get when the alarm functions are enabled:

<?xml version="1.0" encoding="UTF-8"?>
<EventTrigger version="2.0" xmlns="http://www.hikvision.com/ver20/XMLSchema">
    <id>fielddetection-1</id>
    <eventType>fielddetection</eventType>
    <eventDescription>fielddetection Event trigger Information</eventDescription>
    <videoInputChannelID>1</videoInputChannelID>
    <dynVideoInputChannelID>1</dynVideoInputChannelID>
    <EventTriggerNotificationList>
        <EventTriggerNotification>
            <id>email</id>
            <notificationMethod>email</notificationMethod>
            <notificationRecurrence>beginning</notificationRecurrence>
        </EventTriggerNotification>
        <EventTriggerNotification>
            <id>record-1</id>
            <notificationMethod>record</notificationMethod>
            <notificationRecurrence>beginning</notificationRecurrence>
            <videoInputID>1</videoInputID>
        </EventTriggerNotification>
        <EventTriggerNotification>
            <id>beep</id>
            <notificationMethod>beep</notificationMethod>
            <notificationRecurrence>beginning</notificationRecurrence>
        </EventTriggerNotification>
        <EventTriggerNotification>
            <id>center</id>
            <notificationMethod>center</notificationMethod>
            <notificationRecurrence>beginning</notificationRecurrence>
        </EventTriggerNotification>
        <EventTriggerNotification>
            <id>whiteLight</id>
            <notificationMethod>whiteLight</notificationMethod>
            <notificationRecurrence>beginning</notificationRecurrence>
            <WhiteLightAction>
                <whiteLightDurationTime>0</whiteLightDurationTime>
            </WhiteLightAction>
        </EventTriggerNotification>
    </EventTriggerNotificationList>
</EventTrigger>

Chris