Hi.
My goal with this automation is to send a message to the phone the first time person is home after “work time”.
It should just trigger first arrival after work, and not trigger if the calendar hasn’t been on (changed to off).
- calendar.samayeh_turnus is on in the planed work-time, and off in the planed free-time
- person.samayeh is home when home, and not_home when away
- mobile_app_samayeh_sin_iphone is the phone to notify
This is what I have, but it is not working.:
JSON:
[{"id":"61bd339573e1c67d","type":"ha-wait-until","z":"cbdda1d3e0543731","name":"Wait until person.samayeh = home","server":"ce440416.77f1e8","version":0,"outputs":1,"entityId":"person.samayeh","entityIdFilterType":"exact","property":"attributes.state","comparator":"is","value":"home","valueType":"str","timeout":0,"timeoutType":"num","timeoutUnits":"seconds","entityLocation":"","entityLocationType":"none","checkCurrentState":true,"blockInputOverrides":true,"x":580,"y":2180,"wires":[["58cdd4ac8656ef2c"]]},{"id":"606103b8a6649b0f","type":"server-state-changed","z":"cbdda1d3e0543731","name":"calendar.samayeh_turnus off?","server":"ce440416.77f1e8","version":3,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"calendar.samayeh_turnus","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"off","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":260,"y":2180,"wires":[["61bd339573e1c67d"],[]]},{"id":"58cdd4ac8656ef2c","type":"api-call-service","z":"cbdda1d3e0543731","name":"Notify Samayeh","server":"ce440416.77f1e8","version":3,"debugenabled":false,"service_domain":"notify","service":"mobile_app_samayeh_sin_iphone","entityId":"","data":"{\t \"message\":\"Test Message\",\t \"title\":\"Welcome Home\"\t}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":840,"y":2180,"wires":[[]]},{"id":"ce440416.77f1e8","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
I think the problem is the “Wait until” node, but i can’t find out what.
Tried both empty, attributes.state and state in Wait Until. I think it is waiting forever.
Anyone know?