Error message I don’t understand

I’m getting an error message in node Red when I use a number type helper:

Does any one know what this means? It’s from a call service node where I have set it to set the value of the number helper.

Call-service error. required key not provided @ data[‘value’]

I’ve got msg.payload to be just a number (or a string that looks very much like a number)

It means you’re not providing something required

What service were you trying to call?

Have you tried a sample of that service in the core development tools?

Please provide a copy of your flow posted inside a preformatted code block

It’s a set_value command to number helper. msg.payload is already what looks like a number (using a change node as it was originally in payload.payload.temperature.temperature . I know already i must be missing something but I can’t figure out what and I’m away from a big screen now. Is there a way to look at the code without a big screen ?

Your value field should be set to J: and then something like {"value":msg.new_value}

Is that possible without resorting to a function node and coding it? I’ve been trying to keep it simple and just use nodes but I think I should just have bitten the bullet early on and coded it. Probably would have saved time, although would have been harder to share with others.

It is in the node that complains a out a missing value.
You just need to insert that and correct the msg. text to where you have your value, like msg.payload maybe

1 Like

Thanks! All I had to do is add “ {‘value’:msg.payload} ” to the existing node and it worked.

1 Like