# Passing colors to Alexa via remote2

**URL:** https://discourse.nodered.org/t/passing-colors-to-alexa-via-remote2/31740
**Category:** General
**Created:** [19 August 2020 18:01 UTC](https://discourse.nodered.org/t/passing-colors-to-alexa-via-remote2/31740 "2020-08-19T18:01:02Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![wecoyote5](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wecoyote5/32/27418_2.png) [@wecoyote5](https://discourse.nodered.org/u/wecoyote5)
#### Post date: [19 August 2020 18:01 UTC](https://discourse.nodered.org/t/passing-colors-to-alexa-via-remote2/31740/1 "2020-08-19T18:01:02Z")

</div>

Hi all,

I'm converting from ST to Hubitat and Node Red. I'm using Alexa Remote 2 to access Alexa from NR. So far, knock on wood, everything has been working just fine. I have a few RGBW LED WiFi controllers from Tuya that Alexa integrates with just fine. Alexa can control them; changes colors, etc... and integrating directly to NR and/or Hubitat seems a bit overly complex for just a few lights. The remote2 nodes also work well so my infrastructure's in place and pretty stable.

Where I've come to a little stumbling block as a NR noob is that I would like to use NR to send a color to Alexa based on a dashboard selection. The Alexa node allows me to create an action to select a color but I am limited to the dropdown list of pre-defined colors. I cannot find any tutorials or info online that help me figure out how to pass the color into the node instead of only selecting a color from the drop-down list.

Is there anyone that maybe have done this and can help? 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: [19 August 2020 19:03 UTC](https://discourse.nodered.org/t/passing-colors-to-alexa-via-remote2/31740/2 "2020-08-19T19:03:33Z")

</div>

You should be able to use the custom routine node with payload

```auto
{ type: 'smarthome', payload: { entity: 'Lamp_name', action: 'setColor', value: '#FF00FF' } 

```

This info can be found on the node info of the custom node

- entity can be an id or name (case insensitive)
- action: `turnOn` , `turnOff` , `setColor` , `setColorTemperature` , `setBrightness` , `setPercentage`

---

<div class="post-metadata">

### Author: ![wecoyote5](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/wecoyote5/32/27418_2.png) [@wecoyote5](https://discourse.nodered.org/u/wecoyote5)
#### Post date: [19 August 2020 19:25 UTC](https://discourse.nodered.org/t/passing-colors-to-alexa-via-remote2/31740/3 "2020-08-19T19:25:31Z")

</div>

Thanks, I'll give that a try.

Nice Avatar BTW 🙂

---

<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: [18 October 2020 19:25 UTC](https://discourse.nodered.org/t/passing-colors-to-alexa-via-remote2/31740/4 "2020-10-18T19:25:47Z")

</div>

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