datapoints.digital_ios.inputs.input.add datapoints.digital_ios.inputs.input[1].name=input1 datapoints.digital_ios.inputs.input[1].active=1 datapoints.digital_ios.inputs.input[1].description=Input 2.1 datapoints.digital_ios.inputs.input[1].input=2.1 datapoints.flags.flag.add datapoints.flags.flag[1].name=flag1 datapoints.flags.flag[1].active=1 datapoints.flags.flag[1].description=trigger message datapoints.flags.flag[1].type=bit datapoints.timer.timer.add datapoints.timer.timer[1].name=timer1 datapoints.timer.timer[1].active=1 datapoints.timer.timer[1].description=message delay timer datapoints.timer.timer[1].type=countdown datapoints.timer.timer[1].countdown_hh= datapoints.timer.timer[1].countdown_mm=3 datapoints.timer.timer[1].countdown_ss= messages.contacts.contact.add messages.contacts.contact[1].active=1 messages.contacts.contact[1].name=contact1 messages.contacts.contact[1].real_name=supervisor messages.contacts.contact[1].email_address= messages.contacts.contact[1].phone_number=+4917xxxxxxxx messages.sms.sms.add messages.sms.sms[1].active=1 messages.sms.sms[1].name=sms1 messages.sms.sms[1].description=input closed message messages.sms.sms[1].recipient=contact1 messages.sms.sms[1].modem=lte2 messages.sms.sms[1].text=-----BEGIN text-----Input 2.1 has been closed-----END text----- events.event.add events.event[1].active=1 events.event[1].description=set 'trigger message' flag if input is closed events.event[1].event_type=ev_digital events.event[1].event_digital_datapoint=input1 events.event[1].event_digital_change=to_zero events.event[1].event_digital_initial_check=0 events.event[1].action_type=act_digital events.event[1].action_digital_datapoint=flag1 events.event[1].action_digital_change=to_one events.event.add events.event[2].active=1 events.event[2].description=start delay timer if 'trigger message' flag is set events.event[2].event_type=ev_digital events.event[2].event_digital_datapoint=flag1 events.event[2].event_digital_change=to_one events.event[2].event_digital_initial_check=0 events.event[2].action_type=act_timer events.event[2].event_action_timer_name=timer1 events.event[2].event_action_timer_change=start events.event.add events.event[3].active=1 events.event[3].description=send message if 'trigger message' flag is set events.event[3].event_type=ev_digital events.event[3].event_digital_datapoint=flag1 events.event[3].event_digital_change=to_one events.event[3].event_digital_initial_check=0 events.event[3].action_type=act_message events.event[3].action_message=sms1 events.event.add events.event[4].active=1 events.event[4].description=reset 'trigger message' flag if 'message delay timer' expires events.event[4].event_type=ev_timer events.event[4].event_timer_name=timer1 events.event[4].action_type=act_digital events.event[4].action_digital_datapoint=flag1 events.event[4].action_digital_change=to_zero