sorry again for brining this up but still puzzled…I thought I have solved this but I still cant get automations in node-red to stop auto executing even though I have followed all you guys excellent examples.
so… I have this current two automations
Code:
[{"id":"41cc5039c91583ff","type":"presence-faker","z":"967867dff605c38c","name":"Random turn on lights","onPayload":"turn_on","onPayloadType":"str","onTopic":"light.frontdoor","offPayload":"turn_off","offPayloadType":"str","offTopic":"light.frontdoor","windowBegin":"19:00","windowEnd":"23:59","minDurationHours":0,"minDurationMinutes":"10","minDurationSeconds":0,"minDuration":"600","maxDurationHours":0,"maxDurationMinutes":"40","maxDurationSeconds":0,"maxDuration":"2400","minCount":"5","maxCount":"15","startupBehavior":"onStartup","actionOnDisable":"none","firstBlockType":"off","lastBlockType":"off","isLoggingEnabled":false,"x":660,"y":240,"wires":[["1bf6f1f166055e7d"]]},{"id":"1bf6f1f166055e7d","type":"api-call-service","z":"967867dff605c38c","name":"frontdoor lights","server":"9b223c80.d6eb2","version":5,"debugenabled":false,"domain":"homeassistant","service":"{{payload}}","areaId":[],"deviceId":[],"entityId":["{{topic}}"],"data":"{}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":1040,"y":240,"wires":[[]]},{"id":"bacfe7a3c31c563d","type":"api-call-service","z":"967867dff605c38c","name":"frontdoor lights","server":"9b223c80.d6eb2","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.frontdoor"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":400,"y":300,"wires":[[]]},{"id":"64ee09cdb349e495","type":"server-state-changed","z":"967867dff605c38c","name":"vacation mode on/off?","server":"9b223c80.d6eb2","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.vacation_mode","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","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":160,"y":200,"wires":[["41cc5039c91583ff"],["bacfe7a3c31c563d"]]},{"id":"97367b52ee76e84a","type":"comment","z":"967867dff605c38c","name":"Patio","info":"","x":90,"y":500,"wires":[]},{"id":"acae5655dc919249","type":"presence-faker","z":"967867dff605c38c","name":"Random turn on lights","onPayload":"turn_on","onPayloadType":"str","onTopic":"light.patio","offPayload":"turn_off","offPayloadType":"str","offTopic":"light.patio","windowBegin":"19:00","windowEnd":"23:59","minDurationHours":0,"minDurationMinutes":"10","minDurationSeconds":0,"minDuration":"600","maxDurationHours":0,"maxDurationMinutes":"40","maxDurationSeconds":0,"maxDuration":"2400","minCount":"5","maxCount":"15","startupBehavior":"onStartup","actionOnDisable":"none","firstBlockType":"off","lastBlockType":"off","isLoggingEnabled":false,"x":420,"y":540,"wires":[["80ee1001fe6e5e56"]]},{"id":"80ee1001fe6e5e56","type":"api-call-service","z":"967867dff605c38c","name":"lights.patio","server":"9b223c80.d6eb2","version":5,"debugenabled":false,"domain":"homeassistant","service":"{{payload}}","areaId":[],"deviceId":[],"entityId":["{{topic}}"],"data":"{}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":790,"y":440,"wires":[[]]},{"id":"3f4c2a71f75f92f4","type":"api-call-service","z":"967867dff605c38c","name":"lights.patio","server":"9b223c80.d6eb2","version":5,"debugenabled":false,"domain":"light","service":"turn_off","areaId":[],"deviceId":[],"entityId":["light.patio"],"data":"","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":490,"y":620,"wires":[[]]},{"id":"5269cf53cd532de2","type":"server-state-changed","z":"967867dff605c38c","name":"vacation mode on/off?","server":"9b223c80.d6eb2","version":4,"exposeToHomeAssistant":false,"haConfig":[{"property":"name","value":""},{"property":"icon","value":""}],"entityidfilter":"input_boolean.vacation_mode","entityidfiltertype":"exact","outputinitially":false,"state_type":"habool","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":140,"y":560,"wires":[["acae5655dc919249"],["3f4c2a71f75f92f4"]]},{"id":"1d871e918696be1d","type":"suncron","z":"967867dff605c38c","name":"","lat":"31.37111","lon":"34.82297","replay":false,"ejectScheduleOnUpdate":true,"sunrisePayload":"sunrise","sunrisePayloadType":"str","sunriseTopic":"","sunriseOffsetType":"-1","sunriseOffsetHours":"5","sunriseOffsetMinutes":0,"sunriseOffset":"18000","sunriseEndPayload":"","sunriseEndPayloadType":"str","sunriseEndTopic":"","sunriseEndOffsetType":1,"sunriseEndOffsetHours":0,"sunriseEndOffsetMinutes":0,"sunriseEndOffset":0,"goldenHourEndPayload":"","goldenHourEndPayloadType":"str","goldenHourEndTopic":"","goldenHourEndOffsetType":1,"goldenHourEndOffsetHours":0,"goldenHourEndOffsetMinutes":0,"goldenHourEndOffset":0,"solarNoonPayload":"","solarNoonPayloadType":"str","solarNoonTopic":"","solarNoonOffsetType":1,"solarNoonOffsetHours":0,"solarNoonOffsetMinutes":0,"solarNoonOffset":0,"goldenHourPayload":"","goldenHourPayloadType":"str","goldenHourTopic":"","goldenHourOffsetType":1,"goldenHourOffsetHours":0,"goldenHourOffsetMinutes":0,"goldenHourOffset":0,"sunsetStartPayload":"","sunsetStartPayloadType":"str","sunsetStartTopic":"","sunsetStartOffsetType":1,"sunsetStartOffsetHours":0,"sunsetStartOffsetMinutes":0,"sunsetStartOffset":0,"sunsetPayload":"sunset","sunsetPayloadType":"str","sunsetTopic":"","sunsetOffsetType":1,"sunsetOffsetHours":0,"sunsetOffsetMinutes":0,"sunsetOffset":0,"duskPayload":"","duskPayloadType":"str","duskTopic":"","duskOffsetType":1,"duskOffsetHours":0,"duskOffsetMinutes":0,"duskOffset":0,"nauticalDuskPayload":"","nauticalDuskPayloadType":"str","nauticalDuskTopic":"","nauticalDuskOffsetType":1,"nauticalDuskOffsetHours":0,"nauticalDuskOffsetMinutes":0,"nauticalDuskOffset":0,"nightPayload":"","nightPayloadType":"str","nightTopic":"","nightOffsetType":1,"nightOffsetHours":0,"nightOffsetMinutes":0,"nightOffset":0,"nadirPayload":"","nadirPayloadType":"str","nadirTopic":"","nadirOffsetType":1,"nadirOffsetHours":0,"nadirOffsetMinutes":0,"nadirOffset":0,"nightEndPayload":"","nightEndPayloadType":"str","nightEndTopic":"","nightEndOffsetType":1,"nightEndOffsetHours":0,"nightEndOffsetMinutes":0,"nightEndOffset":0,"nauticalDawnPayload":"","nauticalDawnPayloadType":"str","nauticalDawnTopic":"","nauticalDawnOffsetType":1,"nauticalDawnOffsetHours":0,"nauticalDawnOffsetMinutes":0,"nauticalDawnOffset":0,"dawnPayload":"","dawnPayloadType":"str","dawnTopic":"","dawnOffsetType":1,"dawnOffsetHours":0,"dawnOffsetMinutes":0,"dawnOffset":0,"x":480,"y":100,"wires":[["c0b807186badd2f2"]]},{"id":"c0b807186badd2f2","type":"function","z":"967867dff605c38c","name":"PF config","func":"if (msg.topic != 'suncron:schedule') {\n return\n}\n\nconst windowBeginEvent = 'sunset'\nconst windowEndEvent = 'sunrise'\n\nconst windowBegin = msg.payload[windowBeginEvent].cronTime.substring(11)\nconst windowEnd = msg.payload[windowEndEvent].cronTime.substring(11)\n\nreturn {\n payload: {\n windowBegin,\n windowEnd\n }\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":760,"y":80,"wires":[["41cc5039c91583ff"]]},{"id":"24b0b619fd3cad52","type":"suncron","z":"967867dff605c38c","name":"","lat":"31.37111","lon":"34.82297","replay":false,"ejectScheduleOnUpdate":true,"sunrisePayload":"sunrise","sunrisePayloadType":"str","sunriseTopic":"","sunriseOffsetType":"-1","sunriseOffsetHours":"5","sunriseOffsetMinutes":0,"sunriseOffset":"18000","sunriseEndPayload":"","sunriseEndPayloadType":"str","sunriseEndTopic":"","sunriseEndOffsetType":1,"sunriseEndOffsetHours":0,"sunriseEndOffsetMinutes":0,"sunriseEndOffset":0,"goldenHourEndPayload":"","goldenHourEndPayloadType":"str","goldenHourEndTopic":"","goldenHourEndOffsetType":1,"goldenHourEndOffsetHours":0,"goldenHourEndOffsetMinutes":0,"goldenHourEndOffset":0,"solarNoonPayload":"","solarNoonPayloadType":"str","solarNoonTopic":"","solarNoonOffsetType":1,"solarNoonOffsetHours":0,"solarNoonOffsetMinutes":0,"solarNoonOffset":0,"goldenHourPayload":"","goldenHourPayloadType":"str","goldenHourTopic":"","goldenHourOffsetType":1,"goldenHourOffsetHours":0,"goldenHourOffsetMinutes":0,"goldenHourOffset":0,"sunsetStartPayload":"","sunsetStartPayloadType":"str","sunsetStartTopic":"","sunsetStartOffsetType":1,"sunsetStartOffsetHours":0,"sunsetStartOffsetMinutes":0,"sunsetStartOffset":0,"sunsetPayload":"sunset","sunsetPayloadType":"str","sunsetTopic":"","sunsetOffsetType":1,"sunsetOffsetHours":0,"sunsetOffsetMinutes":0,"sunsetOffset":0,"duskPayload":"","duskPayloadType":"str","duskTopic":"","duskOffsetType":1,"duskOffsetHours":0,"duskOffsetMinutes":0,"duskOffset":0,"nauticalDuskPayload":"","nauticalDuskPayloadType":"str","nauticalDuskTopic":"","nauticalDuskOffsetType":1,"nauticalDuskOffsetHours":0,"nauticalDuskOffsetMinutes":0,"nauticalDuskOffset":0,"nightPayload":"","nightPayloadType":"str","nightTopic":"","nightOffsetType":1,"nightOffsetHours":0,"nightOffsetMinutes":0,"nightOffset":0,"nadirPayload":"","nadirPayloadType":"str","nadirTopic":"","nadirOffsetType":1,"nadirOffsetHours":0,"nadirOffsetMinutes":0,"nadirOffset":0,"nightEndPayload":"","nightEndPayloadType":"str","nightEndTopic":"","nightEndOffsetType":1,"nightEndOffsetHours":0,"nightEndOffsetMinutes":0,"nightEndOffset":0,"nauticalDawnPayload":"","nauticalDawnPayloadType":"str","nauticalDawnTopic":"","nauticalDawnOffsetType":1,"nauticalDawnOffsetHours":0,"nauticalDawnOffsetMinutes":0,"nauticalDawnOffset":0,"dawnPayload":"","dawnPayloadType":"str","dawnTopic":"","dawnOffsetType":1,"dawnOffsetHours":0,"dawnOffsetMinutes":0,"dawnOffset":0,"x":320,"y":440,"wires":[["3ddfec090c448315"]]},{"id":"3ddfec090c448315","type":"function","z":"967867dff605c38c","name":"PF config","func":"if (msg.topic != 'suncron:schedule') {\n return\n}\n\nconst windowBeginEvent = 'sunset'\nconst windowEndEvent = 'sunrise'\n\nconst windowBegin = msg.payload[windowBeginEvent].cronTime.substring(11)\nconst windowEnd = msg.payload[windowEndEvent].cronTime.substring(11)\n\nreturn {\n payload: {\n windowBegin,\n windowEnd\n }\n}\n","outputs":1,"noerr":0,"initialize":"","finalize":"","libs":[],"x":480,"y":440,"wires":[["acae5655dc919249"]]},{"id":"feca0e798aaefb64","type":"group","z":"967867dff605c38c","name":"","style":{"label":true,"color":"#92d04f","fill":"#92d04f"},"nodes":["1bd02643276bdcd9"],"x":14,"y":19,"w":252,"h":82},{"id":"1bd02643276bdcd9","type":"comment","z":"967867dff605c38c","g":"feca0e798aaefb64","name":"simple Vacation lights","info":"","x":140,"y":60,"wires":[]},{"id":"9b223c80.d6eb2","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"}]
I also have a boolean input for vacation mode:
now I turned on vacation mode yesterday and it indeed launched the two above automations. then I switched it off and as per the node-red sequences it close the automations
BUT today the two above automations fired again even though the input_boolean.vacation_mode
is off
what am I missing
thx allot guys
Z