ESPHome 2026.5.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 {
7namespace vbus {
8
10 public:
11 void dump_config() override;
23 void set_hqm_bsensor(binary_sensor::BinarySensor *bsensor) { this->hqm_bsensor_ = bsensor; }
24
25 protected:
38
39 void handle_message(std::vector<uint8_t> &message) override;
40};
41
62
79
96
113
130
147
148class VBusCustomSubBSensor;
149
151 public:
152 void dump_config() override;
153 void set_bsensors(std::vector<VBusCustomSubBSensor *> bsensors) { this->bsensors_ = std::move(bsensors); };
154
155 protected:
156 std::vector<VBusCustomSubBSensor *> bsensors_;
157 void handle_message(std::vector<uint8_t> &message) override;
158};
159
161 public:
162 void set_message_parser(message_parser_t parser) { this->message_parser_ = std::move(parser); };
163 void parse_message(std::vector<uint8_t> &message);
164
165 protected:
167};
168
169} // namespace vbus
170} // namespace esphome
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 char * message
Definition component.cpp:35
std::function< float(std::vector< uint8_t > &)> message_parser_t
Definition vbus.h:9
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7