Starting with node red, for some automation, i want to change temperature of multiple climate devices in one “call service”. I found to set the same temperature to many climate, but not a way to send different temperature to different climate in one sigle call
Is it a way to do it ?
I tried this JSON as data for call service (with Domain: climate and service: set_temperature):
The question probably is: Why do you want to do all that in one single call?
Just for cosmetic reasons?
Afaik it gets very complicated but should be achievable by using a function node and sending the calls seperate. However, in the end you will always do multiple seperate calls to the set_temperature.
This is because the set_temperature service call itself does not support several entities with different temperature values.
Basically you can inject any data via the function node:
On top, with separate calls in the NodeRed Flow you can save some time later when you try to debug the flow or trying to figure out what you were doing in the first place.
So I would recommend to simply just do seperate calls and simplify the automation at a different place.
I just want to have something readable. Putting a ‘call function’ node for every of my climate (14 zones) for my 4 ‘heating modes’, means 52 nodes in the flow. I was just expecting a more ‘optimized’ way to achieve this.
Maybe a subflow to which I pass a ‘matrix’ with the value for each room ? (Again, I am new in node-red, and ‘low/No-code’ programming… I try to get a good approach)
Maybe its worth to think about separating the flows. I would probably try to make one generic flow that can address all of the 14 Zones individually. And then for the heat modes, basically just refer to that original flow and change to values?
Are you really setting different temperatures in all 14 zones??
I have 19 thermostats in my house.
As an example, in my goodnight routine I set all of the basement thermostats to 1 temperature, the upstairs living area to another, and the bedrooms to another again. So I really only have 3 nodes doing all 19 thermostats because I can take the 4 bedroom thermostats that are all being set to 20 degrees and put them in the same node.
One thing I’ve learned about node-red, it’s certainly possible to clean it up and reduce those nodes. But 1.5 years from now when you need to adjust something, you’re sitting there staring at your flow trying to remember what you did instead of just grabbing that node and making the change you need.
A very belated thank you. I just installed NodeRed this morning and it’s been a learning curve! I also wanted to change the temp of multiple climate entities and your original code got me there.
I’m grabbing a list of entities from a ‘get entities’ node and passing it to this ‘call service’ node