ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
opentherm
automation.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/automation.h
"
4
#include "
hub.h
"
5
#include "
opentherm.h
"
6
7
namespace
esphome
{
8
namespace
opentherm {
9
10
class
BeforeSendTrigger
:
public
Trigger
<OpenthermData &> {
11
public
:
12
BeforeSendTrigger
(
OpenthermHub
*hub) {
13
hub->
add_on_before_send_callback
([
this
](
OpenthermData
&
x
) { this->
trigger
(x); });
14
}
15
};
16
17
class
BeforeProcessResponseTrigger
:
public
Trigger
<OpenthermData &> {
18
public
:
19
BeforeProcessResponseTrigger
(
OpenthermHub
*hub) {
20
hub->
add_on_before_process_response_callback
([
this
](
OpenthermData
&
x
) { this->
trigger
(x); });
21
}
22
};
23
24
}
// namespace opentherm
25
}
// namespace esphome
esphome::Trigger
Definition
automation.h:93
esphome::Trigger< OpenthermData & >::trigger
void trigger(Ts... x)
Definition
automation.h:96
esphome::opentherm::BeforeProcessResponseTrigger
Definition
automation.h:17
esphome::opentherm::BeforeProcessResponseTrigger::BeforeProcessResponseTrigger
BeforeProcessResponseTrigger(OpenthermHub *hub)
Definition
automation.h:19
esphome::opentherm::BeforeSendTrigger
Definition
automation.h:10
esphome::opentherm::BeforeSendTrigger::BeforeSendTrigger
BeforeSendTrigger(OpenthermHub *hub)
Definition
automation.h:12
esphome::opentherm::OpenthermHub
Definition
hub.h:45
esphome::opentherm::OpenthermHub::add_on_before_process_response_callback
void add_on_before_process_response_callback(std::function< void(OpenthermData &)> &&callback)
Definition
hub.h:166
esphome::opentherm::OpenthermHub::add_on_before_send_callback
void add_on_before_send_callback(std::function< void(OpenthermData &)> &&callback)
Definition
hub.h:163
automation.h
hub.h
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
opentherm.h
esphome::opentherm::OpenthermData
Structure to hold Opentherm data packet content.
Definition
opentherm.h:184
x
uint16_t x
Definition
tt21100.cpp:5
Generated by
1.12.0