# Have Alexa Speak Current Weather from Ecobee state

**URL:** https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726
**Category:** General
**Created:** [3 June 2020 17:59 UTC](https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726 "2020-06-03T17:59:06Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![CaptainSweatpants](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@CaptainSweatpants](https://discourse.nodered.org/u/CaptainSweatpants)
#### Post date: [3 June 2020 17:59 UTC](https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726/1 "2020-06-03T17:59:06Z")

</div>

So what I’m trying to do is have my Amazon Echo announce the current weather conditions from State data in my Ecobee4 (weather.ecobee4\_thermostat.state) when i turn on an input\_boolean.

I’m using node-red-contrib-alexa-remote2 for my tts stuff, but i cant enter custom template data for Alexa to transcribe in those nodes.

Any way of accomplishing this? Or do i have to approach this from a different angle?

Thanks

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [4 June 2020 07:12 UTC](https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726/2 "2020-06-04T07:12:59Z")

</div>

Should be possible, what do you have so far?

---

<div class="post-metadata">

### Author: ![CaptainSweatpants](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@CaptainSweatpants](https://discourse.nodered.org/u/CaptainSweatpants)
#### Post date: [4 June 2020 17:31 UTC](https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726/3 "2020-06-04T17:31:22Z")

</div>

Well, nothing. It’s usually a simple thing to do in any other scenario - A template would be best. But, as I said, the remote2 npm doesn’t allow for any call services, or data whatsoever — just plain text inputted into the node.

I don’t believe i can even send any sort of payload or the node either to tts its vars.

---

<div class="post-metadata">

### Author: ![E1cid](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/e1cid/32/77971_2.png) [@E1cid](https://discourse.nodered.org/u/E1cid)
#### Post date: [5 June 2020 08:16 UTC](https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726/4 "2020-06-05T08:16:31Z")

</div>

Remote2 will accept a json payload, via routine node setting as custom. So all you need to do is create the payload for the remote2 node.

```auto
{ type: 'speak', payload: { type: 'regular', text: 'Hello!', devices: ['My Echo']}
{ type: 'speakAtVolume', payload: { type: 'regular', text: 'Hello!', volume: 50 devices: ['My Echo']}

    type: regular, ssml, announcement

```

---

<div class="post-metadata">

### Author: ![CaptainSweatpants](https://avatars.discourse-cdn.com/v4/letter/c/7bcc69/32.png) [@CaptainSweatpants](https://discourse.nodered.org/u/CaptainSweatpants)
#### Post date: [5 June 2020 16:39 UTC](https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726/5 "2020-06-05T16:39:29Z")

</div>

Ah, perfect, I didn’t know I could do that. Thanks a lot

---

<div class="post-metadata">

### Author: ![ghayne](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/ghayne/32/39_2.png) [@ghayne](https://discourse.nodered.org/u/ghayne)
#### Post date: [5 June 2020 17:15 UTC](https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726/6 "2020-06-05T17:15:27Z")

</div>

In addition to the above solution you can feed the text you want to speak as a payload into a change node with a JSONata expression:

```auto
[{"id":"2fd3778d.f48f58","type":"change","z":"3286579d.4381e8","name":"","rules":[{"t":"set","p":"payload","pt":"msg","to":"{\t \"type\": \"speak\",\t \"payload\": {\t \"type\": \"announcement\",\t \"text\": payload,\t \"volume\": \"50\",\t \"devices\": [\"Device\"] \t }\t}","tot":"jsonata"}],"action":"","property":"","from":"","to":"","reg":false,"x":380,"y":380,"wires":[["bcbe034a.0f9b1"]]}]

```

Saves hard coding every message.

---

<div class="post-metadata">

### Author: ![system](https://us1.discourse-cdn.com/flex026/uploads/nodered/original/1X/d073cd938eafa2e558d7c2cd59003b3ef4963033.png) [@system](https://discourse.nodered.org/u/system)
#### Post date: [19 June 2020 17:15 UTC](https://discourse.nodered.org/t/have-alexa-speak-current-weather-from-ecobee-state/27726/7 "2020-06-19T17:15:36Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
