syssi / philipslight

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

Add yeelink.light.lamp4 support #39

Open Sergey-SRG opened 3 years ago

syssi commented 3 years ago

If you are able to enable the 3rd party app api via the yeelight app you could use the yeelight integration.

Sergey-SRG commented 3 years ago

@syssi Should we expect support for the miio protocol?

syssi commented 3 years ago

Yeelight devices can be controlled via miio. I don't know the exact details. I assume it's the same protocol but no token is required as soon the 3rd party app api is enabled.

syssi commented 3 years ago
Methods & properties:

bg_set_bright [bright, "smooth", 500]
bg_set_ct_abx [ct, "smooth", 500]
bg_set_power [isOn, "smooth, 500]
bg_set_power ["on", "smooth", 500, realMode]
bg_set_rgb [color, "smooth", 500]
bg_set_scene [mode, value, bright]
cron_add [0, delay]
cron_del [0]
cron_get [0]
get_prop ["bg_proact"]
get_prop ["ble_cfg"]
get_prop ["default_pomodoro"]
get_prop ["delayoff_info"]
get_prop ["fast_scenes"]
get_prop ["kid_lock"]
get_prop ["kid_mode"]
get_prop ["miband_sleep"]
get_prop ["nighttime"]
get_prop ["pdo_wt", "pdo_bt", "pdo_status"]
get_propproperties
get_prop ["save_state"]
get_prop ["sensor_pir"]
get_prop ["sensor_pir_enable"]
get_prop ["skey_act", "skey_delay_tm", "skey_scene_id"]
get_prop ["smart_switch"]
get_prop ["sub_model"]
get_ps ["cfg_pomodoro", "00"]
get_time ["pomodoro"]
set_adjust ["circle", "ct"]
set_adjust ["decrease", "bright"]
set_adjust ["increase", "bright"]
set_bright [bright, "smooth", 500]
set_ct_abx [ct, "smooth", 500]
set_default []
set_power [isOn, "smooth", smoothDuration]
set_power ["on", "smooth", 500, realMode]
set_ps ["cfg_bg_proact", s]
set_ps ["cfg_ble_ctrl", param]
set_ps ["cfg_fast_scenes", state]
set_ps ["cfg_init_power", state]
set_ps ["cfg_kid_lock", s]
set_ps ["cfg_kidmode", param]
set_ps ["cfg_pomodoro", "00"]
set_ps ["cfg_pomodoro", string]
set_ps ["cfg_save_state", s]
set_ps ["cfg_shortkey", string]
set_ps ["cfg_smart_switch", enableStr]
set_ps ["kid_mode", param]
set_ps ["miband_sleep", enabled ? "1" : "0"]
set_ps ["nightlight", state]
set_ps ["nighttime", enableStr]
set_ps ["nighttime", nightlightString]
set_ps ["sensor_pir_enable", param]
set_ps ["sensor_pir", param]
set_rgb [color, "smooth", 500]
set_scene ["bright", value, 500]
set_scene_bundle params, callback);
set_scene [mode, value, bright]
set_scene ["nightlight", bright]]
set_time ["pomodoro", "default", parameters]
set_time ["pomodoro", "start", parameters]
set_time ["pomodoro", "stop"]
start_cf [0, 0, string]
mouth4war commented 2 years ago

Yeelight removed lan support from this light.