NodeRed and HVAC_MODE

I’m trying to set my HVAC_MODE to off using the Call Service Node but getting API errors thrown.
If I configure the node without any data, just using Set HVAC_Mode, I get no errors and the service called is “TURN_OFF” however, it does nothing to the actual state of the AC unit.

Example 1

If I include a data feed in the config, I get an API Error Thrown - Extra keys not allowed, what am I missing?

Example 2

I can easily go into Developer tools and confirm that setting the HVAC_MODE has the desirable effect however, can’t replicate this in NR:

Example 3

TIA

This is what I use:

[{"id":"14f7b734e54e9038","type":"api-call-service","z":"66ddc282db66c141","name":"Heat off","server":"4bbca37b.1700ec","version":3,"debugenabled":false,"service_domain":"climate","service":"set_hvac_mode","entityId":"climate.sovrum, climate.david, climate.matilda, climate.vardagsrum","data":"{ \t    \"hvac_mode\": \"off\"\t}","dataType":"jsonata","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":520,"y":40,"wires":[[]]},{"id":"4bbca37b.1700ec","type":"server","name":"Home Assistant","version":1,"legacy":false,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]
1 Like

This works on my pellet stove:
image
But maybe your Json is wrong? Tried

{"hvac_mode":"off"}

I’m asking, because i do use hvac_mode, but only for “auto” and not “off”

1 Like

What verison of NodeRed are you using?

Doesn’t work for me, I tried turn_off service but it does nothing.
What version of NodeRed are you running?

11.0.4 , but I believe the issue is the data selector thing. Look at mine it’s set to J: yours {}

Try and import my node and just change the entities and see if it works.

Node-RED
Current version: 11.1.0
Tried switching from J:Expression to JSon ?
image

I was already using JSON {} - see screenshots. Tried it the other way also;

Interestingly, if you look on the right, it appears to be calling the TURN_OFF service.

Figured out the issue;

Imgur

The previous node was outputting and passing it’s output into the AC OFF Node causing a clashes in the messages. I’ve stopped the Bedroom lamps off from outputting now and it works!

If you try to turn it off in HA which service call works? You can go to dev tools under call service and run commands.

Another thing is if it is forced air, it may be setting the fan mode to off that shuts the unit down.