I am trying to make a dosing system. Open a valve until a defined volume is in a container.
Automation can do it if it is the same volume every time, but I want to be able to change the volume.
As I see it I need a variable in my automation that I can modify from the outside.
Is there a way to do this? Ideally a way that I can use to send the setpoint from Nodered.
I think those above and below values arenāt ātemplatableā so you canāt use a variable.
What I usually do in this situation is create a template binary sensor called āis_above_weight_targetā. The example is pretty close to what you want to do.
Then I put those switch actions you have there under on_press and on _release.
Youāll need to add an id to your sensor then the compare should be close to below. You might not need the second .state.
But I get a syntax error regarding the - in front of platform. I pretty much copypasted everyting, reread the instructions, but I still cant figure out what im doing wrong.