Hi
I have the following flow setup. How do I go about cancelling the running of Disarm Morning and Arm at Night if the house status is in Armed Away Mode.?
Thanks
Hi
I have the following flow setup. How do I go about cancelling the running of Disarm Morning and Arm at Night if the house status is in Armed Away Mode.?
Thanks
Simply add a status node that checks in which status your house is.
Hi
Thanks for the quick reply. I am very new to this and am finding it hard to get my head around. So I created the status node which reports the status of the mode the security panel is in but how does that come into play in cancelling out the timed armed and disarmed modes?
Thanks
The node should have some output as payload.
Add a debug node to it and see what the message is.
Most likely the payload says “armed”.
So add a switch node that if “!= armed” allows the message through.
Not sure if that will tick all your boxes but you can also have one output from the switch node with “== armed” if you need that for something.
Yes either like that, or you simply add it before your disarm / alarm service call. And only connect the output that is NOT Armed Away.
If you export your flow and post it here, we can also help you a bit easier.
If you export your flow, please use this to scrub it of personal details:
https://zachowj.github.io/node-red-contrib-home-assistant-websocket/scrubber/
Thanks so much for offering to help. I am in a little over my head. So what I am trying to accomplish is for the armed and disarmed schedule not to run if were not at home. Basically for the system to stay in the armed away state whenever were not home. Thanks again!
[{"id":"e2fc270f.37d188","type":"server-state-changed","z":"7264ac6a.c77464","name":"Home Alarm Mode","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.ha_alarm","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":90,"y":180,"wires":[["a1b6bdd7.590e2"]]},{"id":"a1b6bdd7.590e2","type":"switch","z":"7264ac6a.c77464","name":"Set Alarm Mode","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"armed_away","vt":"str"},{"t":"eq","v":"armed_night","vt":"str"},{"t":"eq","v":"disarmed","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":640,"y":240,"wires":[["b5913f00.2b3e8"],["ab92301a.72909"],["a22008d6.52e118"]]},{"id":"b5913f00.2b3e8","type":"api-call-service","z":"7264ac6a.c77464","name":"Armed Away","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_arm_away","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":870,"y":140,"wires":[[]]},{"id":"ab92301a.72909","type":"api-call-service","z":"7264ac6a.c77464","name":"Armed Night","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_arm_night","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1010,"y":200,"wires":[[]]},{"id":"a22008d6.52e118","type":"api-call-service","z":"7264ac6a.c77464","name":"Disarmed","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_disarm","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":840,"y":280,"wires":[["6787664c.5b1068"]]},{"id":"4339065e.2e4fb8","type":"api-call-service","z":"7264ac6a.c77464","name":"Disarm","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_disarm","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":580,"y":40,"wires":[["5b35a2be.698a7c","a1b6bdd7.590e2"]]},{"id":"5e408061.f3e09","type":"thingzi-timer","z":"7264ac6a.c77464","name":"Disarm Morming @ 6:30 am","timerType":"trigger","startupMessage":false,"ontype":"tod","ontimesun":"dusk","ontimetod":"06:30","onpropertytype":"msg","onproperty":"payload","onvaluetype":"str","onvalue":"disarmed","onoffset":"","onrandomoffset":false,"offtype":"tod","offtimesun":"dawn","offtimetod":"","offpropertytype":"msg","offproperty":"payload","offvaluetype":"str","offvalue":"OFF","offoffset":"","offrandomoffset":false,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":120,"y":40,"wires":[["4339065e.2e4fb8"]]},{"id":"5b35a2be.698a7c","type":"debug","z":"7264ac6a.c77464","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":810,"y":40,"wires":[]},{"id":"2302b111.05949e","type":"thingzi-timer","z":"7264ac6a.c77464","name":"Armed Night @ 10:30 pm","timerType":"trigger","startupMessage":false,"ontype":"tod","ontimesun":"dusk","ontimetod":"21:33","onpropertytype":"msg","onproperty":"payload","onvaluetype":"str","onvalue":"armed_night","onoffset":"","onrandomoffset":false,"offtype":"tod","offtimesun":"dawn","offtimetod":"","offpropertytype":"msg","offproperty":"payload","offvaluetype":"str","offvalue":"OFF","offoffset":"","offrandomoffset":false,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":110,"y":100,"wires":[["29563959.01e096"]]},{"id":"29563959.01e096","type":"api-call-service","z":"7264ac6a.c77464","name":"Armed Night","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_arm_night","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":450,"y":100,"wires":[["a1b6bdd7.590e2"]]},{"id":"6d5b81b3.d33f5","type":"server-state-changed","z":"7264ac6a.c77464","name":"Armed Away Not Home","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"group.home_group","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"not_home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":100,"y":260,"wires":[["342c09f1.457496"],[]],"outputLabels":["not_home","none"]},{"id":"1de6b8c9.2a8127","type":"server-state-changed","z":"7264ac6a.c77464","name":"Home Disarm Security","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"group.home_group","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":100,"y":360,"wires":[["6edd0027.d1341"],[]],"outputLabels":["home","none"]},{"id":"342c09f1.457496","type":"change","z":"7264ac6a.c77464","name":"Switch OutPut","rules":[{"t":"change","p":"payload","pt":"msg","from":"not_home","fromt":"str","to":"armed_away","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":360,"y":260,"wires":[["a1b6bdd7.590e2"]]},{"id":"6edd0027.d1341","type":"change","z":"7264ac6a.c77464","name":"Switch OutPut","rules":[{"t":"change","p":"payload","pt":"msg","from":"home","fromt":"str","to":"disarmed","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":300,"y":320,"wires":[["a1b6bdd7.590e2"]]},{"id":"e145c1d5.ed3ad","type":"server-state-changed","z":"7264ac6a.c77464","name":"Manual Disarm","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.ha_alarm","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"disarmed","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":80,"y":420,"wires":[["a1b6bdd7.590e2"],[]],"outputLabels":["disarmed","none"]},{"id":"6787664c.5b1068","type":"api-call-service","z":"7264ac6a.c77464","name":"Turn Off Garage Siren","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.garage_siren_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1200,"y":260,"wires":[[]]}]
basically it should work by just adding this:
[{“id”:“5594ea6.67f8314”,“type”:“api-current-state”,“z”:“d71e85cf.071388”,“name”:“”,“version”:1,“outputs”:2,“halt_if”:“armed_away”,“halt_if_type”:“str”,“halt_if_compare”:“is”,“override_topic”:false,“entity_id”:“alarm_control_panel.ha_alarm”,“state_type”:“str”,“state_location”:“payload”,“override_payload”:“msg”,“entity_location”:“data”,“override_data”:“msg”,“blockInputOverrides”:false,“x”:330,“y”:60,“wires”:[,[“b05baa7e.b9d3e8”,“8e7a2b62.feebd8”]]}]
like this:
Hi Thanks
I tried to import the txt flow but I get the following syntax error. So if I were to manually set it up do I add the extra red lines in the diagram and then just configure the current state node as in the picture?
Sorry, no the red lines are because i do not have this node. Basically just put the current state node in between the trigger and service call.
I tried as you suggested but when the arm at night triggers I get a disarm.
Sorry about all the trouble.
Please remove the direct connection of the trigger and the call service node.
[{"id":"e2fc270f.37d188","type":"server-state-changed","z":"7264ac6a.c77464","name":"Home Alarm Mode","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.ha_alarm","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"str","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":130,"y":360,"wires":[["a1b6bdd7.590e2"]]},{"id":"a1b6bdd7.590e2","type":"switch","z":"7264ac6a.c77464","name":"Set Alarm Mode","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"armed_away","vt":"str"},{"t":"eq","v":"armed_night","vt":"str"},{"t":"eq","v":"disarmed","vt":"str"}],"checkall":"true","repair":false,"outputs":3,"x":680,"y":420,"wires":[["b5913f00.2b3e8"],["ab92301a.72909"],["a22008d6.52e118"]]},{"id":"b5913f00.2b3e8","type":"api-call-service","z":"7264ac6a.c77464","name":"Armed Away","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_arm_away","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":910,"y":320,"wires":[[]]},{"id":"ab92301a.72909","type":"api-call-service","z":"7264ac6a.c77464","name":"Armed Night","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_arm_night","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1050,"y":380,"wires":[[]]},{"id":"a22008d6.52e118","type":"api-call-service","z":"7264ac6a.c77464","name":"Disarmed","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_disarm","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":880,"y":460,"wires":[["6787664c.5b1068"]]},{"id":"4339065e.2e4fb8","type":"api-call-service","z":"7264ac6a.c77464","name":"Disarm","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_disarm","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":620,"y":220,"wires":[["5b35a2be.698a7c","a1b6bdd7.590e2"]]},{"id":"5e408061.f3e09","type":"thingzi-timer","z":"7264ac6a.c77464","name":"Disarm Morming @ 6:30 am","timerType":"trigger","startupMessage":false,"ontype":"tod","ontimesun":"dusk","ontimetod":"16:04","onpropertytype":"msg","onproperty":"payload","onvaluetype":"str","onvalue":"disarmed","onoffset":"","onrandomoffset":false,"offtype":"tod","offtimesun":"dawn","offtimetod":"","offpropertytype":"msg","offproperty":"payload","offvaluetype":"str","offvalue":"OFF","offoffset":"","offrandomoffset":false,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":140,"y":120,"wires":[["91bedcbe.a3163"]]},{"id":"5b35a2be.698a7c","type":"debug","z":"7264ac6a.c77464","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"false","statusVal":"","statusType":"auto","x":850,"y":220,"wires":[]},{"id":"2302b111.05949e","type":"thingzi-timer","z":"7264ac6a.c77464","name":"Armed Night @ 10:30 pm","timerType":"trigger","startupMessage":false,"ontype":"tod","ontimesun":"dusk","ontimetod":"20:41","onpropertytype":"msg","onproperty":"payload","onvaluetype":"str","onvalue":"armed_night","onoffset":"","onrandomoffset":false,"offtype":"tod","offtimesun":"dawn","offtimetod":"","offpropertytype":"msg","offproperty":"payload","offvaluetype":"str","offvalue":"OFF","offoffset":"","offrandomoffset":false,"mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":130,"y":240,"wires":[["91bedcbe.a3163"]]},{"id":"29563959.01e096","type":"api-call-service","z":"7264ac6a.c77464","name":"Armed Night","version":1,"debugenabled":false,"service_domain":"alarm_control_panel","service":"alarm_arm_night","entityId":"alarm_control_panel.ha_alarm","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":510,"y":300,"wires":[["a1b6bdd7.590e2"]]},{"id":"6d5b81b3.d33f5","type":"server-state-changed","z":"7264ac6a.c77464","name":"Armed Away Not Home","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"group.home_group","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"not_home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":140,"y":440,"wires":[["342c09f1.457496"],[]],"outputLabels":["not_home","none"]},{"id":"1de6b8c9.2a8127","type":"server-state-changed","z":"7264ac6a.c77464","name":"Home Disarm Security","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"group.home_group","entityidfiltertype":"substring","outputinitially":false,"state_type":"str","haltifstate":"home","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":140,"y":540,"wires":[["6edd0027.d1341"],[]],"outputLabels":["home","none"]},{"id":"342c09f1.457496","type":"change","z":"7264ac6a.c77464","name":"Switch OutPut","rules":[{"t":"change","p":"payload","pt":"msg","from":"not_home","fromt":"str","to":"armed_away","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":400,"y":440,"wires":[["a1b6bdd7.590e2"]]},{"id":"6edd0027.d1341","type":"change","z":"7264ac6a.c77464","name":"Switch OutPut","rules":[{"t":"change","p":"payload","pt":"msg","from":"home","fromt":"str","to":"disarmed","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":340,"y":500,"wires":[["a1b6bdd7.590e2"]]},{"id":"e145c1d5.ed3ad","type":"server-state-changed","z":"7264ac6a.c77464","name":"Manual Disarm","version":1,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"alarm_control_panel.ha_alarm","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"disarmed","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"x":120,"y":600,"wires":[["a1b6bdd7.590e2"],[]],"outputLabels":["disarmed","none"]},{"id":"6787664c.5b1068","type":"api-call-service","z":"7264ac6a.c77464","name":"Turn Off Garage Siren","version":1,"debugenabled":false,"service_domain":"switch","service":"turn_off","entityId":"switch.garage_siren_switch","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1240,"y":440,"wires":[[]]},{"id":"91bedcbe.a3163","type":"api-current-state","z":"7264ac6a.c77464","name":"Halt If No One Home","version":1,"outputs":2,"halt_if":"armed_away","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"alarm_control_panel.ha_alarm","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":440,"y":80,"wires":[[],["4339065e.2e4fb8","29563959.01e096","67ef0b03.3e5fd4"]]},{"id":"f30b858c.4b4a58","type":"comment","z":"7264ac6a.c77464","name":"Home Assistant Alarm Panel","info":"","x":190,"y":40,"wires":[]},{"id":"67ef0b03.3e5fd4","type":"debug","z":"7264ac6a.c77464","name":"","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":800,"y":80,"wires":[]}]
Unfortunately its the same outcome. The trigger Armed at Night won’t run it being blocked.
There is no shame in making several sequences in the same flow.
They don’t have to be joined in the middle.
Take one scenario and connect nodes that work for this scenario, nothing more.
Then do the same for the next scenario and so on.
I am sorry, i just realized my mistake.
Indeed, you will have to employ 2x current state nodes, or filter for a message to know if the flow should Disarm, or Arm_night the alarm.
Like this should be correct:
[
{
"id": "7a78cb64.40a744",
"type": "server-state-changed",
"z": "1486cf5f.cd1781",
"name": "Home Alarm Mode",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "alarm_control_panel.ha_alarm",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 1,
"output_only_on_state_change": true,
"x": 210,
"y": 1740,
"wires": [
[
"f5fc4735.8195c8"
]
]
},
{
"id": "f5fc4735.8195c8",
"type": "switch",
"z": "1486cf5f.cd1781",
"name": "Set Alarm Mode",
"property": "payload",
"propertyType": "msg",
"rules": [
{
"t": "eq",
"v": "armed_away",
"vt": "str"
},
{
"t": "eq",
"v": "armed_night",
"vt": "str"
},
{
"t": "eq",
"v": "disarmed",
"vt": "str"
}
],
"checkall": "true",
"repair": false,
"outputs": 3,
"x": 760,
"y": 1800,
"wires": [
[
"9043703f.ff33b"
],
[
"fc592533.cfe858"
],
[
"c6f71356.13e9c"
]
]
},
{
"id": "9043703f.ff33b",
"type": "api-call-service",
"z": "1486cf5f.cd1781",
"name": "Armed Away",
"version": 1,
"debugenabled": false,
"service_domain": "alarm_control_panel",
"service": "alarm_arm_away",
"entityId": "alarm_control_panel.ha_alarm",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 990,
"y": 1700,
"wires": [
[]
]
},
{
"id": "fc592533.cfe858",
"type": "api-call-service",
"z": "1486cf5f.cd1781",
"name": "Armed Night",
"version": 1,
"debugenabled": false,
"service_domain": "alarm_control_panel",
"service": "alarm_arm_night",
"entityId": "alarm_control_panel.ha_alarm",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1130,
"y": 1760,
"wires": [
[]
]
},
{
"id": "c6f71356.13e9c",
"type": "api-call-service",
"z": "1486cf5f.cd1781",
"name": "Disarmed",
"version": 1,
"debugenabled": false,
"service_domain": "alarm_control_panel",
"service": "alarm_disarm",
"entityId": "alarm_control_panel.ha_alarm",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 960,
"y": 1840,
"wires": [
[
"8c430405.bbe218"
]
]
},
{
"id": "ccfc19ec.d769b8",
"type": "api-call-service",
"z": "1486cf5f.cd1781",
"name": "Disarm",
"version": 1,
"debugenabled": false,
"service_domain": "alarm_control_panel",
"service": "alarm_disarm",
"entityId": "alarm_control_panel.ha_alarm",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 700,
"y": 1600,
"wires": [
[
"80d67f48.a4dbf",
"f5fc4735.8195c8"
]
]
},
{
"id": "e838adc4.7f0be",
"type": "thingzi-timer",
"z": "1486cf5f.cd1781",
"name": "Disarm Morming @ 6:30 am",
"timerType": "trigger",
"startupMessage": false,
"ontype": "tod",
"ontimesun": "dusk",
"ontimetod": "16:04",
"onpropertytype": "msg",
"onproperty": "payload",
"onvaluetype": "str",
"onvalue": "disarmed",
"onoffset": "",
"onrandomoffset": false,
"offtype": "tod",
"offtimesun": "dawn",
"offtimetod": "",
"offpropertytype": "msg",
"offproperty": "payload",
"offvaluetype": "str",
"offvalue": "OFF",
"offoffset": "",
"offrandomoffset": false,
"mon": true,
"tue": true,
"wed": true,
"thu": true,
"fri": true,
"sat": true,
"sun": true,
"x": 220,
"y": 1500,
"wires": [
[
"e9a3a3c5.78603"
]
]
},
{
"id": "80d67f48.a4dbf",
"type": "debug",
"z": "1486cf5f.cd1781",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": false,
"complete": "false",
"statusVal": "",
"statusType": "auto",
"x": 930,
"y": 1600,
"wires": []
},
{
"id": "28e36480.f2214c",
"type": "thingzi-timer",
"z": "1486cf5f.cd1781",
"name": "Armed Night @ 10:30 pm",
"timerType": "trigger",
"startupMessage": false,
"ontype": "tod",
"ontimesun": "dusk",
"ontimetod": "20:41",
"onpropertytype": "msg",
"onproperty": "payload",
"onvaluetype": "str",
"onvalue": "armed_night",
"onoffset": "",
"onrandomoffset": false,
"offtype": "tod",
"offtimesun": "dawn",
"offtimetod": "",
"offpropertytype": "msg",
"offproperty": "payload",
"offvaluetype": "str",
"offvalue": "OFF",
"offoffset": "",
"offrandomoffset": false,
"mon": true,
"tue": true,
"wed": true,
"thu": true,
"fri": true,
"sat": true,
"sun": true,
"x": 210,
"y": 1620,
"wires": [
[
"f214836a.8ba34"
]
]
},
{
"id": "a9860e03.bcfda",
"type": "api-call-service",
"z": "1486cf5f.cd1781",
"name": "Armed Night",
"version": 1,
"debugenabled": false,
"service_domain": "alarm_control_panel",
"service": "alarm_arm_night",
"entityId": "alarm_control_panel.ha_alarm",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 590,
"y": 1680,
"wires": [
[
"f5fc4735.8195c8"
]
]
},
{
"id": "1ddd68e.1794097",
"type": "server-state-changed",
"z": "1486cf5f.cd1781",
"name": "Armed Away Not Home",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "group.home_group",
"entityidfiltertype": "substring",
"outputinitially": false,
"state_type": "str",
"haltifstate": "not_home",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 220,
"y": 1820,
"wires": [
[
"4ebaca56.5fb5f4"
],
[]
],
"outputLabels": [
"not_home",
"none"
]
},
{
"id": "65b01698.756e08",
"type": "server-state-changed",
"z": "1486cf5f.cd1781",
"name": "Home Disarm Security",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "group.home_group",
"entityidfiltertype": "substring",
"outputinitially": false,
"state_type": "str",
"haltifstate": "home",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 220,
"y": 1920,
"wires": [
[
"9b6f246.6ebf2d8"
],
[]
],
"outputLabels": [
"home",
"none"
]
},
{
"id": "4ebaca56.5fb5f4",
"type": "change",
"z": "1486cf5f.cd1781",
"name": "Switch OutPut",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "not_home",
"fromt": "str",
"to": "armed_away",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 480,
"y": 1820,
"wires": [
[
"f5fc4735.8195c8"
]
]
},
{
"id": "9b6f246.6ebf2d8",
"type": "change",
"z": "1486cf5f.cd1781",
"name": "Switch OutPut",
"rules": [
{
"t": "change",
"p": "payload",
"pt": "msg",
"from": "home",
"fromt": "str",
"to": "disarmed",
"tot": "str"
}
],
"action": "",
"property": "",
"from": "",
"to": "",
"reg": false,
"x": 420,
"y": 1880,
"wires": [
[
"f5fc4735.8195c8"
]
]
},
{
"id": "8751a381.341e8",
"type": "server-state-changed",
"z": "1486cf5f.cd1781",
"name": "Manual Disarm",
"version": 1,
"exposeToHomeAssistant": false,
"haConfig": [
{
"property": "name",
"value": ""
},
{
"property": "icon",
"value": ""
}
],
"entityidfilter": "alarm_control_panel.ha_alarm",
"entityidfiltertype": "exact",
"outputinitially": false,
"state_type": "str",
"haltifstate": "disarmed",
"halt_if_type": "str",
"halt_if_compare": "is",
"outputs": 2,
"output_only_on_state_change": true,
"x": 200,
"y": 1980,
"wires": [
[
"f5fc4735.8195c8"
],
[]
],
"outputLabels": [
"disarmed",
"none"
]
},
{
"id": "8c430405.bbe218",
"type": "api-call-service",
"z": "1486cf5f.cd1781",
"name": "Turn Off Garage Siren",
"version": 1,
"debugenabled": false,
"service_domain": "switch",
"service": "turn_off",
"entityId": "switch.garage_siren_switch",
"data": "",
"dataType": "json",
"mergecontext": "",
"output_location": "",
"output_location_type": "none",
"mustacheAltTags": false,
"x": 1320,
"y": 1820,
"wires": [
[]
]
},
{
"id": "e9a3a3c5.78603",
"type": "api-current-state",
"z": "1486cf5f.cd1781",
"name": "Halt If No One Home",
"server": "2fba4297.e4145e",
"version": 1,
"outputs": 2,
"halt_if": "armed_away",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "alarm_control_panel.ha_alarm",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 500,
"y": 1460,
"wires": [
[],
[
"ccfc19ec.d769b8",
"4056f711.58a9b8"
]
]
},
{
"id": "21b9b089.90915",
"type": "comment",
"z": "1486cf5f.cd1781",
"name": "Home Assistant Alarm Panel",
"info": "",
"x": 270,
"y": 1420,
"wires": []
},
{
"id": "4056f711.58a9b8",
"type": "debug",
"z": "1486cf5f.cd1781",
"name": "",
"active": true,
"tosidebar": true,
"console": false,
"tostatus": true,
"complete": "payload",
"targetType": "msg",
"statusVal": "payload",
"statusType": "auto",
"x": 880,
"y": 1460,
"wires": []
},
{
"id": "f214836a.8ba34",
"type": "api-current-state",
"z": "1486cf5f.cd1781",
"name": "Halt If No One Home",
"server": "2fba4297.e4145e",
"version": 1,
"outputs": 2,
"halt_if": "armed_away",
"halt_if_type": "str",
"halt_if_compare": "is",
"override_topic": false,
"entity_id": "alarm_control_panel.ha_alarm",
"state_type": "str",
"state_location": "payload",
"override_payload": "msg",
"entity_location": "data",
"override_data": "msg",
"blockInputOverrides": false,
"x": 480,
"y": 1600,
"wires": [
[],
[
"a9860e03.bcfda"
]
]
},
{
"id": "2fba4297.e4145e",
"type": "server",
"z": "",
"name": "Home Assistant",
"legacy": false,
"addon": true,
"rejectUnauthorizedCerts": true,
"ha_boolean": "y|yes|true|on|home|open",
"connectionDelay": true
}
]
Thanks so much for the help. It seems to be working perfectly!