Skip to content

Commit

Permalink
💡 improve for light
Browse files Browse the repository at this point in the history
  • Loading branch information
al-one committed Dec 28, 2024
1 parent 7b68c51 commit 4cd2a11
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions custom_components/xiaomi_miot/core/device_customizes.py
Original file line number Diff line number Diff line change
Expand Up @@ -1897,7 +1897,7 @@
'cloud_delay_update': 7,
},
'yeelink.light.*': {
'switch_properties': 'bg_on',
'switch_properties': 'bg_on,init_power_opt,fan_init_power_opt',
},
'yeelink.switch.sw1': {
'miot_mapping': {
Expand Down Expand Up @@ -2301,8 +2301,10 @@
'button_actions': 'start_cook,pause,cancel_cooking',
},
'*.light.*': {
'number_properties': 'off_delay_time',
'switch_properties': 'init_power_opt,fan_init_power_opt',
'interval_seconds': 60,
'number_properties': 'off_delay_time,light_on_gradient_time,light_off_gradient_time',
'switch_properties': 'flex_switch,night_light_switch',
'button_actions': 'toggle',
'chunk_coordinators': [
{'interval': 10, 'props': 'on,brightness,color_temperature,color,mode'},
],
Expand Down

0 comments on commit 4cd2a11

Please sign in to comment.