ESPHome
2025.5.0
Loading...
Searching...
No Matches
esphome
components
teleinfo
text_sensor
teleinfo_text_sensor.cpp
Go to the documentation of this file.
1
#include "
esphome/core/log.h
"
2
#include "
teleinfo_text_sensor.h
"
3
namespace
esphome
{
4
namespace
teleinfo {
5
6
static
const
char
*
const
TAG
=
"teleinfo_text_sensor"
;
7
TeleInfoTextSensor::TeleInfoTextSensor
(
const
char
*tag) { this->tag = std::string(
tag
); }
8
void
TeleInfoTextSensor::publish_val
(
const
std::string &
val
) {
publish_state
(
val
); }
9
void
TeleInfoTextSensor::dump_config
() { LOG_TEXT_SENSOR(
" "
,
"Teleinfo Text Sensor"
,
this
); }
10
}
// namespace teleinfo
11
}
// namespace esphome
esphome::teleinfo::TeleInfoListener::tag
std::string tag
Definition
teleinfo.h:21
esphome::teleinfo::TeleInfoTextSensor::publish_val
void publish_val(const std::string &val) override
Definition
teleinfo_text_sensor.cpp:8
esphome::teleinfo::TeleInfoTextSensor::dump_config
void dump_config() override
Definition
teleinfo_text_sensor.cpp:9
esphome::teleinfo::TeleInfoTextSensor::TeleInfoTextSensor
TeleInfoTextSensor(const char *tag)
Definition
teleinfo_text_sensor.cpp:7
esphome::text_sensor::TextSensor::publish_state
void publish_state(const std::string &state)
Definition
text_sensor.cpp:9
log.h
val
mopeka_std_values val[4]
Definition
mopeka_std_check.h:8
esphome::spi::TAG
const char *const TAG
Definition
spi.cpp:8
esphome
Providing packet encoding functions for exchanging data with a remote host.
Definition
a01nyub.cpp:7
teleinfo_text_sensor.h
Generated by
1.12.0