Virtual devices / user input capture
Posted: Mon Dec 10, 2018 2:07 pm
Hi all, Happy Monday
I am working on installing a bunch of WS2812B individually addressable LED strips on my house for year round holiday / event lighting. I am basing my solution off several DIYers I follow on youtube. Basically the solution is driven by a NodeMCU pre-programed with a bunch of lighting patterns and the ability to control things like RGB values, brightness, pattern, and on/off state via sending MQTT messages to the NodeMCU. The original solution leverages Home Assistant MQTT lighting controls to interface with the NodeMCU via MQTT. I have this all set up and it works great, but I would like to pull the system into Indigo and eliminate the need to use Home Assistant for control.
I created a virtual on/off device in Indigo and used embedded python scripts to send the MQTT on/off messages which is working great. I would like to do something similar to account for allowing the user to set the pattern, brightness, and RGB values. Is there any way to create virtual devices, or control page entities that allow a user to select options from a drop down (patterns), use a slider to select a brightness value, or a color picker to chose RGB values? If all these virtual devices did was allow for the user selected or inputed values to populate a variable, I could trigger off the variable change and use the embedded python approach to send the necessary MQTT updates to the NodeMCU.
Maybe someone has a better idea how to attack this, would love suggestions. Thanks!
-Eric
I am working on installing a bunch of WS2812B individually addressable LED strips on my house for year round holiday / event lighting. I am basing my solution off several DIYers I follow on youtube. Basically the solution is driven by a NodeMCU pre-programed with a bunch of lighting patterns and the ability to control things like RGB values, brightness, pattern, and on/off state via sending MQTT messages to the NodeMCU. The original solution leverages Home Assistant MQTT lighting controls to interface with the NodeMCU via MQTT. I have this all set up and it works great, but I would like to pull the system into Indigo and eliminate the need to use Home Assistant for control.
I created a virtual on/off device in Indigo and used embedded python scripts to send the MQTT on/off messages which is working great. I would like to do something similar to account for allowing the user to set the pattern, brightness, and RGB values. Is there any way to create virtual devices, or control page entities that allow a user to select options from a drop down (patterns), use a slider to select a brightness value, or a color picker to chose RGB values? If all these virtual devices did was allow for the user selected or inputed values to populate a variable, I could trigger off the variable change and use the embedded python approach to send the necessary MQTT updates to the NodeMCU.
Maybe someone has a better idea how to attack this, would love suggestions. Thanks!
-Eric