#Temporarily block an automated flow

1 messages · Page 1 of 1 (latest)

lean swift
#

Hello,

I'm using a flow to control some electric heaters with values from my evohome. The flows check workday/weekend and certain time blocks so the heating only happens when we are normally home.

I made some helpers in HomeAssistant and added them to the UI so we can set a temperature and a time to be able to heat outside of these predefined times set in the automated flow. For this to work I created an 'override boolean' which I want to check in the automated heating flow to interrupt this flow. But I can't figure out how to do this.
My initial thought was with a switch node, but I dont know how to set it up so the switch node check the value of the override boolean, since the message coming in to the switch is not from this boolean but from the automated trigger. I see I can set the switch property to not be msg. but flow. or global. but I make it flow.input_boolean.override it does not work.

The other option I tried was using an current state node, this works as in the automated trigger arrives at the current state node, which does check to override boolean, but I dont know how to passthrough the original message that arrived at the current state node. It will output the state of the override not of automated trigger.

So how do I block a message from passing through my flow depending of the state of a boolean that is not in the message?

bronze gyro
lean swift
#

Thx for the tip, I'll look in to tit

#

it..

lean swift
#

I solved it, turns out you can set flow. or global. values with a change node. So when I press the button to set a new temperature I change the flow.override value and use a switch node in the automated flow to check this value.

bronze gyro
#

Btw, that link has a ton of great Node Red advice and examples

#

Look at the cookbook section

lean swift
#

thx great tip, the HA Restarted from the cookbook is nice. Allows me to set some flows and states to be on the save side if the power went out and turns back on again.

bronze gyro
#

Excellent!