mirror of
https://github.com/syssi/esphome-votronic.git
synced 2025-07-23 04:23:02 +02:00
Fix controller temperature (#58)
Some checks failed
CI / yamllint (push) Has been cancelled
CI / lint-clang-format (push) Has been cancelled
CI / lint-clang-tidy (push) Has been cancelled
CI / lint-python (push) Has been cancelled
CI / esphome-config (push) Has been cancelled
CI / esphome-compile (push) Has been cancelled
Some checks failed
CI / yamllint (push) Has been cancelled
CI / lint-clang-format (push) Has been cancelled
CI / lint-clang-tidy (push) Has been cancelled
CI / lint-python (push) Has been cancelled
CI / esphome-config (push) Has been cancelled
CI / esphome-compile (push) Has been cancelled
See #43
This commit is contained in:
committed by
GitHub
parent
1d705f4271
commit
1fbbb5a9da
@@ -238,7 +238,7 @@ void Votronic::decode_charger_data_(const uint8_t &frame_type, const std::vector
|
||||
// 10 1 0xA0 Charging Power % 0-100% 1%/Bit
|
||||
this->publish_state_(this->state_of_charge_sensor_, (float) data[10]);
|
||||
// 11 1 0x15 Controller temperature
|
||||
this->publish_state_(this->controller_temperature_sensor_, (float) data[11]);
|
||||
this->publish_state_(this->controller_temperature_sensor_, data[11] * 0.1f);
|
||||
// 12 1 0x03 Charging mode setting (dip switches)
|
||||
this->publish_state_(this->charging_mode_setting_id_sensor_, data[12]);
|
||||
this->publish_state_(this->charging_mode_setting_text_sensor_, this->charging_mode_setting_to_string_(data[12]));
|
||||
|
Reference in New Issue
Block a user