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

Xiaomi Philips Zhirui Bedside Lamp #351

Closed
ardeus-ua opened this issue Jul 11, 2018 · 20 comments
Closed

Xiaomi Philips Zhirui Bedside Lamp #351

ardeus-ua opened this issue Jul 11, 2018 · 20 comments
Assignees

Comments

@ardeus-ua
Copy link

Just received the lamp today and want to connect it to Home Assistant.
_https://brightbestlight.com/xiaomi-philips-zhirui-lamp-review/
How can I help to add the support for this lamp?

@syssi
Copy link
Collaborator

syssi commented Jul 11, 2018

Please extract the token and provide the output of the "info" command (mirobo/miiocli).

@ardeus-ua
Copy link
Author

ardeus-ua commented Jul 12, 2018

philips.light.moonlight v1.5.6

Please let me know what else can I do to help

@syssi syssi self-assigned this Jul 14, 2018
@syssi
Copy link
Collaborator

syssi commented Jul 14, 2018

I'm looking for a mihome plugin which supports the device right now. Are you able to control the light with the MiHome app?

@ardeus-ua
Copy link
Author

Yes, MiHome automatically downloaded plugin for the lamp.

@syssi
Copy link
Collaborator

syssi commented Jul 14, 2018

Do you own a rooted phone and can you provide the plugin (apk file)?

@ardeus-ua
Copy link
Author

I have checked it with rooted android phone but didn’t found it in the folder where the plugins are usually stored (found 2 plugins for 2 other devices I use but not for the moonlight) will dig additionally.

@ardeus-ua
Copy link
Author

@ardeus-ua
Copy link
Author

Is there any way I can help in testing? I can forward ports and send you the details via personal message

@syssi
Copy link
Collaborator

syssi commented Jul 26, 2018

# Model name
philips.light.moonlight

# Supported properties
["pow", "sta", "bri", "rgb", "cct", "snm", "spr", "spt", "wke", "bl", "ms", "mb", "wkp"]

# Supported methods
add_mb                          # Add miband
enable_bl                       # Night light
enable_sub_voice                # Sub voice control?
enable_voice                    # Voice control
get_band_period                 # Bracelet work time
get_mb_rssi                     # Miband RSSI
miIO.bleGetNearbyBandList
get_wakeup_time
get_mb_mac                      # Miband MAC address
miIO.bleStartSearchBand
en_wakeup
set_band_period
set_bricct                      # Brightness & Color temperature
set_brirgb                      # Brightness & RGB
set_bright                      # Brightness
set_cct                         # Color temperature
set_rgb                         # RGB
set_mb_rssi
go_night                        # Night light / read mode
set_power
apply_fixed_scene
skip_breath
en_sleep
set_sleep_time
enable_mibs
set_wakeup_time

@syssi
Copy link
Collaborator

syssi commented Jul 26, 2018

@ardeus-ua Could you provide the output of

$ mirobo --ip your-device-ip --token your-device-token raw_command get_prop "['pow', 'sta', 'bri', 'rgb', 'cct', 'snm', 'spr', 'spt', 'wke', 'bl', 'ms', 'mb', 'wkp']"

@ardeus-ua
Copy link
Author

@syssi Here's what I got

Sending cmd get_prop with params ['pow', 'sta', 'bri', 'rgb', 'cct', 'snm', 'spr', 'spt', 'wke', 'bl', 'ms', 'mb', 'wkp'] ['off', 0, 1, 16741971, 1, 0, 0, 15, 0, 1, 1, 1, [0, 24, 0]]

@ksoul78
Copy link

ksoul78 commented Jul 29, 2018

Hi,
Is there anyway to send color cmd, if yes what is the color format : hex ? decimal?
Thanks,

@syssi
Copy link
Collaborator

syssi commented Jul 30, 2018

You could try the yeelight specs:

"rgb_value" is the target color, whose type is integer. It should be expressed in decimal integer ranges from 0 to 16777215 (hex: 0xFFFFFF).

# 0xFF0000 -> 16711680
$ mirobo --ip your-device-ip --token your-device-token raw_command set_rgb "[16711680]"

@ardeus-ua
Copy link
Author

@syssi Sebastian, as far as I understand, moonlight uses generic commands). What device is the closest by the set of commands?

@syssi
Copy link
Collaborator

syssi commented Jul 30, 2018

It's a mixture of a philips bulb, yeelight and the philips eyecare device. No implementation will work out of the box.

@ardeus-ua
Copy link
Author

tricked it to work partially by setting philips.light.zyceiling

syssi added a commit to syssi/python-miio that referenced this issue Aug 10, 2018
@syssi
Copy link
Collaborator

syssi commented Aug 21, 2018

Could you provide some screenshots of the MiHome app? I don't understand the meaning of various properties (spr, spt, mb, ms, wkp).

@syssi syssi closed this as completed in cc025a5 Aug 21, 2018
@slakin
Copy link

slakin commented Aug 21, 2018

Hi,
screenshot_2018-08-21-12-00-25-177_com xiaomi smarthome
screenshot_2018-08-21-11-59-27-594_com xiaomi smarthome
screenshot_2018-08-21-11-59-39-433_com xiaomi smarthome
screenshot_2018-08-21-12-00-04-066_com xiaomi smarthome
screenshot_2018-08-21-12-00-16-019_com xiaomi smarthome

@ardeus-ua
Copy link
Author

Awesome. Eager to use it as soon as possible

@cooltom
Copy link

cooltom commented Feb 2, 2019

Guys did u discover all the commands? For example sound and light withm? Even sending command set_rgb[16711731] do nothing :( can only turn it on/of with set_power["off"] (on/off) change briteness wtih set_bright[10] (1-100) and white temp with set_cct[50] (1-100). Also useless toggle and night mode with go_night. And last apply_fixed_scene[1] (1-5)
Thnx for advice ...

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

5 participants