Populate variables with Alexa voice command

I don't think automation has advanced this far yet, but it would be cool if it did. I hope I'm wrong :upside_down_face:

The goal for this is to be able to change a group of LIFX bulbs to whatever standard color...like say RED...by telling Alexa to do so WITHOUT having to create a device or rule for each color.

IE - " Alexa turn Kitchen Bulbs RED level 35"

And it sets all three to RED.

I have several bulb "groups" in different rooms. This means I really need three variables populated. Group / Color / Level.

I could do this with something like Room Lighting, but I'd need to literally create something like 100 devices to do so.

This is pretty much the purpose of the Room Lighting Activator Device (Room Lighting | Hubitat Documentation):

When a name is entered in the Command with Activator Device field, Room Lights creates a special child device called a Room Lights Activator. Such a device can be used with voice assistants and is a mechanism to Activate the Room Lighting automation. Such a device can also be used to control a group of devices. (This child device is also created when a Scene-1.2, Group-2.1 or Scene Transition app is imported into Room Lighting, and is used to activate the imported Scene, Group or Scene Transition — and is part of how Room Lighting can be used to replicate the behavior of these older apps.)

When the activator device device is commanded, the Devices to Automate are given the same commands. These commands take precedence over any settings in the Devices to Automate Table, except for Act or Off columns.

2 Likes

Right. I started with that. But you'd need 100's of "devices" to cover all the colors and levels possible to handle 5 or 6 different groups/rooms of lights. It's a great app and I'm using that now, but not thrilled with the limitations.

Then something isn't right in your setup. What type of Activator Device was created? It should be a Room Lighting Activator RGBW Bulb. Assuming that is correct, share that to Amazon as a bulb. Anytime you give a voice command, it will change the group to match its setting and over-ride the table.

Thanks...Live and learn, I guess. That wasn't exceptionally clear since I set the color I wanted that device to change to already when creating the device.

I don't think you can...but can you set color and brightness in one command somehow with Alexa? Of course, I can also think of several things I's like to be able to set multiple variables with via Alexa.

I’m not 100% sure, but I think you can use “and” between multiple commands. With Google, I can say “set kitchen lights to red and set level to 50%” and it will do both commands. The catch is that it will be one command at a time but the phrasing works. I think Alexa works the same way.

I don’t have actuators for these defined, only the color driven on and off. These I only need driven by Siri. Who knows maybe it’s just syntax…for instance Siri doesn’t seem to like the word level often…but is fine with brightness. Anyway…thanks.

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