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

on/off problem w/ tp-link LB130 bulb #1

Open
keleher opened this issue Sep 30, 2017 · 0 comments · May be fixed by #7
Open

on/off problem w/ tp-link LB130 bulb #1

keleher opened this issue Sep 30, 2017 · 0 comments · May be fixed by #7

Comments

@keleher
Copy link

keleher commented Sep 30, 2017

First, neat code, I love it.

However, if the bulb is on, the fading and color changes work great.

If the bulb is off, the returned state is a bit different, hue etc are moved under 'dft_on_state'.

Whether on or off, light.on() (stuck into demo.py) fails with
"RuntimeError: Error connecting to bulb".

Clearly connecting works, as we get the status below (this is from the "off" state), but accessing the on-off status is not working.

{"system":{"get_sysinfo":{"sw_ver":"1.4.3 Build 170504 Rel.144921","hw_ver":"1.0","model":"LB130(US)","description":"Smart Wi-Fi LED Bulb with Color Changing","alias":"The Tulip","mic_type":"IOT.SMARTBULB","dev_state":"normal","mic_mac":"50C7BF24C860","deviceId":"801296681DBB068B73C4153BF4B86BDB1801D9ED","oemId":"05BF7B3BE1675C5A6867B7A7E4C9F6F7","hwId":"111E35908497A05512E259BB76801E10","is_factory":false,"disco_ver":"1.0","ctrl_protocols":{"name":"Linkie","version":"1.0"},"light_state":{"on_off":0,"dft_on_state":{"mode":"normal","hue":300,"saturation":90,"color_temp":3800,"brightness":0}},"is_dimmable":1,"is_color":1,"is_variable_color_temp":1,"preferred_state":[{"index":0,"hue":0,"saturation":0,"color_temp":2700,"brightness":50},{"index":1,"hue":0,"saturation":75,"color_temp":0,"brightness":100},{"index":2,"hue":120,"saturation":75,"color_temp":0,"brightness":100},{"index":3,"hue":240,"saturation":75,"color_temp":0,"brightness":100}],"rssi":-60,"active_mode":"none","heapsize":309692,"err_code":0}}}

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