Replies: 2 comments
-
I am guessing HA isn't responding to the service call with an error, it happens after the fact? Two possible options that come to mind are:
|
Beta Was this translation helpful? Give feedback.
-
Thanks for the suggestion @zachowj. I think I came up with something that works, but it is not perfect. I created a subflow that I can reuse in different parts of my Node-Red automation.
Wich uses an additional plugin (https://github.com/s1r-J/node-red-contrib-loop-processing#counter-loop) It will run HA "call service node" then HA "wait until node" for 10 secs if the state didn't change then retry it 5 times. The solution works for a single entity id. In my original question the ENV params to subflow ended up being: |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I have an essential flow where I want to turn on my heater in the morning
The problem is that the NEST thermostat could be unstable sometimes (offline for few secs), so occasionally the
set_temperature
service call results in an error in the HomeAssistant log:so I thought the retry strategy would be a possible solution here. But I don't want to just make my flow over-complex, like having a timer for few secs and with attempts to restart the service node. I wonder if there is something like this builtin? Or perhaps an elegant way of solving this fairly generic problem?
Beta Was this translation helpful? Give feedback.
All reactions