Because i’m new to this and learning as i go i think it’s only fair i leave a trail of steps for any other new snips/ raspberry / home automation /node red noob like me so we can all learn.
If you are wanting to get snips to respond with a notification via node red when something happens in node red such as… say “welcome home” when Home assistant senses you’ve just arrived home. Then you can achieve that by doing the following
In node red you need to use a “MQTT output” node. and suggest a “change node”. The MQTT output node needs to be set up to your MQTT broker that runs snips. and the topic you publish to is
as per this screen shot
Then add a "change node " and set the payload to what ever text you want spoken, for this example we are asking snips to say “hello world”
NOTE: because we are using this inside a change node we don’t need the proceeding and trailing ’ ’ (before and after the curly brackets) like we would if sending the publish command directly at a command prompt like in a raspberry pi.
now you connect the right hand side of the change node to the MQTT publish node and the left hand side of the change node to the end of your Node red flow.
In this below example i have it just connected to a “inject node” for testing however if we had a flow that detected when your home then you would connect the change node to the end of that flow so that once it triggered, this MQTT node would publish a topic to snips and make her/him speak.
Hope that helps other tinker’ers out there that want Snips to talk to you via node red