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

Some element about Xiaomi Philips Bulb #43

Closed
deennoo opened this issue Aug 27, 2017 · 5 comments
Closed

Some element about Xiaomi Philips Bulb #43

deennoo opened this issue Aug 27, 2017 · 5 comments

Comments

@deennoo
Copy link

deennoo commented Aug 27, 2017

Thx to add support for this.

I test all fonction present for ceiling.

Some of them doesn't work, because this option aren't present on the app and on the device it self :

  • acct_on/acct_off doesn't work
  • sml_on / sml_off doesn't work

status return an error :

nico@debianpcnico:~$ miceil --ip 192.168.0.208 --token 324b4147dc6c1a9867f6e19ec9070ca0 status
Power: on
Brightness: 10
CCT: 1
Scene Number: 4
dv: 0
Traceback (most recent call last):
  File "/usr/local/bin/miceil", line 11, in <module>
    sys.exit(cli())
  File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 722, in __call__
    return self.main(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 697, in main
    rv = self.invoke(ctx)
  File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 1066, in invoke
    return _process_result(sub_ctx.command.invoke(sub_ctx))
  File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 895, in invoke
    return ctx.invoke(self.callback, **ctx.params)
  File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/click/decorators.py", line 64, in new_func
    return ctx.invoke(f, obj, *args[1:], **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/click/core.py", line 535, in invoke
    return callback(*args, **kwargs)
  File "/usr/local/lib/python3.4/dist-packages/mirobo/ceil_cli.py", line 104, in status
    click.echo("Smart Midnight Light: %s" % res.bl)
  File "/usr/local/lib/python3.4/dist-packages/mirobo/ceil.py", line 40, in bl
    return self.data["bl"]
KeyError: 'bl'

Hopping this can help !to provied a "mibulb" section

@syssi
Copy link
Collaborator

syssi commented Aug 29, 2017

What's the name/type of your device?

@deennoo
Copy link
Author

deennoo commented Aug 29, 2017

that the xiaomi philips led ball :

https://www.gearbest.com/smart-lighting/pp_644095.html

discover doesn't return anything

@syssi
Copy link
Collaborator

syssi commented Aug 29, 2017

Okay. The "ceil" is the implementation of the Philips Ceiling Lamp. This device supports the features mentioned above. For the Philips Led Ball you are right. The command set should be reduced for this device. I will defuse the "bl" KeyError. I hit the same error implementing the home assistant component for the philips light.

@deennoo
Copy link
Author

deennoo commented Aug 29, 2017

ok, for my cultur, what mean bl ?

@syssi
Copy link
Collaborator

syssi commented Aug 29, 2017

bed light? ;-) I don't know. It's called Smart Midnight Light somewhere.

syssi added a commit to syssi/python-miio that referenced this issue Aug 29, 2017
rytilahti pushed a commit that referenced this issue Aug 30, 2017
…s light ball is used (#45)

* Some refactoring and fault tolerance if a philips light ball is used.

Fixes #43.

* Stick to the same naming.

* Code reformatted.

* Debug statement removed.

* Suggested improvements added.

* Some missing parts.
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

2 participants