ESPHome
2024.12.2
esphome
esphome
components
pid
sensor
pid_climate_sensor.h
Go to the documentation of this file.
1
#pragma once
2
3
#include "
esphome/core/component.h
"
4
#include "
esphome/components/pid/pid_climate.h
"
5
6
namespace
esphome
{
7
namespace
pid
{
8
9
enum
PIDClimateSensorType
{
10
PID_SENSOR_TYPE_RESULT
,
11
PID_SENSOR_TYPE_ERROR
,
12
PID_SENSOR_TYPE_PROPORTIONAL
,
13
PID_SENSOR_TYPE_INTEGRAL
,
14
PID_SENSOR_TYPE_DERIVATIVE
,
15
PID_SENSOR_TYPE_HEAT
,
16
PID_SENSOR_TYPE_COOL
,
17
PID_SENSOR_TYPE_KP
,
18
PID_SENSOR_TYPE_KI
,
19
PID_SENSOR_TYPE_KD
,
20
};
21
22
class
PIDClimateSensor
:
public
sensor::Sensor
,
public
Component
{
23
public
:
24
void
setup
()
override
;
25
void
set_parent
(
PIDClimate
*parent) {
parent_
= parent; }
26
void
set_type
(
PIDClimateSensorType
type
) {
type_
=
type
; }
27
28
void
dump_config
()
override
;
29
30
protected
:
31
void
update_from_parent_
();
32
PIDClimate
*
parent_
;
33
PIDClimateSensorType
type_
;
34
};
35
36
}
// namespace pid
37
}
// namespace esphome
esphome::pid::PIDClimateSensor::parent_
PIDClimate * parent_
Definition:
pid_climate_sensor.h:32
esphome::pid::PIDClimateSensor::set_type
void set_type(PIDClimateSensorType type)
Definition:
pid_climate_sensor.h:26
esphome::pid::PID_SENSOR_TYPE_DERIVATIVE
Definition:
pid_climate_sensor.h:14
esphome::pid::PID_SENSOR_TYPE_INTEGRAL
Definition:
pid_climate_sensor.h:13
esphome::pid::PIDClimateSensor
Definition:
pid_climate_sensor.h:22
esphome::Component
Definition:
component.h:68
esphome::pid::PIDClimateSensor::set_parent
void set_parent(PIDClimate *parent)
Definition:
pid_climate_sensor.h:25
esphome::pid::PID_SENSOR_TYPE_KP
Definition:
pid_climate_sensor.h:17
esphome::pid::PIDClimateSensor::setup
void setup() override
Definition:
pid_climate_sensor.cpp:10
esphome::pid::PID_SENSOR_TYPE_PROPORTIONAL
Definition:
pid_climate_sensor.h:12
esphome::shelly_dimmer::pid
uint16_t pid
Definition:
stm32flash.h:95
esphome::pid::PID_SENSOR_TYPE_KD
Definition:
pid_climate_sensor.h:19
esphome::pid::PIDClimateSensor::type_
PIDClimateSensorType type_
Definition:
pid_climate_sensor.h:33
type
uint8_t type
Definition:
e131_packet.cpp:135
esphome::pid::PID_SENSOR_TYPE_RESULT
Definition:
pid_climate_sensor.h:10
esphome::pid::PIDClimate
Definition:
pid_climate.h:15
esphome::pid::PID_SENSOR_TYPE_KI
Definition:
pid_climate_sensor.h:18
esphome::pid::PIDClimateSensor::dump_config
void dump_config() override
Definition:
pid_climate_sensor.cpp:56
esphome
Implementation of SPI Controller mode.
Definition:
a01nyub.cpp:7
component.h
pid_climate.h
esphome::pid::PIDClimateSensorType
PIDClimateSensorType
Definition:
pid_climate_sensor.h:9
esphome::sensor::Sensor
Base-class for all sensors.
Definition:
sensor.h:57
esphome::pid::PID_SENSOR_TYPE_COOL
Definition:
pid_climate_sensor.h:16
esphome::pid::PIDClimateSensor::update_from_parent_
void update_from_parent_()
Definition:
pid_climate_sensor.cpp:14
esphome::pid::PID_SENSOR_TYPE_HEAT
Definition:
pid_climate_sensor.h:15
esphome::pid::PID_SENSOR_TYPE_ERROR
Definition:
pid_climate_sensor.h:11
Generated by
1.8.13