9 ESP_LOGCONFIG(TAG,
"SystaSolar Aqua:");
10 LOG_TEXT_SENSOR(
" ",
"Error code", this->error_code_text_sensor_);
13void SystaSolarAquaTextSensor::handle_message(std::span<const uint8_t>
message) {
15 if (this->error_code_text_sensor_ !=
nullptr) {
17 this->error_code_text_sensor_->publish_state(
"--");
20 int len = snprintf(buf,
sizeof(buf),
"%02d",
message[15]);
21 this->error_code_text_sensor_->publish_state(buf,
static_cast<size_t>(
len));
virtual void dump_config()
const LogString * message
uint16_t get_message_type(std::span< const uint8_t > message)
ESPHOME_LOG_TAG(TAG, "systa_bus.sensor")