Midea-heat-pump-ESPHome
Midea-heat-pump-ESPHome copied to clipboard
Status unknown
Hello,
At the moment I get "Heatpump status" "Unknown". I checked the code for the sensor and this is like this:
lambda: |-
if (id(${devicename}_load_output_run).state) {
// The heat pump is on
if (id(${devicename}_status_bit_1_defrosting).state) {
return {"Defrosting"};
} else if (id(${devicename}_load_output_sv1).state) {
return {"DHW"};
} else {
if (id(${devicename}_status_bit_1_heating_mode_set_by_room_thermostat).state) {
return {"Heating"};
} else if (id(${devicename}_status_bit_1_cooling_mode_set_by_room_thermostat).state) {
return {"Cooling"};
} else {
return {"Unknown"};
}
}
} else {
// The heat pump is off
return {"Inactive"};
}
But I use this swich for enabling the heatpump
switch.heatpump_power_floor_heating_zone_1
and disabled the room thermostat.
would it make sense to add an or
statement here? and maybe also for cooling?
I can check If I'm able to do somthing here, however I have a pending pull request and I don't know how to submint multiple pending pullrequests to the same project.
Next to that I noticed # Register: 0 -> Bit 3
is Power Air Conditioner Zone 2
but in my case the documentation says Power Floor Heating Zone 2
I don't know if this is device specific, I noticed another PR switching heat and air conditioning.