Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.


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

...

  1. A sensor per camera:

    Code Block
    languagexml
     <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

    Code Block
    languagexml
    <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:

      Code Block
      languagexml
       <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):

      Code Block
      languagexml
      <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:

      Code Block
      languagexml
       <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:

      Code Block
      languagexml
       <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)
showLabelsfalse
max5
spacescom.atlassian.confluence.content.render.xhtml.model.resource.identifiers.SpaceResourceIdentifier@52c7f830
showSpacefalse
sortmodified
reversetrue
typepage
labelsir910 Cisco cameras
cqllabel in ( "cameras" , "ir910" , "cisco" ) and type = "page" and space = "CUSTPROJ"
labelsir910 Cisco cameras

Cisco Camera Setup for capture

Page Properties
hiddentrue


Related issues