[ { "id": "flow-protect-alarm-poll", "type": "tab", "label": "Protect Alarm State", "disabled": false, "info": "Select your Protect connection and Alarm Hub in Read Alarm State. Polls every 60 seconds and after deployment. Hub payload is boolean; NVR payload is the local armMode.status string. Requires a version with Read Alarm State support." }, { "id": "inject-protect-alarm-poll", "type": "inject", "z": "flow-protect-alarm-poll", "name": "Poll every 60 seconds", "props": [], "repeat": "60", "crontab": "", "once": true, "onceDelay": 5, "topic": "", "x": 170, "y": 120, "wires": [ [ "read-protect-alarm-state" ] ] }, { "id": "read-protect-alarm-state", "type": "unifi-protect-device", "z": "flow-protect-alarm-poll", "name": "Read Alarm State (Hub)", "server": "", "deviceType": "alarmHub", "deviceId": "", "deviceName": "", "inputs": 1, "capability": "getAlarmState", "capabilityConfig": "{}", "emitStartupAndUndefined": false, "autoEmit": false, "autoEmitInterval": 60, "x": 440, "y": 120, "wires": [ [ "debug-protect-alarm-status" ], [ "debug-protect-alarm-error" ] ] }, { "id": "debug-protect-alarm-status", "type": "debug", "z": "flow-protect-alarm-poll", "name": "Current alarm status", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "payload", "targetType": "msg", "x": 990, "y": 100, "wires": [] }, { "id": "debug-protect-alarm-error", "type": "debug", "z": "flow-protect-alarm-poll", "name": "Error / missing alarm state", "active": true, "tosidebar": true, "console": false, "tostatus": false, "complete": "true", "targetType": "full", "x": 730, "y": 200, "wires": [] } ]