Hi, I recently purchased two Zipato RGBW Gen2 bulbs. They work great and I have no issues with them at all.
I have successfully set the variables that are noted in their documentation to get the bulb to strobe different colors. See attached screenshot. This also works perfectly.
Thanks, this is exactly what I needed. I’ve gotten the code I need to run, and I’m using the advanced editor but one thing I’m stumbling on is how to add the senddata command for all 3 varibles:
The advanced editor only allows you to add one of the same type of command. So I’m getting an error “action already exists” when i try and set the second line.
Is there a way to use the SendData function and put all three parameters together into one line ?
As a side note here, I’ve tried using this example to add a delay and it still doesnt work when I have it inside a scene. it DOES work fine when I manually execute it via the “develop apps” section though
Scene Lua executes before the scene’s actions, not after. This is because scene Lua can be used to prevent a scene from executing based on Lua-determined rules (if the scene Lua returns false, the scene actions do not run).
I don’t know the devices you are working with, but if the lights have to be on before they blink, you’ll need to do that in your scene Lua as well.
In addition to this, if I just turn the lights on and leave them on, then create a basic scene with just the 6 lines i need to start the strobing, it does not work.
If I run the same 6 lines manually via “Develop Apps” it works perfectly fine. So something with running scenes is not properly working for these devices. I have other devices setup that are able to execute Lua code without a problem.
You have an “end” in the code block that isn’t a code block that needs an “end”. That will cause a syntax error, and if you do that in scene Lua, it can break all of the scenes’ Lua on your Vera. Not sure if that’s the only problem, but it stands out. You might also look at the LuaView plugin to help you make sure there are not other syntax errors in the code.