Trying to use the Get Entities node to pass a temperature value to Alexa Speak

Hi still very new to Node-Red I have a temperature sensor on a ESP Home Device in the garage.

ID is “sensor.garage_temperature”

Trying to get that in Node-Red, but struggling. I thought the new(ish) Get Entities node would be ideal.

I want to use that temperature value is a Alexa speak sentence.

Many thanks in anticipation

Regards Dave

You dont need the get entities node for that. Simply a normal state node will do.
Get Entities is cool when you want to get several entities that you define in the node. i.e.: Every sensor that has the name brightness in it and is above 50lux.

In you case, a current state node will give you the value of the sensor. You can then just use the message with Alexa

Yes, do a Get State for the entity, then use {{payload}} to have Alexa say the temp.

Many thanks, have tried that and payload = Temperature.

What node do I need to add the get the payload added to some text i.e. "The garage Temperature is " payload

Regards Dave

In the call service node that you speak the message:

....
....
  message: "The garage temperature is {{payload}} degrees",
....
....

Brilliant no place for it in the “Routine Speak” node so put in a template.

<speak>
The garage temperature is {{payload}} degrees
</speak>

One again, thank you all for your help

Regards Dave

Just use the Call Service node, with data looking something like this:

{
    "message": "Please close the following doors and windows. {{payload}}.  Good night.",
    "data": {
        "type": "tts"
    },
    "target": [
        "{{data.state}}"
    ]
}

This assumes you’re using AMP tho, and maybe you aren’t.

Hi I am using “node-red-contrib-alexa-remote2-applestrudel” as my way of getting Alexa to speak

Re Dave