I have two rooms, one with 6 lights and another with 13 lights. When controlled with the Smartthings app I have lights that are missed, virtually all the time. I’ve done some experimentation and wanted to share the results and see if anyone has any advice.
Via the Hue apps and Hue tap I get 100% rock solid execution. Never misses a light.
In either room, if I reduce the number of lights by deselecting them in the app I get better results. For example, in the 6 light room. If I have 3 lights the execution is rock solid. If I have 4 lights it is 90%+, when I add the 5th light then the same light from the original 4 will stop responding completely. Drop the 5th light and that light from the original 4 is fine again.
Execution via the “lights and switches” app in the dashboard and modes is problematic. I suspect those are both using switches.off() and suspect that there is some timing or latency issue. To test this theory I created an app which used switches.off() and had the exact same results. The same lights were missed every time. I then modified the app such that it iterates through each switch, turns it on/off and then calls pause. I started at 100ms and increased the pause for each test. As I increased the pause I got better results. When I reached 350ms I now get 100% rock solid execution on all lights.
So I have two questions.
- Does anyone have any idea what the root cause of this problem is?
- Is the code for “lights and switches” available? Was thinking I could rewrite it in the same manner as my test switch/app. Not an elegant fix, but would get by until the real root issue can be resolved.