So I’m new to Monitor and getting it up and working on Hassio.
I’m mainly interested in using arrive/depart scans triggered by motion sensor at front door.
The arrive scan seems to be working well both from the hassio script (below) and the Hassio MQTT developer tool (Hassio add-on). But the depart scan oddly only seems to work from the Hassio MQTT developer tool.
Am I being thick? Is their something wrong with my departure script below? Could someone help point me to a way to troubleshoot?
In my script.yaml
#----------------------------------------------------------------------------------------------------------------------
# Monitor
#----------------------------------------------------------------------------------------------------------------------
arrival_scan:
alias: Arrival Scan
sequence:
- condition: template
value_template: "{{is_state('binary_sensor.mqtt_bingbong_home', 'off')}}"
- service: 'mqtt.publish'
data:
topic: monitor/scan/arrive
- delay: 00:00:15
- condition: template
value_template: "{{is_state('binary_sensor.mqtt_bingbong_home', 'off')}}"
- service: 'mqtt.publish'
data:
topic: monitor/scan/arrive
- delay: 00:00:15
- condition: template
value_template: "{{is_state('binary_sensor.mqtt_bingbong_home', 'off')}}"
- service: 'mqtt.publish'
data:
topic: monitor/scan/arrive
departure_scan:
alias: Departure Scan
sequence:
- condition: template
value_template: "{{is_state('binary_sensor.mqtt_bingbong_home', 'on')}}"
- service: 'mqtt.publish'
data:
topic: monitor/scan/depart
- condition: template
value_template: "{{is_state('binary_sensor.mqtt_bingbong_home', 'on')}}"
- delay: 00:00:60
- service: 'mqtt.publish'
data:
topic: monitor/scan/depart
- condition: template
value_template: "{{is_state('binary_sensor.mqtt_bingbong_home', 'on')}}"
- delay: 00:00:60
- service: 'mqtt.publish'
data:
topic: monitor/scan/depart
- condition: template
value_template: "{{is_state('binary_sensor.mqtt_bingbong_home', 'on')}}"
- delay: 00:00:60
- service: 'mqtt.publish'
data:
topic: monitor/scan/depart
EDIT: Yep, I’m thick:) Can’t have 60 seconds!! All good now… I’ll leave the post up for mild amusement of others…