I use a bunch of Tuya (SmartLife) devices to control my outside lights, etc.... Right now I use some simple python scripts and a library called TinyTuya ( https://pypi.org/project/tinytuya ) to turn them on/off before/after a show.... Would be nice to be able to control things directly from Vixen rather than through scripts. Could be very useful for others who need to 'dim the lights' before a show like I do.
Vixen is designed around a streaming values paradigm. Channel values for every channel in the system are sampled many times per second and the values output via one of the output modules. Tuya doesn't fit well into this. It wouldn't be able to handle the update rate. This calls for more of an event driven system. We don't have anything like that built into the system as it stands.
We've been putting very little effort into the scheduler built into Vixen. Especially when it comes to more advanced functionality. We regard it as a very basic scheduler that can run very simple shows. Once you get beyond that, we recommend moving to FPP. FPP already has an event engine and a tuya plugin. I would recommend you investigate this route.
https://falconchristmas.com/forum/index.php?topic=13378.0
jchuchla wrote:
Vixen is designed around a streaming values paradigm. Channel values for every channel in the system are sampled many times per second and the values output via one of the output modules. Tuya doesn't fit well into this. It wouldn't be able to handle the update rate. This calls for more of an event driven system. We don't have anything like that built into the system as it stands.
We've been putting very little effort into the scheduler built into Vixen. Especially when it comes to more advanced functionality. We regard it as a very basic scheduler that can run very simple shows. Once you get beyond that, we recommend moving to FPP. FPP already has an event engine and a tuya plugin. I would recommend you investigate this route.
https://falconchristmas.com/forum/index.php?topic=13378.0
Makes sense for the main lighting devices, but isn't the Launcher essentially a event driven system?
That's what I use today... throw the Launcher effect on the timeline, then set it run a python script that turns on/off the lights (or whatever I need done that can be scripted). I was just hoping to be able to avoid having to create those scripts and execute the action directly.
Unfortunately FPP doesn't support one of my devices (Elexol EtherIO), so it's not a solution for me.
I am not overly familiar with Tuya but a quick google suggests there is some form of MQTT support. If the Launcher were able publish an event to MQTT server, do you think that would enable your use cases?
jeffu231 wrote:
I am not overly familiar with Tuya but a quick google suggests there is some form of MQTT support. If the Launcher were able publish an event to MQTT server, do you think that would enable your use cases?
Its probably just easier for me to continue writing simple Python scripts and running them via Launcher.
