I'm an idiot,figured it out.
Hi guys,
I'm a home assistant user, just beginning my journey with Node red. I know home assistant node red isnt quite the same, but I think my question is relevant for both.
Quite simply, in the pictured flow, what do I need to place in between the inject node and the "Turn on light" node that will ONLY turn on the light if the payload includes "caption" : "ok" ??
This is just a simple example of a more complex flow I am doing. Im just stuck on how to parse the payload to look for specific text.
(((If you care, I am using BeSpoken to send silent command to my amazon alexa. The payload is what it returns. It only returns a "caption: ok" if the command is successful. I want to use the existence/non existence of "caption:ok" to trigger a message being sent to my smartphone)))
[{"id":"9228fdb7.e0546","type":"inject","z":"46dac922.3363f8","name":"inject","props":[{"p":"payload"}],"repeat":"","crontab":"","once":false,"onceDelay":"","topic":"","payload":"\"{\"message\": \"Turn off office light\", \"card\": null, \"sessionTimeout\": 0, \"streamURL\": null, \"transcript\": \"okay\", \"transcriptAudioURL\": null, \"display\": null, \"caption\": \"ok\", \"debug\": {\"deviceInteractionDuration\": 3.116769552230835}\"","payloadType":"str","x":630,"y":80,"wires":[["f4a65240.b372c","8dab3c0.f0e33c8"]]}]