syssi / philipslight

Xiaomi Philips Lights integration for Home Assistant
Apache License 2.0
70 stars 19 forks source link

Add philips.light.hbulb support #30

Open maximalexanian opened 4 years ago

maximalexanian commented 4 years ago

Works fine with model: philips.light.bulb https://ru.aliexpress.com/item/32973869560.html Temperature control is not working and not expected to work - bulb is fixed 2700K

syssi commented 4 years ago

Cool! The temperature slider should be removed for this model?

maximalexanian commented 4 years ago

yep

syssi commented 4 years ago

Official supported methods:

set_power ["on"]
set_power ["off"]
set_bright [int]
delay_off [int] # seconds
delay_off [0] # reset

And properties:

["power", "bri", "dv"]
syssi commented 4 years ago

Could you provide the output of:

pip3 install python-miio
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'bri', 'dv']"
# and
miiocli device --ip IP --token TOKEN raw_command get_prop "['power', 'bright', 'cct', 'snm', 'dv']"

Thanks!

syssi commented 4 years ago

https://github.com/rytilahti/python-miio/pull/587

myshyak commented 4 years ago

['off', 100, 0 ] ['off', 100, 0, 0 ] Please advice how can I use your script in my hassio - for not it doe not support hbulb