mO SharemO Share

Sitecontroller configuration for the Camera integration

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

Step-by-step guide

  1. A sensor per camera:

     <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>
  2. A device per camera on the devices section

    <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>
  3. Add the actions:
    1. To take snapshots, one per camera:

       <action action_id="Snap_100-Generator" device_id="cisco_cam_1_100-Generator">
      	<commands>
      		<command command_id="shot"/>
      	</commands>
      </action>
    2. To be able to take a snapshot as a remote actions from the cloud (one per camera):

      <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>
  4. Add the rules:
    1. To take a picture when the door is open, after 3 seconds:

       <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>
    2. Add a rule to trigger the snapshot from the cloud:

       <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>


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

There are no items with the selected labels at this time.

Cisco Camera Setup for capture