ESPHome 2026.12.0-dev
Loading...
Searching...
No Matches
text_sensor.h
Go to the documentation of this file.
1#pragma once
2
4
5#include "../duco.h"
6
7namespace esphome::duco {
8
17
19 public:
22
23 void update() override;
24 void receive_response(const DucoMessage &message) override;
25
26 protected:
29#ifdef USE_DUCO_ERROR_TEXT_SENSOR
31#endif
33
35 uint8_t address_;
36};
37
38} // namespace esphome::duco
Every entity polls the box; deriving from PollingComponent shares its vtable.
Definition duco.h:90
void publish_errors_(const DucoMessage &message)
DucoTextSensor(DucoTextReading reading, uint8_t address)
address is the node address; a serial number at address 0 is the box itself.
Definition text_sensor.h:21
void publish_version_(const DucoMessage &message)
void receive_response(const DucoMessage &message) override
void publish_uptime_(const DucoMessage &message)
void publish_serial_number_(const DucoMessage &message)
const LogString * message
Definition component.cpp:35
DucoTextReading
What a text sensor reads.
Definition text_sensor.h:10
A received message; data points into the receive buffer and is valid only during the callback.
Definition duco.h:30