ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
vbus_binary_sensor.h
Go to the documentation of this file.
1#pragma once
2
3#include "../vbus.h"
5
6namespace esphome::vbus {
7
9 public:
10 void dump_config() override;
22 void set_hqm_bsensor(binary_sensor::BinarySensor *bsensor) { this->hqm_bsensor_ = bsensor; }
23
24 protected:
37
38 void handle_message(std::vector<uint8_t> &message) override;
39};
40
61
78
95
112
129
146
147class VBusCustomSubBSensor;
148
150 public:
151 void dump_config() override;
152 void set_bsensors(std::vector<VBusCustomSubBSensor *> bsensors) { this->bsensors_ = std::move(bsensors); };
153
154 protected:
155 std::vector<VBusCustomSubBSensor *> bsensors_;
156 void handle_message(std::vector<uint8_t> &message) override;
157};
158
160 public:
161 void set_message_parser(message_parser_t parser) { this->message_parser_ = std::move(parser); };
162 void parse_message(std::vector<uint8_t> &message);
163
164 protected:
166};
167
168} // namespace esphome::vbus
Base class for all binary_sensor-type classes.
binary_sensor::BinarySensor * frost_protection_active_bsensor_
void handle_message(std::vector< uint8_t > &message) override
binary_sensor::BinarySensor * s4_error_bsensor_
binary_sensor::BinarySensor * s3_error_bsensor_
binary_sensor::BinarySensor * s1_error_bsensor_
void set_s3_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s1_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s2_error_bsensor_
void set_s2_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s4_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_frost_protection_active_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s4_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s4_error_bsensor_
void set_s3_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s3_error_bsensor_
void handle_message(std::vector< uint8_t > &message) override
binary_sensor::BinarySensor * s2_error_bsensor_
void set_s2_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s1_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s1_error_bsensor_
void set_collector_min_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * collector_max_bsensor_
binary_sensor::BinarySensor * hqm_bsensor_
void set_relay2_bsensor(binary_sensor::BinarySensor *bsensor)
void set_relay1_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s1_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s3_error_bsensor_
void set_tube_collector_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * relay1_bsensor_
binary_sensor::BinarySensor * s1_error_bsensor_
binary_sensor::BinarySensor * collector_frost_bsensor_
void set_s4_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s4_error_bsensor_
binary_sensor::BinarySensor * s2_error_bsensor_
binary_sensor::BinarySensor * tube_collector_bsensor_
binary_sensor::BinarySensor * relay2_bsensor_
void set_s3_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * collector_min_bsensor_
void set_s2_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_collector_max_bsensor(binary_sensor::BinarySensor *bsensor)
void set_hqm_bsensor(binary_sensor::BinarySensor *bsensor)
void set_collector_frost_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * recooling_bsensor_
void set_recooling_bsensor(binary_sensor::BinarySensor *bsensor)
void handle_message(std::vector< uint8_t > &message) override
void set_s3_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s2_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s1_error_bsensor_
binary_sensor::BinarySensor * s3_error_bsensor_
binary_sensor::BinarySensor * s4_error_bsensor_
void set_s1_error_bsensor(binary_sensor::BinarySensor *bsensor)
void handle_message(std::vector< uint8_t > &message) override
void set_s4_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s2_error_bsensor_
void set_s3_error_bsensor(binary_sensor::BinarySensor *bsensor)
void handle_message(std::vector< uint8_t > &message) override
binary_sensor::BinarySensor * s2_error_bsensor_
binary_sensor::BinarySensor * s1_error_bsensor_
void set_s4_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s1_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s2_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s4_error_bsensor_
binary_sensor::BinarySensor * s3_error_bsensor_
void set_s1_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s4_error_bsensor_
void set_s4_error_bsensor(binary_sensor::BinarySensor *bsensor)
void handle_message(std::vector< uint8_t > &message) override
void set_s3_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s3_error_bsensor_
binary_sensor::BinarySensor * s2_error_bsensor_
binary_sensor::BinarySensor * s1_error_bsensor_
void set_s2_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s1_error_bsensor_
void set_s4_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s2_error_bsensor_
void set_s1_error_bsensor(binary_sensor::BinarySensor *bsensor)
void handle_message(std::vector< uint8_t > &message) override
binary_sensor::BinarySensor * s3_error_bsensor_
void set_s2_error_bsensor(binary_sensor::BinarySensor *bsensor)
void set_s3_error_bsensor(binary_sensor::BinarySensor *bsensor)
binary_sensor::BinarySensor * s4_error_bsensor_
std::vector< VBusCustomSubBSensor * > bsensors_
void handle_message(std::vector< uint8_t > &message) override
void set_bsensors(std::vector< VBusCustomSubBSensor * > bsensors)
void parse_message(std::vector< uint8_t > &message)
void set_message_parser(message_parser_t parser)
const LogString * message
Definition component.cpp:35
std::function< float(std::vector< uint8_t > &)> message_parser_t
Definition vbus.h:8