ESPHome
2024.10.3
esphome
esphome
components
tuya
text_sensor
tuya_text_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/tuya/tuya.h
"
5
#include "
esphome/components/text_sensor/text_sensor.h
"
6
7
namespace
esphome
{
8
namespace
tuya {
9
10
class
TuyaTextSensor
:
public
text_sensor::TextSensor
,
public
Component
{
11
public
:
12
void
setup
()
override
;
13
void
dump_config
()
override
;
14
void
set_sensor_id
(uint8_t sensor_id) { this->
sensor_id_
= sensor_id; }
15
16
void
set_tuya_parent
(
Tuya
*parent) { this->
parent_
= parent; }
17
18
protected
:
19
Tuya
*
parent_
;
20
uint8_t
sensor_id_
{0};
21
};
22
23
}
// namespace tuya
24
}
// namespace esphome
esphome::tuya::TuyaTextSensor
Definition:
tuya_text_sensor.h:10
esphome::tuya::TuyaTextSensor::dump_config
void dump_config() override
Definition:
tuya_text_sensor.cpp:35
esphome::Component
Definition:
component.h:68
esphome::tuya::TuyaTextSensor::sensor_id_
uint8_t sensor_id_
Definition:
tuya_text_sensor.h:20
esphome::tuya::TuyaTextSensor::setup
void setup() override
Definition:
tuya_text_sensor.cpp:9
esphome::text_sensor::TextSensor
Definition:
text_sensor.h:34
esphome::tuya::Tuya
Definition:
tuya.h:88
esphome::tuya::TuyaTextSensor::set_sensor_id
void set_sensor_id(uint8_t sensor_id)
Definition:
tuya_text_sensor.h:14
esphome::tuya::TuyaTextSensor::parent_
Tuya * parent_
Definition:
tuya_text_sensor.h:19
tuya.h
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
text_sensor.h
esphome::tuya::TuyaTextSensor::set_tuya_parent
void set_tuya_parent(Tuya *parent)
Definition:
tuya_text_sensor.h:16
Generated by
1.8.13