hencou / esphome_components

Collection of own ESPhome components
25 stars 15 forks source link

How do I turn off the transition? #6

Closed winczead closed 2 years ago

winczead commented 2 years ago

I want to set 25 pcs (currently only 9 pcs) Mi-Light FUT064 LED panels at the same time and unfortunately there is a huge difference (1-2 seconds) between the panels when it's modifying.

Video: https://youtu.be/GbGLZqP7tlQ

YAML file detail:

LOG: [15:45:28][D][light:035]: 'Living room' Setting: [15:45:28][D][light:054]: Color brightness: 100% [15:45:28][D][light:058]: Red: 0%, Green: 0%, Blue: 100% [15:45:28][D][light:084]: Transition length: 0.2s [15:45:28][D][mi.light:386]: Send Milight request: {"color_mode":"rgb","state":"ON","brightness":255,"color":{"r":253,"g":253,"b":255}} [15:45:28][D][mi.light:386]: Send Milight request: {"color_mode":"rgb","state":"ON","brightness":255,"color":{"r":182,"g":182,"b":255}} [15:45:28][D][mi.light:386]: Send Milight request: {"color_mode":"rgb","state":"ON","brightness":255,"color":{"r":54,"g":54,"b":255}} [15:45:28][D][mi.light:386]: Send Milight request: {"color_mode":"rgb","state":"ON","brightness":255,"color":{"r":0,"g":0,"b":255}} [15:45:28][D][mi.light:386]: Send Milight request: {"color_mode":"rgb","state":"ON","brightness":255,"color":{"r":0,"g":0,"b":255}}

hencou commented 2 years ago

Hi winczead,

You can use all the optional light parameters of ESPHome. So for transition you can add "default_transition_length". Example:

light:
- platform: mi
  id: light1
  name: ${friendly_name}
  device_id: 0xAB01
  group_id: 1
  remote_type: rgb_cct
  default_transition_length: 0s