Open Christian-Me opened 3 years ago
Well it looks like you're using it as intended. This is really strange - what version are you running? Could you do an export of your test scenario and paste it in a reply please? I can't replicate it in my dev environment.
Here is a demo I ripped out of my flow: Perhaps this helps:
[{"id":"cac06bcb.561818","type":"inject","z":"626acd09.10ba04","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"{\"action\":\"cancel\"}","payloadType":"json","x":685,"y":2142,"wires":[["4ba101bb.25e16"]]},{"id":"47b324d5.3780dc","type":"inject","z":"626acd09.10ba04","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"cancel","payloadType":"str","x":645,"y":2193,"wires":[["4ba101bb.25e16"]]},{"id":"4ba101bb.25e16","type":"eztimer","z":"626acd09.10ba04","name":"","debug":false,"autoname":"17:00","tag":"eztimer","topic":"","suspended":false,"sendEventsOnSuspend":false,"latLongSource":"manual","latLongHaZone":"zone.home","lat":"","lon":"","timerType":"2","startupMessage":false,"ontype":"2","ontimesun":"dawn","ontimetod":"17:00","onpropertytype":"msg","onproperty":"payload","onvaluetype":"num","onvalue":1,"onoffset":0,"onrandomoffset":0,"onsuppressrepeats":false,"offtype":"1","offtimesun":"dusk","offtimetod":"dusk","offduration":"00:01:00","offpropertytype":"msg","offproperty":"payload","offvaluetype":"num","offvalue":0,"offoffset":0,"offrandomoffset":0,"offsuppressrepeats":false,"resend":false,"resendInterval":"0s","mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":934,"y":2159,"wires":[["a7217c62.3f338"]]},{"id":"a7217c62.3f338","type":"debug","z":"626acd09.10ba04","name":"","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"true","targetType":"full","statusVal":"","statusType":"auto","x":1070,"y":2159,"wires":[]}]
Node Red 1.1.2
While this is an old case, with little traffic for over a year, I am experiencing the same problem, and was hoping to resurrect it.
Just to add to the case information - my use scenario:
1) [{"id":"e2213d9898b3035a","type":"eztimer","z":"cb04bbedde809751","name":"Open 2.5 hours after morning golden hour","debug":false,"autoname":"goldenHourEnd","tag":"eztimer","topic":"","suspended":false,"sendEventsOnSuspend":false,"latLongSource":"manual","latLongHaZone":"zone.home","lat":"58.00","lon":"26.00","timerType":"2","startupMessage":false,"ontype":"1","ontimesun":"goldenHourEnd","ontimetod":"17:00","onpropertytype":"msg","onproperty":"payload","onvaluetype":"str","onvalue":"open","onoffset":"150","onrandomoffset":0,"onsuppressrepeats":false,"offtype":"1","offtimesun":"sunset","offtimetod":"dusk","offduration":"00:01:00","offpropertytype":"msg","offproperty":"payload","offvaluetype":"str","offvalue":"close","offoffset":0,"offrandomoffset":0,"offsuppressrepeats":false,"resend":false,"resendInterval":"10s","mon":true,"tue":true,"wed":true,"thu":true,"fri":true,"sat":true,"sun":true,"x":220,"y":740,"wires":[["ea5e4b90c2c6032e"]]},{"id":"aeb446268d3a09d8","type":"api-current-state","z":"cb04bbedde809751","name":"Temperature outside is?","server":"85e14409.cc14a8","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.outside_temp_rh_bp_temperature","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"outsidetemp","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":710,"y":800,"wires":[["e8cb6edde6117120"]]},{"id":"46534752298325d1","type":"api-current-state","z":"cb04bbedde809751","name":"Illuminance outside is?","server":"85e14409.cc14a8","version":3,"outputs":1,"halt_if":"","halt_if_type":"num","halt_if_compare":"is","entity_id":"sensor.outside_illuminance_illuminance_lux","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"outsideilluminance","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":700,"y":860,"wires":[["e8cb6edde6117120"]]},{"id":"e8cb6edde6117120","type":"and-gate","z":"cb04bbedde809751","name":"Is it sunny and warm, with sun from the east?","rules":[{"t":"gte","v":"12","vt":"num","propertyType":"msg","property":"payload","topic":"outsidetemp"},{"t":"gte","v":"5000","vt":"num","propertyType":"msg","property":"payload","topic":"outsideilluminance"},{"t":"btwn","v":"50","vt":"num","v2":"135","v2t":"num","propertyType":"msg","property":"data.attributes.azimuth","topic":"sunposition"}],"outputTopic":"","gateType":"and","emitOnlyIfTrue":false,"x":1050,"y":820,"wires":[["f891cb918ee981f7"]]},{"id":"7540b52b9ef63598","type":"api-current-state","z":"cb04bbedde809751","name":"Sun position is?","server":"85e14409.cc14a8","version":3,"outputs":1,"halt_if":"","halt_if_type":"str","halt_if_compare":"is","entity_id":"sun.sun","state_type":"str","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"},{"property":"topic","propertyType":"msg","value":"sunposition","valueType":"str"}],"for":"0","forType":"num","forUnits":"minutes","override_topic":false,"state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","x":680,"y":920,"wires":[["e8cb6edde6117120"]]},{"id":"f891cb918ee981f7","type":"change","z":"cb04bbedde809751","name":"Set flow variables - true","rules":[{"t":"set","p":"auto_office_window","pt":"flow","to":"true","tot":"bool"},{"t":"set","p":"auto_lizzy_window","pt":"flow","to":"true","tot":"bool"},{"t":"set","p":"auto_masterbedroom_window","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":1370,"y":820,"wires":[["1474d4c76cbc17c8"]]},{"id":"2806f6c46663831f","type":"inject","z":"cb04bbedde809751","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"cancel","payloadType":"str","x":210,"y":860,"wires":[["e2213d9898b3035a"]]},{"id":"d2d569228fd35399","type":"inject","z":"cb04bbedde809751","name":"","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"sync","payloadType":"str","x":210,"y":900,"wires":[["e2213d9898b3035a"]]},{"id":"ea5e4b90c2c6032e","type":"junction","z":"cb04bbedde809751","x":460,"y":740,"wires":[["d6a30e5e92014567","aeb446268d3a09d8","46534752298325d1","7540b52b9ef63598"]]},{"id":"85e14409.cc14a8","type":"server","name":"Home Assistant","version":4,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":false,"heartbeatInterval":30,"areaSelector":"friendlyName","deviceSelector":"friendlyName","entitySelector":"friendlyName","statusSeparator":"at: ","statusYear":"hidden","statusMonth":"short","statusDay":"numeric","statusHourCycle":"h23","statusTimeFormat":"h:m"}]
2) I'd like to cancel the next trigger, which in my case is every day in the morning, allowing me to skip particular days with other flows triggering the 'cancel' payload.
3) Same version, since there wasn't another one since, I believe.
Thank you so very much in advance!
Hi, thank you for your node. Can it be that the "cancel" action is not working? or
Or I perhaps misunderstood the documentation.