ESPHome
2026.11.0-dev
Loading...
Searching...
No Matches
esphome
components
hoermann_hcp
text_sensor
hoermann_hcp_text_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/text_sensor/text_sensor.h
"
4
#include "
esphome/core/component.h
"
5
#include "
../hoermann_hcp.h
"
6
7
namespace
esphome::hoermann_hcp
{
8
9
class
HoermannHcpDoorStateTextSensor
:
public
text_sensor::TextSensor
,
public
Component
{
10
public
:
11
explicit
HoermannHcpDoorStateTextSensor
(
HoermannHcp
*parent) :
parent_
(parent) {}
12
13
void
setup
()
override
;
14
void
dump_config
()
override
;
15
16
protected
:
17
void
update_from_state_
();
18
19
HoermannHcp
*
const
parent_
;
20
DoorState
published_state_
{
DoorState::CLOSED
};
21
bool
published_
{
false
};
22
};
23
24
}
// namespace esphome::hoermann_hcp
esphome::Component
Definition
component.h:147
esphome::hoermann_hcp::HoermannHcpDoorStateTextSensor
Definition
hoermann_hcp_text_sensor.h:9
esphome::hoermann_hcp::HoermannHcpDoorStateTextSensor::HoermannHcpDoorStateTextSensor
HoermannHcpDoorStateTextSensor(HoermannHcp *parent)
Definition
hoermann_hcp_text_sensor.h:11
esphome::hoermann_hcp::HoermannHcpDoorStateTextSensor::update_from_state_
void update_from_state_()
Definition
hoermann_hcp_text_sensor.cpp:26
esphome::hoermann_hcp::HoermannHcpDoorStateTextSensor::parent_
HoermannHcp *const parent_
Definition
hoermann_hcp_text_sensor.h:19
esphome::hoermann_hcp::HoermannHcpDoorStateTextSensor::published_
bool published_
Definition
hoermann_hcp_text_sensor.h:21
esphome::hoermann_hcp::HoermannHcpDoorStateTextSensor::published_state_
DoorState published_state_
Definition
hoermann_hcp_text_sensor.h:20
esphome::hoermann_hcp::HoermannHcpDoorStateTextSensor::dump_config
void dump_config() override
Definition
hoermann_hcp_text_sensor.cpp:24
esphome::hoermann_hcp::HoermannHcpDoorStateTextSensor::setup
void setup() override
Definition
hoermann_hcp_text_sensor.cpp:18
esphome::hoermann_hcp::HoermannHcp
Definition
hoermann_hcp.h:57
esphome::text_sensor::TextSensor
Definition
text_sensor.h:28
component.h
hoermann_hcp.h
esphome::hoermann_hcp
Definition
hoermann_hcp_binary_sensor.cpp:5
esphome::hoermann_hcp::DoorState
DoorState
Definition
hoermann_hcp.h:16
esphome::hoermann_hcp::DoorState::CLOSED
@ CLOSED
text_sensor.h
Generated by
1.12.0