Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mishakim opened this issue Aug 21, 2019 · 4 comments

Comments

@mishakim
Copy link

mishakim commented Aug 21, 2019

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):

  • OS: Homebridge running on Raspbian Stretch
  • Node 8.15.1

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

@mishakim
Copy link
Author

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
Copy link

Hoefnix commented Aug 21, 2019

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
Copy link
Owner

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

@mishakim
Copy link
Author

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants