scottyphillips / echonetlite_homeassistant

A Home Assistant custom component for use with ECHONET enabled devices.
MIT License
131 stars 42 forks source link

Air Flow setting names and values (Quiet and Super Quiet) #75

Closed mishnz closed 2 years ago

mishnz commented 2 years ago

After our conversation about implementing quiet/silent mode I reached out to Mitsubishi who gave me the following response:

Mitsubishi Electric do not support element 0xB2, however they do support A0 – Air Flow setting which appears to be similar to your request. \ Please note different models support different variations of the settings of the below \ EPC=0xA0 – Air flow rate \ Automatic = 0x41 Super Quiet (Slo) = 0x31 Quiet = 0x32 Low = 0x33 Powerful = 0x34,0x35 Super Powerful (Shi) = 0x36,0x37,0x38

I'd be interested in your thoughts on how these map through to the current fan speeds in the GUI.

mishnz commented 2 years ago

I'll close this as I've just looked at the pychonet code and figured it out myself.

ENL_FANSPEED = 0xA0

def _0130A0(edt):
    op_mode = int.from_bytes(edt, "big")
    values = {
        0x41: "auto",
        0x31: "minimum",
        0x32: "low",
        0x33: "medium-low",
        0x34: "medium",
        0x35: "medium-high",
        0x36: "high",
        0x37: "very-high",
        0x38: "max",
    }

Thanks for writing clean code. 👍