ipCameraHandler.setChannelState(CHANNEL_ENABLE_LED, OnOffType.ON);
}
+ if (content.contains("<humanDetectAlarmState>2</humanDetectAlarmState>")) {
+ ipCameraHandler.motionDetected(CHANNEL_HUMAN_ALARM);
+ } else if (content.contains("<humanDetectAlarmState>1</humanDetectAlarmState>")) {
+ ipCameraHandler.noMotionDetected(CHANNEL_HUMAN_ALARM);
+ }
+
+ if (content.contains("<crossLineDetectAlarmState>2</crossLineDetectAlarmState>")) {
+ ipCameraHandler.motionDetected(CHANNEL_LINE_CROSSING_ALARM);
+ } else if (content.contains("<crossLineDetectAlarmState>1</crossLineDetectAlarmState>")) {
+ ipCameraHandler.noMotionDetected(CHANNEL_LINE_CROSSING_ALARM);
+ }
+
+ if (content.contains("<carDetectAlarmState>2</carDetectAlarmState>")) {
+ ipCameraHandler.motionDetected(CHANNEL_CAR_ALARM);
+ } else if (content.contains("<carDetectAlarmState>1</carDetectAlarmState>")) {
+ ipCameraHandler.noMotionDetected(CHANNEL_CAR_ALARM);
+ }
+
+ if (content.contains("<petDetectAlarmState>2</petDetectAlarmState>")) {
+ ipCameraHandler.motionDetected(CHANNEL_ANIMAL_ALARM);
+ } else if (content.contains("<petDetectAlarmState>1</petDetectAlarmState>")) {
+ ipCameraHandler.noMotionDetected(CHANNEL_ANIMAL_ALARM);
+ }
+
if (content.contains("</CGI_Result>")) {
ctx.close();
}
<channel id="mp4History" typeId="mp4History"/>
<channel id="mp4HistoryLength" typeId="mp4HistoryLength"/>
<channel id="lastMotionType" typeId="lastMotionType"/>
+ <channel id="lineCrossingAlarm" typeId="lineCrossingAlarm"/>
<channel id="ffmpegMotionControl" typeId="ffmpegMotionControl"/>
<channel id="ffmpegMotionAlarm" typeId="ffmpegMotionAlarm"/>
<channel id="enableMotionAlarm" typeId="enableMotionAlarm"/>
<channel id="rtspUrl" typeId="rtspUrl"/>
<channel id="imageUrl" typeId="imageUrl"/>
<channel id="hlsUrl" typeId="hlsUrl"/>
+ <channel id="carAlarm" typeId="carAlarm"/>
+ <channel id="humanAlarm" typeId="humanAlarm"/>
+ <channel id="animalAlarm" typeId="animalAlarm"/>
</channels>
+ <properties>
+ <property name="thingTypeVersion">1</property>
+ </properties>
<config-description>
<parameter-group name="Settings">
</instruction-set>
</thing-type>
+ <thing-type uid="ipcamera:foscam">
+ <instruction-set targetVersion="1">
+ <add-channel id="carAlarm">
+ <type>ipcamera:carAlarm</type>
+ </add-channel>
+ <add-channel id="humanAlarm">
+ <type>ipcamera:humanAlarm</type>
+ </add-channel>
+ <add-channel id="animalAlarm">
+ <type>ipcamera:animalAlarm</type>
+ </add-channel>
+ <add-channel id="lineCrossingAlarm">
+ <type>ipcamera:lineCrossingAlarm</type>
+ </add-channel>
+ </instruction-set>
+ </thing-type>
</update:update-descriptions>