Is there a way to use groups with the Zone node? I created a new zone that is around 20 minutes from my home to change the thermostat back to home so it can start cooling the house or if both me/wife leave the zone it sets the thermostat to away. Right now my home/away node zone is too close so there is not enough time to cool down the house.
I’m looking at the group integration, I don’t see support for zones. Did you define this manually in yaml?
I couldn’t find anything either and was curious if there was a work around. I have the away mode working so it turns off the lights and sets the alarm, but trying to figure a way to change the mode of my Ecobee to away when i’m further away from home and also by using that new Zone to change the mode so it can cool the house down before I get home.
Maybe i’m over thinking this, but if me and my wife are out of my “home” zone and in the “Near Home” zone and we are not together and one of us leaves the “near home” zone will one flow work? I only want the ecobee to change to away if both of us leave “near home” in the event one of us goes home.
I haven’t messed with the Zone node, but I just added it and is the entities section defining that as both or either or? (ignore zone name, I originally named it Ecobee and changed it to Near Home and not sure why it hasn’t updated)
So they way I have mine set up is this -
I have my setup track the Home/Away events of our phones (or how ever you track it)
I have input booleans change based on these events as well as others but you can set it up however you would like.
If there is an Away event by either device, it will check the current status of the other. If second device shows Away it continues - if Home it stops.
When it continues along the Away path, you can have a call service node change your Ecobee to what you would like.
When there is a Home event by either device it will take a different path that is not dependent on the second device
[{"id":"aad1c4a466c28bf2","type":"server-state-changed","z":"77c3489f49a085d8","name":"ZZZ Home - in entity","server":"c43f98a6.706d78","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.unifi_b6_b7_57_79_3e_b1_13cmuaie","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":470,"y":1280,"wires":[["96aafc61f47a25c5"],["2f3e740487dc6035"]]},{"id":"96aafc61f47a25c5","type":"api-call-service","z":"77c3489f49a085d8","name":"Home (Can be Ecobee - Home)","server":"c43f98a6.706d78","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_on","areaId":[],"deviceId":[],"entityId":["input_boolean.home_occupied"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":790,"y":1240,"wires":[[]]},{"id":"e47874848ee3c8ed","type":"server-state-changed","z":"77c3489f49a085d8","name":"XXX Home - in entity","server":"c43f98a6.706d78","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"device_tracker.unifi_b6_b7_57_79_3e_b1_13cmuaie","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"on","halt_if_type":"str","halt_if_compare":"is","outputs":2,"output_only_on_state_change":true,"for":0,"forType":"num","forUnits":"minutes","ignorePrevStateNull":false,"ignorePrevStateUnknown":false,"ignorePrevStateUnavailable":false,"ignoreCurrentStateUnknown":false,"ignoreCurrentStateUnavailable":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"eventData"},{"property":"topic","propertyType":"msg","value":"","valueType":"triggerId"}],"x":470,"y":1360,"wires":[["96aafc61f47a25c5"],["4c0207754535b3a7"]]},{"id":"2f3e740487dc6035","type":"api-current-state","z":"77c3489f49a085d8","name":"XXX Home","server":"c43f98a6.706d78","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.xxx_home","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":730,"y":1320,"wires":[["2115f5741f934227"],[]]},{"id":"4c0207754535b3a7","type":"api-current-state","z":"77c3489f49a085d8","name":"ZZZ Home","server":"c43f98a6.706d78","version":3,"outputs":2,"halt_if":"off","halt_if_type":"str","halt_if_compare":"is","entity_id":"input_boolean.ZZZ_home","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"for":0,"forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":730,"y":1400,"wires":[["2115f5741f934227"],[]]},{"id":"2115f5741f934227","type":"api-call-service","z":"77c3489f49a085d8","name":"Away (Can be Ecobee Away)","server":"c43f98a6.706d78","version":5,"debugenabled":false,"domain":"input_boolean","service":"turn_off","areaId":[],"deviceId":[],"entityId":["input_boolean.home_occupied"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1020,"y":1360,"wires":[[]]},{"id":"c43f98a6.706d78","type":"server","name":"Home Assistant","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":"30"}]
@kagetaro99 Thanks for the reply, but have a question. The arriving flow makes sense too me because if either XXX or ZZZ arrives turn on ecobee, but on the away wouldn’t either route trigger the Away on Ecobee? I’m not understanding how in the flow it is checking the current status of the other.
The name of the node might make it confusing but I have it check to see if the second device shows as Away - if yes then 1st output - if no then 2nd
Again you can change these around to where it makes sense to you - i just haven’t gone back through and cleaned up the logic as it works as is lol
I think that this could also be accomplished with a few trigger nodes. The first trigger will only fire when both the entities are not_home
. This also enables the arrival triggers.
These will only fire when one entity goes from not_home
to ecobee_turn_on
. It will also disable the arrival triggers until both entities are not_home
[{"id":"7130f8f5be5d0de2","type":"trigger-state","z":"f80b6c338afd5483","name":"","server":"","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":["entity_1","entity_2"],"entityidfiltertype":"list","debugenabled":false,"constraints":[{"targetType":"entity_id","targetValue":"entity_1","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"not_home"},{"targetType":"entity_id","targetValue":"entity_2","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"not_home"}],"inputs":0,"outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","enableInput":false,"x":380,"y":140,"wires":[["5478e8c1630fc913","b8d219a2bb20f02f"],[]]},{"id":"205840e87a0c621f","type":"trigger-state","z":"f80b6c338afd5483","name":"","server":"","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"entity_1","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"previous_state","propertyValue":"old_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"not_home"},{"targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"ecobee_turn_on"}],"inputs":1,"outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","enableInput":true,"x":900,"y":240,"wires":[["f6d4de7248ff0139","c08489f03acbc75c"],[]]},{"id":"e87eb2ab04a4a756","type":"trigger-state","z":"f80b6c338afd5483","name":"","server":"","version":2,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityid":"entity_2","entityidfiltertype":"exact","debugenabled":false,"constraints":[{"targetType":"this_entity","targetValue":"","propertyType":"previous_state","propertyValue":"old_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"not_home"},{"targetType":"this_entity","targetValue":"","propertyType":"current_state","propertyValue":"new_state.state","comparatorType":"is","comparatorValueDatatype":"str","comparatorValue":"ecobee_turn_on"}],"inputs":1,"outputs":2,"customoutputs":[],"outputinitially":false,"state_type":"str","enableInput":true,"x":900,"y":360,"wires":[["f6d4de7248ff0139","c08489f03acbc75c"],[]]},{"id":"5478e8c1630fc913","type":"debug","z":"f80b6c338afd5483","name":"turn off ecobee","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":880,"y":140,"wires":[]},{"id":"b8d219a2bb20f02f","type":"change","z":"f80b6c338afd5483","name":"enable","rules":[{"t":"set","p":"payload","pt":"msg","to":"enable","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":610,"y":240,"wires":[["e87eb2ab04a4a756","205840e87a0c621f"]]},{"id":"f6d4de7248ff0139","type":"change","z":"f80b6c338afd5483","name":"disable","rules":[{"t":"set","p":"payload","pt":"msg","to":"disable","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":620,"y":300,"wires":[["205840e87a0c621f","e87eb2ab04a4a756"]]},{"id":"c08489f03acbc75c","type":"debug","z":"f80b6c338afd5483","name":"turn on ecobee","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","statusVal":"","statusType":"auto","x":1200,"y":240,"wires":[]}]