<rule rule_id="Axis_Motion_Control">
<triggers>
<trigger sensor_id="Axis_Motion_Detection" trigger_topic="events" value_name="motion_detected" value_type="string"/>
</triggers>
<timers>
<timer delay="5" timer_id="T1"/>
</timers>
<conditions>
<condition expr="motion_detected == 'Motion'">
<true>
<result_list>
<result result_value="0" sensor_id="Axis_Motion_Detection" timer="T1" value_type="decimal"/>
</result_list>
<state_list>
<state state_name="motion_detected" state_value="0"/>
</state_list>
</true>
</condition>
</conditions>
</rule> |