Unable to set value of entity from node red

I try to set the value of an entity using node red. When triggering the call service node it seems to work, as no error code is shown. But the value of the entity did not change. I tried to set the value of other entities, but also without success.

[{"id":"b61e734fda0575f2","type":"api-call-service","z":"7a22ab309c437a40","name":"Set Backup Reserve","server":"56a056ad.ac2628","version":5,"debugenabled":false,"domain":"input_number","service":"set_value","areaId":[],"deviceId":[],"entityId":["number.solaredge_neu_storage_backup_reserved"],"data":"{\"value\":60}","dataType":"jsonata","mergeContext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":640,"y":560,"wires":[[]]},{"id":"66626f74f14ae52b","type":"inject","z":"7a22ab309c437a40","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payload":"","payloadType":"date","x":200,"y":560,"wires":[["b61e734fda0575f2"]]},{"id":"56a056ad.ac2628","type":"server","name":"Home Assistant","version":1,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true}]

The service call you are using is

input_number : set_value

this works on entity domains starting input_number

As your entity is of domain number you need to use service call

number : set_value

You can always test the service calls out using the Home Assistant Developer > services first. If you can’t get it to work there, it will never work in Node-RED.
If you can get it to work there, you can always switch from UI to YAML code mode, which will show you the settings required.

1 Like

Thats it. Thanks a lot! I also appreciate your hint using the Home Assistant Developer / Service tool first for testing.