Skip daily routine for one day / x hours

Hi there,

I use node red to open and close my shutters.
For the balcony I use also a xiaomi door sensor to check if the door is closed before the shutter closed.

But there are some situations this scenario isnt good enough - I want to go later (after sunset) to go outside at some days.

Is there a way, that I can integrate a toggle to my lovelace dashbord which disable the close routine of this shutter for one evening?

The current flow:


Regards
Timo

Have a switch node in between. (Or current state node)

If boolean is off then go to normal path.

If boolean is on then make it off and end it there.

This is a HACS add-on for Node Red that will allow you to enable/disable Events and/or Triggers in HA by exposing switches.

thats a nice addon thanks!
but how can i integrate this?

It’s always a lot easier if you export your sequence.

But something like this:

Where “Your boolean is”:

and the call service just sets the boolean to off (assuming the inject can only happen once a day?)

Sry, I read your answer yesterday over…
so here is the code

[{"id":"53216960.0cb138","type":"tab","label":"Flow 1","disabled":false,"info":""},{"id":"1f110e35.6bf072","type":"time-inject","z":"53216960.0cb138","name":"","nameInt":"⏲ Sonnenuntergang Ende↷ = 0.3","positionConfig":"11453379.f62a8d","props":[{"p":"","pt":"msgPayload","v":"0.3","vt":"num","o":"1","oT":"none","oM":"60000","f":0,"fS":0,"fT":"Millisekunden UNIX-Zeit","fI":"0","next":true,"days":""},{"p":"","pt":"msgTopic","v":"","vt":"str","o":"1","oT":"none","oM":"60000","f":0,"fS":0,"fT":"Millisekunden UNIX-Zeit","fI":"0","next":false,"days":""}],"injectTypeSelect":"time","intervalCount":1,"intervalCountType":"num","intervalCountMultiplier":60000,"time":"sunset","timeType":"pdsTime","offset":"1815","offsetType":"num","offsetMultiplier":1000,"timeEnd":"","timeEndType":"entered","timeEndOffset":0,"timeEndOffsetType":"num","timeEndOffsetMultiplier":60000,"timeDays":"*","timeOnlyOddDays":true,"timeOnlyEvenDays":true,"timeMonths":"*","timedatestart":"","timedateend":"","property":"","propertyType":"none","propertyCompare":"true","propertyThreshold":"","propertyThresholdType":"num","timeAlt":"","timeAltType":"entered","timeAltDays":"*","timeAltOnlyOddDays":true,"timeAltOnlyEvenDays":true,"timeAltMonths":"*","timeAltOffset":0,"timeAltOffsetType":"none","timeAltOffsetMultiplier":60000,"once":false,"onceDelay":0.1,"recalcTime":2,"x":200,"y":80,"wires":[["5b88d430.15a1dc"]]},{"id":"5b88d430.15a1dc","type":"api-current-state","z":"53216960.0cb138","name":"Türsensor Balkon","server":"818794df.29c548","version":2,"outputs":2,"halt_if":"true","halt_if_type":"bool","halt_if_compare":"is","entity_id":"binary_sensor.lumi_tuersensor_balkon","state_type":"habool","blockInputOverrides":false,"outputProperties":[{"property":"payload","propertyType":"msg","value":"","valueType":"entityState"},{"property":"data","propertyType":"msg","value":"","valueType":"entity"}],"x":470,"y":80,"wires":[[],["d412a721.42ac18"]]},{"id":"d412a721.42ac18","type":"api-call-service","z":"53216960.0cb138","name":"Rollladen WoZi Balkon ab","server":"818794df.29c548","version":3,"debugenabled":false,"service_domain":"cover","service":"close_cover","entityId":"cover.wozi_rollladen_balkon","data":"","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":710,"y":80,"wires":[[]]},{"id":"11453379.f62a8d","type":"position-config","name":"Filderstadt","isValide":"true","longitude":"0","latitude":"0","angleType":"deg","timeZoneOffset":"99","timeZoneDST":"0","stateTimeFormat":"3","stateDateFormat":"12"},{"id":"818794df.29c548","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

It would be amazing, if you can help me in this case - its my first boolean code :wink:

Regards!

Perhaps something like this?

I don’t know what that inject was and how it works not when I exported it since I don’t have that node.
But you need to change the YourBoolean with the boolean you have on your lovelace.

[{"id":"5b88d430.15a1dc","type":"api-current-state","z":"53216960.0cb138","name":"Türsensor Balkon","server":"818794df.29c548","version":2,"outputs":2,"halt_if":"true","halt_if_type":"bool","halt_if_compare":"is","override_topic":false,"entity_id":"binary_sensor.lumi_tuersensor_balkon","state_type":"habool","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":470,"y":80,"wires":[[],["e6646389.5946e"]]},{"id":"1f110e35.6bf072","type":"time-inject","z":"53216960.0cb138","name":"","nameInt":"⏲ Sonnenuntergang Ende↷ = 0.3","positionConfig":"11453379.f62a8d","props":[{"p":"","pt":"msgPayload","v":"0.3","vt":"num","o":"1","oT":"none","oM":"60000","f":0,"fS":0,"fT":"Millisekunden UNIX-Zeit","fI":"0","next":true,"days":""},{"p":"","pt":"msgTopic","v":"","vt":"str","o":"1","oT":"none","oM":"60000","f":0,"fS":0,"fT":"Millisekunden UNIX-Zeit","fI":"0","next":false,"days":""}],"injectTypeSelect":"time","intervalCount":1,"intervalCountType":"num","intervalCountMultiplier":60000,"time":"sunset","timeType":"pdsTime","offset":"1815","offsetType":"num","offsetMultiplier":1000,"timeEnd":"","timeEndType":"entered","timeEndOffset":0,"timeEndOffsetType":"num","timeEndOffsetMultiplier":60000,"timeDays":"*","timeOnlyOddDays":true,"timeOnlyEvenDays":true,"timeMonths":"*","timedatestart":"","timedateend":"","property":"","propertyType":"none","propertyCompare":"true","propertyThreshold":"","propertyThresholdType":"num","timeAlt":"","timeAltType":"entered","timeAltDays":"*","timeAltOnlyOddDays":true,"timeAltOnlyEvenDays":true,"timeAltMonths":"*","timeAltOffset":0,"timeAltOffsetType":"none","timeAltOffsetMultiplier":60000,"once":false,"onceDelay":0.1,"recalcTime":2,"x":200,"y":80,"wires":[["5b88d430.15a1dc"]]},{"id":"e6646389.5946e","type":"api-current-state","z":"53216960.0cb138","name":"","server":"4bbca37b.1700ec","version":1,"outputs":2,"halt_if":"on","halt_if_type":"str","halt_if_compare":"is","override_topic":false,"entity_id":"input_boolean.YourBoolean","state_type":"str","state_location":"payload","override_payload":"msg","entity_location":"data","override_data":"msg","blockInputOverrides":false,"x":760,"y":80,"wires":[["6a6af191.3c29d"],["d412a721.42ac18"]]},{"id":"d412a721.42ac18","type":"api-call-service","z":"53216960.0cb138","name":"Rollladen WoZi Balkon ab","server":"818794df.29c548","version":3,"debugenabled":false,"service_domain":"cover","service":"close_cover","entityId":"cover.wozi_rollladen_balkon","data":"","dataType":"jsonata","mergecontext":"","output_location":"payload","output_location_type":"msg","mustacheAltTags":false,"x":1090,"y":120,"wires":[[]]},{"id":"6a6af191.3c29d","type":"api-call-service","z":"53216960.0cb138","name":"","server":"4bbca37b.1700ec","version":1,"debugenabled":false,"service_domain":"input_boolean","service":"turn_off","entityId":"input_boolean.YourBoolean","data":"","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":1100,"y":40,"wires":[[]]},{"id":"818794df.29c548","type":"server","name":"Home Assistant","addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true},{"id":"4bbca37b.1700ec","type":"server","name":"Home Assistant","legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

sorry I dont understand…
what do you mean with “your boolean”?
I havnt a boolean configuration or something like this?

That is a boolean.
See configuration → helpers and add an input boolean.

Add this boolean to your Lovelace.

Add it to the node red flow.

Done.