Skip to content

Commit

Permalink
Remove fan raw value
Browse files Browse the repository at this point in the history
The non-raw value works well.
  • Loading branch information
hberntsen committed Dec 23, 2024
1 parent 3d09d9e commit 723da53
Show file tree
Hide file tree
Showing 5 changed files with 0 additions and 13 deletions.
4 changes: 0 additions & 4 deletions esphome/components/MhiAcCtrl/MHI-AC-Ctrl-core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -191,10 +191,6 @@ ACFan mhi_ac_ctrl_core_fan_get() {
}
}

uint8_t mhi_ac_ctrl_core_fan_get_raw() {
return mosi_frame_snapshot[DB1] & FAN_MASK;
}

bool mhi_ac_ctrl_core_current_temperature_changed() {
return mosi_frame_snapshot[DB3] != mosi_frame_snapshot_prev[DB3];
}
Expand Down
1 change: 0 additions & 1 deletion esphome/components/MhiAcCtrl/MHI-AC-Ctrl-core.h
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,6 @@ ACMode mhi_ac_ctrl_core_mode_get();
bool mhi_ac_ctrl_core_fan_changed();
void mhi_ac_ctrl_core_fan_set(ACFan fan);
ACFan mhi_ac_ctrl_core_fan_get();
uint8_t mhi_ac_ctrl_core_fan_get_raw();

bool mhi_ac_ctrl_core_current_temperature_changed();
float mhi_ac_ctrl_core_current_temperature_get();
Expand Down
3 changes: 0 additions & 3 deletions esphome/components/MhiAcCtrl/mhi_ac_ctrl.h
Original file line number Diff line number Diff line change
Expand Up @@ -292,8 +292,6 @@ class MhiAcCtrl : public climate::Climate,
default:
break;
}
if(fan_raw_sensor_)
fan_raw_sensor_->publish_state(mhi_ac_ctrl_core_fan_get_raw());
}

if(climate_current_temperature_sensor_) {
Expand Down Expand Up @@ -427,7 +425,6 @@ class MhiAcCtrl : public climate::Climate,
const float temperature_step_ { 1.0f };
const std::string custom_fan_ultra_low = std::string("Ultra Low");

SUB_SENSOR(fan_raw)
SUB_SENSOR(climate_current_temperature)

protected:
Expand Down
3 changes: 0 additions & 3 deletions esphome/components/MhiAcCtrl/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,10 @@
from . import MhiAcCtrl, CONF_MHI_AC_CTRL_ID

CONF_FRAME_ERRORS = "frame_errors"
CONF_FAN_RAW = "fan_raw"
CONF_TOTAL_ENERGY = "total_energy"
CONF_CLIMATE_CURRENT_TEMPERATURE = "climate_current_temperature"

TYPES = [
CONF_FAN_RAW,
CONF_TOTAL_ENERGY,
CONF_POWER,
CONF_FRAME_ERRORS,
Expand All @@ -37,7 +35,6 @@
{
cv.GenerateID(): cv.declare_id(MhiAcCtrl),
cv.GenerateID(CONF_MHI_AC_CTRL_ID): cv.use_id(MhiAcCtrl),
cv.Optional(CONF_FAN_RAW): sensor.sensor_schema(icon=ICON_FAN),
cv.Optional(CONF_TOTAL_ENERGY): sensor.sensor_schema(
class_=MhiTotalEnergy,
unit_of_measurement=UNIT_WATT_HOURS,
Expand Down
2 changes: 0 additions & 2 deletions esphome/example.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ select:
sensor:
- platform: MhiAcCtrl
mhi_ac_ctrl_id: ${mhi_device_id}
fan_raw:
name: ${device_name} fan raw
total_energy:
name: ${device_name} Energy
filters:
Expand Down

0 comments on commit 723da53

Please sign in to comment.