ESPHome 2026.6.0-dev
Loading...
Searching...
No Matches
opentherm_output.h
Go to the documentation of this file.
1#pragma once
2
5#include "esphome/core/log.h"
6
7namespace esphome::opentherm {
8
10 protected:
11 bool has_state_ = false;
12 const char *id_ = nullptr;
13
15
16 public:
17 float state;
18
19 void set_id(const char *id) { this->id_ = id; }
20
21 void write_state(float state) override;
22
23 bool has_state() { return this->has_state_; };
24
25 void set_min_value(float min_value) override { this->min_value_ = min_value; }
26 void set_max_value(float max_value) override { this->max_value_ = max_value; }
27 float get_min_value() { return this->min_value_; }
28 float get_max_value() { return this->max_value_; }
29};
30
31} // namespace esphome::opentherm
void set_max_value(float max_value) override
void set_min_value(float min_value) override
void write_state(float state) override
Base class for all output components that can output a variable level, like PWM.
uint16_t id