ESPHome  1.15.2
Public Member Functions
esphome::Controller Class Reference

#include <controller.h>

Inheritance diagram for esphome::Controller:
esphome::api::APIServer esphome::web_server::WebServer

Public Member Functions

void setup_controller ()
 
virtual void on_binary_sensor_update (binary_sensor::BinarySensor *obj, bool state)
 
virtual void on_fan_update (fan::FanState *obj)
 
virtual void on_light_update (light::LightState *obj)
 
virtual void on_sensor_update (sensor::Sensor *obj, float state)
 
virtual void on_switch_update (switch_::Switch *obj, bool state)
 
virtual void on_cover_update (cover::Cover *obj)
 
virtual void on_text_sensor_update (text_sensor::TextSensor *obj, std::string state)
 
virtual void on_climate_update (climate::Climate *obj)
 

Detailed Description

Definition at line 31 of file controller.h.

Member Function Documentation

◆ on_binary_sensor_update()

virtual void esphome::Controller::on_binary_sensor_update ( binary_sensor::BinarySensor obj,
bool  state 
)
inlinevirtual

Reimplemented in esphome::web_server::WebServer, and esphome::api::APIServer.

Definition at line 35 of file controller.h.

◆ on_climate_update()

virtual void esphome::Controller::on_climate_update ( climate::Climate obj)
inlinevirtual

Reimplemented in esphome::api::APIServer.

Definition at line 56 of file controller.h.

◆ on_cover_update()

virtual void esphome::Controller::on_cover_update ( cover::Cover obj)
inlinevirtual

Reimplemented in esphome::web_server::WebServer, and esphome::api::APIServer.

Definition at line 50 of file controller.h.

◆ on_fan_update()

virtual void esphome::Controller::on_fan_update ( fan::FanState obj)
inlinevirtual

Reimplemented in esphome::web_server::WebServer, and esphome::api::APIServer.

Definition at line 38 of file controller.h.

◆ on_light_update()

virtual void esphome::Controller::on_light_update ( light::LightState obj)
inlinevirtual

Reimplemented in esphome::web_server::WebServer, and esphome::api::APIServer.

Definition at line 41 of file controller.h.

◆ on_sensor_update()

virtual void esphome::Controller::on_sensor_update ( sensor::Sensor obj,
float  state 
)
inlinevirtual

Reimplemented in esphome::web_server::WebServer, and esphome::api::APIServer.

Definition at line 44 of file controller.h.

◆ on_switch_update()

virtual void esphome::Controller::on_switch_update ( switch_::Switch obj,
bool  state 
)
inlinevirtual

Reimplemented in esphome::web_server::WebServer, and esphome::api::APIServer.

Definition at line 47 of file controller.h.

◆ on_text_sensor_update()

virtual void esphome::Controller::on_text_sensor_update ( text_sensor::TextSensor obj,
std::string  state 
)
inlinevirtual

Reimplemented in esphome::web_server::WebServer, and esphome::api::APIServer.

Definition at line 53 of file controller.h.

◆ setup_controller()

void esphome::Controller::setup_controller ( )

Definition at line 7 of file controller.cpp.


The documentation for this class was generated from the following files: