I have an HVAC system I am controlling from Node Red.
I am trying to design it for a variable number of zones. That seems hard to do with separate nodes, but easy to do in a function node, just loop.
Right now I have a fixed-size and rather kludgy set of nodes that interaction with context storage and basically copy it into HA input_numbers.
I discovered the companion app, which gives a more efficient thing than input_numbers, buttons etc.
But I still appear to be stuck updating these with individual flows (for example, if I had z1_high and z1_low, z2_high and z2_low, etc. and want to update them from a function node. So I donāt have to hard code how many there are (i.e. a node(s) for each update)?
Is there a way to do so? Does the companion somehow allow it?
Linwood
PS. I realize I can output AN entity name and update it in a node, and so not have to have a specific one. But I donāt see a way to update X entities in a single output from the function node, e.g. loop through a message structure of arbitrary length updating entities?