sahilchaddha / homebridge-magichome-platform

Homebridge Plugin for MagicHome LED Strips with Preset Scene Automation Support (Cycle Color/Fade/Strobe)
MIT License
47 stars 12 forks source link

Lights return to 50% brightness and default color immediately after changing #25

Open mishakim opened 5 years ago

mishakim commented 5 years ago

Describe the bug If I change brightness or color in Home App or via Siri, the lights make the change, then immediately return to 50% brightens and a light purple color

Expected behavior Once changed, brightness/color remain until changed again

Config { "platform": "MagicHome-Platform", "debug": true, "lights": [ { "name": "Roofdeck String", "ip": "10.0.1.32", "setup": "RGBWW", "purewhite": false, "timeout": 10000 } ] } I have tried each of RGB, RGBW, RGBWW, same behavior in all -- lights are actually RGB

Logs Setting brightness, and then reverting:

[2019-8-20 21:31:59] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 --on [2019-8-20 21:31:59] [MagicHome-Platform] [ 'Polling Light', '10.0.1.32' ] [2019-8-20 21:31:59] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -i [2019-8-20 21:32:00] [MagicHome-Platform] Turning on bulb at 10.0.1.32 [2019-8-20 21:32:00] [MagicHome-Platform] Unknown ID [10.0.1.32] ON [Unknown mode 0x0] [2019-8-20 21:32:00] [MagicHome-Platform] [ 'Updating Device', '10.0.1.32', { H: 255, S: 100, L: 50 }, true ] [2019-8-20 21:32:04] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 255, S: 100, L: 100 }, [ 64, 0, 255 ] ] [2019-8-20 21:32:04] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBW -c 64,0,255 [2019-8-20 21:32:04] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 --on [2019-8-20 21:32:05] [MagicHome-Platform] Setting color RGB:(64, 0, 255) [(64, 0, 255)] [2019-8-20 21:32:05] [MagicHome-Platform] Turning on bulb at 10.0.1.32 [2019-8-20 21:32:10] [MagicHome-Platform] [ 'Polling Light', '10.0.1.32' ] [2019-8-20 21:32:10] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -i [2019-8-20 21:32:10] [MagicHome-Platform] Unknown ID [10.0.1.32] ON [Unknown mode 0x0] [2019-8-20 21:32:10] [MagicHome-Platform] [ 'Updating Device', '10.0.1.32', { H: 255, S: 100, L: 50 }, true ] [2019-8-20 21:32:11] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 255, S: 100, L: 50 }, [ 32, 0, 128 ] ] [2019-8-20 21:32:11] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBW -c 32,0,128 [2019-8-20 21:32:11] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 --on [2019-8-20 21:32:11] [MagicHome-Platform] Turning on bulb at 10.0.1.32 [2019-8-20 21:32:11] [MagicHome-Platform] Setting color RGB:(32, 0, 128) [(32, 0, 128)] [2019-8-20 21:32:20] [MagicHome-Platform] [ 'Polling Light', '10.0.1.32' ] [2019-8-20 21:32:20] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -i [2019-8-20 21:32:21] [MagicHome-Platform] Unknown ID [10.0.1.32] ON [Unknown mode 0x0] [2019-8-20 21:32:21] [MagicHome-Platform] [ 'Updating Device', '10.0.1.32', { H: 255, S: 100, L: 50 }, true ]

Setting color and reverting:

[2019-8-20 21:33:29] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 255, S: 87, L: 50 }, [ 44, 17, 128 ] ] [2019-8-20 21:33:29] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBW -c 44,17,128 [2019-8-20 21:33:29] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 129, S: 87, L: 50 }, [ 17, 128, 33 ] ] [2019-8-20 21:33:29] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBW -c 17,128,33 [2019-8-20 21:33:30] [MagicHome-Platform] Setting color RGB:(44, 17, 128) [(44, 17, 128)] [2019-8-20 21:33:30] [MagicHome-Platform] Setting color RGB:(17, 128, 33) [(17, 128, 33)] [2019-8-20 21:33:33] [MagicHome-Platform] [ 'Polling Light', '10.0.1.32' ] [2019-8-20 21:33:33] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -i [2019-8-20 21:33:34] [MagicHome-Platform] Unknown ID [10.0.1.32] ON [Unknown mode 0x0] [2019-8-20 21:33:34] [MagicHome-Platform] [ 'Updating Device', '10.0.1.32', { H: 255, S: 100, L: 50 }, true ] [2019-8-20 21:33:34] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 255, S: 100, L: 50 }, [ 32, 0, 128 ] ] [2019-8-20 21:33:34] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBW -c 32,0,128 [2019-8-20 21:33:34] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 255, S: 100, L: 50 }, [ 32, 0, 128 ] ] [2019-8-20 21:33:34] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBW -c 32,0,128 [2019-8-20 21:33:34] [MagicHome-Platform] Setting color RGB:(32, 0, 128) [(32, 0, 128)] [2019-8-20 21:33:34] [MagicHome-Platform] Setting color RGB:(32, 0, 128) [(32, 0, 128)] [2019-8-20 21:33:44] [MagicHome-Platform] [ 'Polling Light', '10.0.1.32' ] [2019-8-20 21:33:44] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -i [2019-8-20 21:33:44] [MagicHome-Platform] Unknown ID [10.0.1.32] ON [Unknown mode 0x0] [2019-8-20 21:33:44] [MagicHome-Platform] [ 'Updating Device', '10.0.1.32', { H: 255, S: 100, L: 50 }, true ]

Desktop (please complete the following information):

Additional context controller is unlabelled, Magic Home setup says it is UCS1903, the lights are addressable bulbs along a string

mishakim commented 5 years ago

Just tried controlling from my iPhone (previously using iPad Pro), and the behavior is different -- now, it keeps the changes, but subsequent changes don't happen at all, until yet another change is requested. E.g., turn on works, turn to red works, turn to blue nothing happens, turn to green turns blue, turn brightness up turns green

Here are some logs, it's many repeats of similar:

[2019-8-20 21:54:31] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBWW -c 232,0,15 [2019-8-20 21:54:31] [MagicHome-Platform] Setting color RGB:(0, 232, 35) [(0, 232, 35)] [2019-8-20 21:54:31] [MagicHome-Platform] Setting color RGB:(232, 0, 15) [(232, 0, 15)] [2019-8-20 21:54:44] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 356, S: 100, L: 91 }, [ 232, 0, 15 ] ] [2019-8-20 21:54:44] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBWW -c 232,0,15 [2019-8-20 21:54:44] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 241, S: 100, L: 91 }, [ 4, 0, 232 ] ] [2019-8-20 21:54:44] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBWW -c 4,0,232 [2019-8-20 21:54:44] [MagicHome-Platform] Setting color RGB:(4, 0, 232) [(4, 0, 232)] [2019-8-20 21:54:44] [MagicHome-Platform] Setting color RGB:(232, 0, 15) [(232, 0, 15)] [2019-8-20 21:54:49] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 241, S: 100, L: 91 }, [ 4, 0, 232 ] ] [2019-8-20 21:54:49] [MagicHome-Platform] /usr/lib/node_modules/homebridge-magichome-platform/src/flux_led.py 10.0.1.32 -x RGBWW -c 4,0,232 [2019-8-20 21:54:49] [MagicHome-Platform] [ 'Setting New Color From ', '10.0.1.32', { H: 356, S: 100, L: 91 }, [ 232, 0, 15 ] ]

Hoefnix commented 5 years ago

You are not alone in this problem; I have exactly the same behavior. If needed I can provide the logs but they are similar.

sahilchaddha commented 5 years ago

I am unable to reproduce this issue. Can u share your config.json ? And picture of your RGB controller ?

mishakim commented 5 years ago

config.json is above (unless you want the whole thing, I can get that tonight). Here's the product: amazon, there's no pic of the controller there, but it's just a black oblong box with weatherproof light cord in and out. No markings on it at all. I can take a pic tonite if it helps