ESPHome
2024.12.2
esphome
esphome
components
micronova
text_sensor
micronova_text_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/micronova/micronova.h
"
4
#include "
esphome/components/text_sensor/text_sensor.h
"
5
6
namespace
esphome
{
7
namespace
micronova {
8
9
class
MicroNovaTextSensor
:
public
text_sensor::TextSensor
,
public
MicroNovaSensorListener
{
10
public
:
11
MicroNovaTextSensor
(
MicroNova
*
m
) :
MicroNovaSensorListener
(m) {}
12
void
dump_config
()
override
{ LOG_TEXT_SENSOR(
""
,
"Micronova text sensor"
,
this
); }
13
void
request_value_from_stove
()
override
{
14
this->
micronova_
->
request_address
(this->
memory_location_
, this->
memory_address_
,
this
);
15
}
16
void
process_value_from_stove
(
int
value_from_stove)
override
;
17
};
18
19
}
// namespace micronova
20
}
// namespace esphome
esphome::micronova::MicroNovaSensorListener
Definition:
micronova.h:73
esphome::micronova::MicroNovaTextSensor::request_value_from_stove
void request_value_from_stove() override
Definition:
micronova_text_sensor.h:13
esphome::micronova::MicroNovaBaseListener::memory_location_
uint8_t memory_location_
Definition:
micronova.h:69
esphome::micronova::MicroNova
Definition:
micronova.h:121
micronova.h
esphome::micronova::MicroNovaTextSensor::process_value_from_stove
void process_value_from_stove(int value_from_stove) override
Definition:
micronova_text_sensor.cpp:6
esphome::text_sensor::TextSensor
Definition:
text_sensor.h:34
esphome::micronova::MicroNovaTextSensor
Definition:
micronova_text_sensor.h:9
esphome::micronova::MicroNova::request_address
void request_address(uint8_t location, uint8_t address, MicroNovaSensorListener *listener)
Definition:
micronova.cpp:65
esphome::micronova::MicroNovaTextSensor::MicroNovaTextSensor
MicroNovaTextSensor(MicroNova *m)
Definition:
micronova_text_sensor.h:11
esphome::micronova::MicroNovaTextSensor::dump_config
void dump_config() override
Definition:
micronova_text_sensor.h:12
esphome::micronova::MicroNovaBaseListener::micronova_
MicroNova * micronova_
Definition:
micronova.h:67
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
m
uint8_t m
Definition:
bl0906.h:208
text_sensor.h
esphome::micronova::MicroNovaBaseListener::memory_address_
uint8_t memory_address_
Definition:
micronova.h:70
Generated by
1.8.13