Node-red mobile notification (android)

Hello,

I seem to be having a problem with node-red pushing a mobile notification to my android device.

`[{"id":"dfa852ad.08ef","type":"inject","z":"5207aff2.c4bcf8","name":"","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"","once":false,"onceDelay":0.1,"x":180,"y":200,"wires":[["c710521.8eaa6b"]]},{"id":"c710521.8eaa6b","type":"api-call-service","z":"5207aff2.c4bcf8","name":"","server":"8b533b83.ade2f8","version":1,"debugenabled":false,"service_domain":"notify","service":"mobile_app_xy_1","entityId":"person.xyz","data":"{\"title\":\"test
 this 
message\"}","dataType":"json","mergecontext":"","output_location":"","output_location_type":"none","mustacheAltTags":false,"x":420,"y":200,"wires":[[]]},{"id":"8b533b83.ade2f8","type":"server","z":"","name":"Home
 Assistant","addon":true}]`

When trying to debug, I get:

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

I have the same concept working fine in home assistant; not understanding why node-red seems to be having the issue here. Hoping the community can point me in the right direction.

Try it without the linefeed characters in your title and server properties.
Also, remove the entity_id, otherwise you’ll get an API error.

Looks like removing the entity did the trick. Any idea why the notification is not giving me a value here?

{
    "title": "light notification",
    "message": "The kitchen light is: {{states('light.kitchen')}}"
}

the value is off when looking at states but when the message arrives there’s no value.

Same problem here, even though the template resolves properly in the developer tools.

What works, however, is the following:

{
    "message": "The kitchen light is {% if is_state('light.kitchen','on') %}ON{% else %}OFF{% endif %}"
}

Go figure!

That’s odd; i guess in node-red you have to force an evaluation in order to get states within templates?