Skip to content

Commit

Permalink
Update victron_text_sensor.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabian-Schmidt authored Oct 21, 2024
1 parent 53ad90b commit bc2153f
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion components/victron_ble/text_sensor/victron_text_sensor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,9 @@ void VictronTextSensor::setup() {
case VICTRON_BLE_RECORD_TYPE::INVERTER_RS:
this->publish_state_(msg->data.inverter_rs.charger_error);
break;
case VICTRON_BLE_RECORD_TYPE::AC_CHARGER:
this->publish_state_(msg->data.ac_charger.charger_error);
break;
case VICTRON_BLE_RECORD_TYPE::SMART_BATTERY_PROTECT:
this->publish_state_(msg->data.smart_battery_protect.error_code);
break;
Expand Down Expand Up @@ -103,6 +106,9 @@ void VictronTextSensor::setup() {
case VICTRON_BLE_RECORD_TYPE::INVERTER_RS:
this->publish_state_(msg->data.inverter_rs.device_state);
break;
case VICTRON_BLE_RECORD_TYPE::AC_CHARGER:
this->publish_state_(msg->data.ac_charger.device_state);
break;
case VICTRON_BLE_RECORD_TYPE::SMART_BATTERY_PROTECT:
this->publish_state_(msg->data.smart_battery_protect.device_state);
break;
Expand Down Expand Up @@ -602,4 +608,4 @@ void VictronTextSensor::publish_state_(VE_REG_BALANCER_STATUS val) {
}

} // namespace victron_ble
} // namespace esphome
} // namespace esphome

0 comments on commit bc2153f

Please sign in to comment.