ESPHome
2024.10.2
esphome
esphome
components
uponor_smatrix
sensor
uponor_smatrix_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/components/sensor/sensor.h
"
4
#include "
esphome/components/uponor_smatrix/uponor_smatrix.h
"
5
#include "
esphome/core/component.h
"
6
7
namespace
esphome
{
8
namespace
uponor_smatrix {
9
10
class
UponorSmatrixSensor
:
public
sensor::Sensor
,
public
Component
,
public
UponorSmatrixDevice
{
11
SUB_SENSOR(
temperature
)
12
SUB_SENSOR(external_temperature)
13
SUB_SENSOR(humidity)
14
15
public
:
16
void
dump_config
()
override
;
17
18
protected
:
19
void
on_device_data
(
const
UponorSmatrixData
*data,
size_t
data_len)
override
;
20
};
21
22
}
// namespace uponor_smatrix
23
}
// namespace esphome
esphome::Component
Definition:
component.h:68
esphome::Component::dump_config
virtual void dump_config()
Definition:
component.cpp:186
sensor.h
esphome::uponor_smatrix::UponorSmatrixSensor
Definition:
uponor_smatrix_sensor.h:10
temperature
uint16_t temperature
Definition:
sun_gtil2.cpp:26
uponor_smatrix.h
esphome::uponor_smatrix::UponorSmatrixDevice
Definition:
uponor_smatrix.h:105
esphome::uponor_smatrix::UponorSmatrixSensor::on_device_data
void on_device_data(const UponorSmatrixData *data, size_t data_len) override
Definition:
uponor_smatrix_sensor.cpp:17
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
esphome::sensor::Sensor
Base-class for all sensors.
Definition:
sensor.h:57
esphome::uponor_smatrix::UponorSmatrixData
Definition:
uponor_smatrix.h:59
Generated by
1.8.13