ESPHome 2026.2.4
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
131class VBusCustomSubBSensor;
132
134 public:
135 void dump_config() override;
136 void set_bsensors(std::vector<VBusCustomSubBSensor *> bsensors) { this->bsensors_ = std::move(bsensors); };
137
138 protected:
139 std::vector<VBusCustomSubBSensor *> bsensors_;
140 void handle_message(std::vector<uint8_t> &message) override;
141};
142
144 public:
145 void set_message_parser(message_parser_t parser) { this->message_parser_ = std::move(parser); };
146 void parse_message(std::vector<uint8_t> &message);
147
148 protected:
150};
151
152} // namespace vbus
153} // 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_
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:38
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