Call service nodes suddenly giving: "Call-service error. extra keys not allowed"

I had lot of node red flows setup with HA and working for well over a year now. But suddenly my automations stopped working yesterday. after digging around, i found that basically al the call service nodes on node red (the node that does basically all the actions) are failing with following error:

Call-service error. extra keys not allowed @ data['target']. Got {'entity_id': ['light.kitchen_lights']}

(obviously this example is for my kitchen lights, and ive isolated all complex parts of my flow to simply an inject node and a call service node and this happens every time on every entity ive tried so far, input booleans, lights, light groups etc).

That said, rest of my HA works just fine. i can use the UI to toggle all my lights, alexa (connected to HA) still able to turn devices on/off. My HA hasent been updated recently at all (still running 2021.2.3), node red also wasent updated recently, although i updated it today after having the issue hoping it might fix the issue but no change (so its not due to node red update, exact same issue before update).

this is what the call node + erorr looks like.

any suggestions/thoughts? like i said, i did absolutely no changes in a very long time, my automations have been working great for about a year now. and this happened yesterday all of a sudden.

The latest version of the HA nodes requires at minimum 2021.3.0. All versions before v0.42.0 should work fine on older HA installs. Are you using the NR add-on and have the automatic update enabled?

The only solutions I can think of at the moment:

  • revert the HA nodes packages
  • update HA to a valid version.
  • remove the entity id from the entity id field and put it in the data field. You won’t be able to use the entity id field. {"entity_id": "light.kitchen_lights"}

Im using NR add-on, yes. and I just checked, and yes i did have auto update on the add on :frowning: (thanks for the suggestion on checking this, i never would have noticed, i assumed it was off). I turned off auto update now.

All versions before v0.42.0 should work fine on older HA installs

What did you mean by this? Whats the v0.42.0 referring to?

  • revert the HA nodes packages

Is this easy to do? Do you have rough instructions or anything?

update HA to a valid version

This is probably the right thing to do. ive been meaning to do a full update at somepoint but dont really have time to deal with the fallout. Do you think updating to 2021.3.0 is enough?

Is the version of the HA nodes that the add-on uses. This can be found in NR under the manage palette menu.

Sorry I don’t run the add-on so really don’t have any information on this.

Any greater or equal to 2021.3 will make it so at least the latest update of HA nodes will work with HA.

In one of the recent Node-Red updates the HA scheme was updated too and you had to edit and re-save the node for it to have that nodes scheme updated.
The nodes name text will be written in yellow if this is the case.

This is the error I am getting - node controls my Alarmo Mode

Call-service error. value should be a string for dictionary value @ data['entity_id']

I’m working on push notifications from NR to the mobile app, and they used to work, but now they are super sporadic. I literally just recreated them, thinking I had something wrong. They were working for about 3 minutes, now all of a sudden some of them stopped. The one node that was working for the last 10 minutes stopped working randomly. No change made to it.

The one that was working, only worked for an extra 10 minutes then stopped randomly. No changes made to it. Nothing in the log except for the same output as the debug node below.

"Call-service error. extra keys not allowed @ data['entity_id']"

entity_id is not needed in data. I assume you have it defined in the data field since you didn’t post your settings.

This may help as I got a similar error on a couple of Notify nodes.
Node Red Palette Manager showed ‘websocket’ and ‘dashboard’ as “update available”.
Updated each individually with a restart of HA and the Call service error disappeared.
‘Modbus’ also shows update available, but I’m not using that, so left it for later.

Seems i ran into the same issue. Did you find a solution?

(i know, it’s an old post… but anyhow)

1 Like

same here, any solution ?

Bump

Anyone find a solution yet? All of my old nodes work fine but when I try to create a new node or copy an old one and edit just the entity id I get the same “extra keys not allowed @ data[‘entity_id’]”