Hi, I am hoping someone can help me with what i think is going to be an easy question.
I am using Node Red with Home Assistant and in the above flow I would like to extract the data.entity_id from the msg.payload and use it in the follow call service node. This changes a text helper in Home Assistant to the data.entity_id value, which is then used elsewhere.
I have tried a few different ways but I only ever get "undefined" in the debug window.
Please find the flow below
Can any one help??
Thanks
Phil
[{"id":"6107a04d8c4e8be0","type":"tab","label":"Sandbox 2","disabled":false,"info":"","env":[]},{"id":"51b246ae41a95fe0","type":"inject","z":"6107a04d8c4e8be0","name":"","props":[{"p":"payload"},{"p":"topic","vt":"str"}],"repeat":"","crontab":"","once":false,"onceDelay":0.1,"topic":"","payloadType":"date","x":160,"y":110,"wires":[["14afbf15200ffef4"]]},{"id":"14afbf15200ffef4","type":"api-call-service","z":"6107a04d8c4e8be0","name":"Trigger Morning Scene","server":"b5fb3c40.585c7","version":3,"debugenabled":true,"service_domain":"scene","service":"turn_on","entityId":"scene.lounge_morning","data":"{\"transition\":\"2\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":450,"y":170,"wires":[["7973da7b6592fd79"]]},{"id":"7973da7b6592fd79","type":"api-call-service","z":"6107a04d8c4e8be0","name":"Lounge Status","server":"b5fb3c40.585c7","version":3,"debugenabled":false,"service_domain":"input_text","service":"set_value","entityId":"input_text.lounge_scene_status","data":"{\"value\":\"This is {{payload}}\"}","dataType":"json","mergecontext":"","mustacheAltTags":false,"outputProperties":[],"queue":"none","x":780,"y":170,"wires":[["998fc3ac303bf5e5"]]},{"id":"998fc3ac303bf5e5","type":"debug","z":"6107a04d8c4e8be0","name":"Test Debug","active":true,"tosidebar":true,"console":false,"tostatus":true,"complete":"payload","targetType":"msg","statusVal":"payload","statusType":"auto","x":1190,"y":170,"wires":[]},{"id":"b5fb3c40.585c7","type":"server","name":"Home Assistant - HA","version":2,"addon":true,"rejectUnauthorizedCerts":true,"ha_boolean":"y|yes|true|on|home|open","connectionDelay":true,"cacheJson":true,"heartbeat":true,"heartbeatInterval":"30"}]