esphome / feature-requests

ESPHome Feature Request Tracker
https://esphome.io/
420 stars 26 forks source link

Add ability to control lights on Midea AC #1305

Open cbishop76 opened 3 years ago

cbishop76 commented 3 years ago

Describe the problem you have/What new integration you would like

The ability to control the on/off state of the display on Midea AC units **Please describe your use case for this integration and alternatives you've tried:** The cloud control for Midea AC has the ability to turn off the display, but this is lost when control is swapped out for ESP **Additional context**

Mac Zhou has this implemented on his msmart control for Midea units.

@property def screen_display(self): return self.data[0x14] & 0x10 > 0

@screen_display.setter
def screen_display(self, screen_display_enabled: bool):
    # the LED lights on the AC. these display temperature and are often too bright during nights
    if screen_display_enabled:
        self.data[0x14] |= 0x10
    else:
        self.data[0x14] &= (~0x10)
DjBac commented 2 months ago

Is this option only as a toggle? Can we implement this as a button, in order to know if the display is on or off?