8 static const char *
const TAG =
"vbus.binary_sensor";
11 ESP_LOGCONFIG(TAG,
"Deltasol BS Plus:");
23 LOG_BINARY_SENSOR(
" ",
"Option Heat Quantity Measurement", this->
hqm_bsensor_);
54 ESP_LOGCONFIG(TAG,
"Deltasol BS 2009:");
59 LOG_BINARY_SENSOR(
" ",
"Frost Protection Active", this->frost_protection_active_bsensor_);
71 if (this->frost_protection_active_bsensor_ !=
nullptr)
72 this->frost_protection_active_bsensor_->publish_state(message[25] & 1);
76 ESP_LOGCONFIG(TAG,
"Deltasol C:");
95 ESP_LOGCONFIG(TAG,
"Deltasol CS2:");
114 ESP_LOGCONFIG(TAG,
"Deltasol CS Plus:");
133 ESP_LOGCONFIG(TAG,
"VBus Custom Binary Sensor:");
135 ESP_LOGCONFIG(TAG,
" Source address: ANY");
137 ESP_LOGCONFIG(TAG,
" Source address: 0x%04x", this->
source_);
139 if (this->
dest_ == 0xffff) {
140 ESP_LOGCONFIG(TAG,
" Dest address: ANY");
142 ESP_LOGCONFIG(TAG,
" Dest address: 0x%04x", this->
dest_);
145 ESP_LOGCONFIG(TAG,
" Command: ANY");
147 ESP_LOGCONFIG(TAG,
" Command: 0x%04x", this->
command_);
149 ESP_LOGCONFIG(TAG,
" Binary Sensors:");
151 LOG_BINARY_SENSOR(
" ",
"-", bsensor);
157 bsensor->parse_message(message);
161 this->publish_state(this->message_parser_(message));
binary_sensor::BinarySensor * s2_error_bsensor_
void dump_config() override
void dump_config() override
void parse_message(std::vector< uint8_t > &message)
binary_sensor::BinarySensor * s3_error_bsensor_
void dump_config() override
void dump_config() override
void handle_message(std::vector< uint8_t > &message) override
void handle_message(std::vector< uint8_t > &message) override
void handle_message(std::vector< uint8_t > &message) override
binary_sensor::BinarySensor * s4_error_bsensor_
void handle_message(std::vector< uint8_t > &message) override
void handle_message(std::vector< uint8_t > &message) override
void dump_config() override
void handle_message(std::vector< uint8_t > &message) override
void dump_config() override
void publish_state(bool state)
Publish a new state to the front-end.
binary_sensor::BinarySensor * tube_collector_bsensor_
binary_sensor::BinarySensor * relay2_bsensor_
binary_sensor::BinarySensor * s1_error_bsensor_
binary_sensor::BinarySensor * collector_frost_bsensor_
binary_sensor::BinarySensor * collector_min_bsensor_
binary_sensor::BinarySensor * recooling_bsensor_
Implementation of SPI Controller mode.
binary_sensor::BinarySensor * hqm_bsensor_
binary_sensor::BinarySensor * relay1_bsensor_
binary_sensor::BinarySensor * collector_max_bsensor_