Node-RED API Error with call service node

I have a sequence with a couple call service nodes that are generating an API errors when it runs, however, if I do an inject node they run fine. I just started using Node-RED so not sure what I’m doing wrong. This is the error returned by the one:

Call-service API error. Error Message: extra keys not allowed @ data['volume_level']

nr04

If I run the inject node though it runs fine and sets the volume.
nr03

Here is the full flow:

Any help would be appreciated.

The problem, most likely, is coming from the wait_until node (or possibly the master bath lights node) overriding the inputs to the set volume node. [Edit: Duh, hit send to quick] In your debug, you should see what the API error is and what actually broke will be in your HA logs.

From the docs:

The easiest fix would be to place a change node in front of the set volume node to delete the msg.payload before going into set volume.

That worked thanks.

1 Like