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

Add philips.light.bceiling2 support #26

Open
forhuan opened this issue Oct 26, 2019 · 6 comments
Open

Add philips.light.bceiling2 support #26

forhuan opened this issue Oct 26, 2019 · 6 comments

Comments

@forhuan
Copy link

forhuan commented Oct 26, 2019

https://item.mi.com/product/10150.html?cfrom=search&selected=1192600006&pClass=c

@syssi
Copy link
Owner

syssi commented Dec 5, 2019

# Properties
["power", "bright", "cct", "snm", "dv", "sw", "bl", "ms", "ac"];

# Methods

add_mb [item]
apply_fixed_scene [scene_num]
delay_off [0]
delay_off [int] # seconds
del_rc []
enable_ac [isOnStr])
enable_bl [isOnStr])
enable_mb [on ? 1 : 0])
enable_mibs [on ? 1 : 0])
get_band_period []
get_mb_mac []
get_mb_rssi []
get_props [props]
get_rc_mac []
get_switch_en []
set_band_period [int]
set_bricct [bri, cct]
set_bright [bri]
set_cct cct]
set_mb_rssi [value]
set_power [power]
set_scene_switch []
set_switch_en [on ? 1 : 0])
start_rc_pair []
stop_rc_pair []

@forhuan
Copy link
Author

forhuan commented Dec 11, 2019

@syssi Outputs of these commands:

miiocli device --ip IP --token XXXXXXXXXXXXX info
Model: philips.light.bceiling2
Hardware version: esp32
Firmware version: 2.0.7
Network: {'localIp': '192.168.x.x', 'mask': '255.255.255.0', 'gw': '192.168.x.x'}
AP: {'ssid': 'xxxx', 'bssid': '40:31:3C:0E:xx:xx', 'rssi': -24, 'primary': 7}
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command get_prop "['power', 'bright', 'cct', 'snm', 'dv', 'sw', 'bl', 'ms', 'ac']"
['on', 100, 50, 1, 0, [[0, 1], [0, 3], [1, 1]], 1, 0]
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command get_switch_en 
[1]
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command get_rc_mac
 ['']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command set_power "['off']"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command set_power "['on']"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command set_cct "[1]"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command set_cct "[35]"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command set_cct "[36]"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command set_cct "[100]"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command get_prop "['power', 'bright', 'cct', 'snm', 'dv', 'sw', 'bl', 'ms', 'ac']"
['on', 100, 100, 0, 0, [[0, 1], [0, 3], [1, 1]], 1, 0]
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command set_power "['off']"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command enable_ac "[1]"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command enable_ac "[0]"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command enable_bl "[1]"
['ok']
miiocli device --ip IP --token XXXXXXXXXXXXX raw_command enable_bl "[0]"
['ok']

@forhuan
Copy link
Author

forhuan commented Dec 11, 2019

Treating bceiling2 as ceiling works ok

@syssi syssi changed the title philips.light.bceiling2 Add philips.light.bceiling2 support Oct 30, 2020
@ClearSeve
Copy link

Has this been supported?

@syssi
Copy link
Owner

syssi commented Jul 21, 2021

Not yet.

@forhuan
Copy link
Author

forhuan commented Jul 21, 2021

Try this config may works

light:
  - platform: xiaomi_miio
    name: Room Light
    host: 192.168.x.x
    token: xxxxxxxxxxxxxxxxxxxxxxxxxxx
    model: philips.light.ceiling

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

No branches or pull requests

3 participants