Warning |
---|
Camera support has been dropped as EoL with Site Controller version 3.0 |
In order to integrate the Cisco cameras on the Azeti sollution, the following things have to be added to the sitecontroller coniguration
...
A sensor per camera:
Code Block language xml <sensor sensor_id="Camera_1_100-Generator"> <sensor_class>boolean</sensor_class> <state_evaluation_expressions> <state_evaluation_expression> <expression>True</expression> <true volatile="true">Image</true> </state_evaluation_expression> </state_evaluation_expressions> </sensor>
A device per camera on the devices section
Code Block language xml <device device_id="cisco_cam_1_100-Generator"> <camera_device> <ip_settings> <address>192.168.1.100</address> </ip_settings> <credentials> <user>admin</user> <password>C!sc0123</password> </credentials> </camera_device> </device>
- Add the actions:
To take snapshots, one per camera:
Code Block language xml <action action_id="Snap_100-Generator" device_id="cisco_cam_1_100-Generator"> <commands> <command command_id="shot"/> </commands> </action>
To be able to take a snapshot as a remote actions from the cloud (one per camera):
Code Block language xml <action action_id="Manual_Snap_Generator" device_id="VirtualSensorProvider"> <commands> <command command_id="shot">publish_calibrated_result('Camera_1_100-Generator', True)</command> <command command_id="init" exec_on_startup="true">publish_calibrated_result('Camera_1_100-Generator', False)</command> </commands> </action>
- Add the rules:
To take a picture when the door is open, after 3 seconds:
Code Block language xml <rule rule_id="Door_Snapshot"> <triggers> <trigger sensor_id="Door" trigger_topic="calibrated_result" value_name="door_alarm" value_type="decimal"/> </triggers> <timers> <timer delay="3" timer_id="T1"/> </timers> <conditions> <condition expr="door_alarm == 1 "> <true> <action_list> <action action_id=" Snap_100-Generator " command="shot" timer="T1"/> </action_list> </true> </condition> </conditions> </rule>
Add a rule to trigger the snapshot from the cloud:
Code Block language xml <rule rule_id="Snap_Image_Generator"> <triggers> <trigger sensor_id="Camera_1_100-Generator" trigger_topic="calibrated_result" value_name="snap" value_type="boolean"/> </triggers> <conditions> <condition expr="snap == True"> <true> <action_list> <action action_id="Snap_100-Generator" command="shot"/> </action_list> <state_list> <state state_name="snap" state_value="False"/> </state_list> </true> </condition> </conditions> </rule>
...
Info |
---|
On the cloud the binary flag has to be added to the site template, on the sensor where you want to show the image (for example the door sensor). |
...
Filter by label (Content by label) | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
Cisco Camera Setup for capture
Page Properties | ||||
---|---|---|---|---|
| ||||
|