ESPHome  2022.8.0
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 (bool include_internal=false)
 
virtual void on_binary_sensor_update (binary_sensor::BinarySensor *obj, bool state)
 
virtual void on_fan_update (fan::Fan *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, const std::string &state)
 
virtual void on_climate_update (climate::Climate *obj)
 
virtual void on_number_update (number::Number *obj, float state)
 
virtual void on_select_update (select::Select *obj, const std::string &state, size_t index)
 
virtual void on_lock_update (lock::Lock *obj)
 
virtual void on_media_player_update (media_player::MediaPlayer *obj)
 

Detailed Description

Definition at line 46 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 50 of file controller.h.

◆ on_climate_update()

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

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

Definition at line 71 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 65 of file controller.h.

◆ on_fan_update()

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

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

Definition at line 53 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 56 of file controller.h.

◆ on_lock_update()

virtual void esphome::Controller::on_lock_update ( lock::Lock obj)
inlinevirtual

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

Definition at line 80 of file controller.h.

◆ on_media_player_update()

virtual void esphome::Controller::on_media_player_update ( media_player::MediaPlayer obj)
inlinevirtual

Reimplemented in esphome::api::APIServer.

Definition at line 83 of file controller.h.

◆ on_number_update()

virtual void esphome::Controller::on_number_update ( number::Number obj,
float  state 
)
inlinevirtual

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

Definition at line 74 of file controller.h.

◆ on_select_update()

virtual void esphome::Controller::on_select_update ( select::Select obj,
const std::string &  state,
size_t  index 
)
inlinevirtual

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

Definition at line 77 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 59 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 62 of file controller.h.

◆ on_text_sensor_update()

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

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

Definition at line 68 of file controller.h.

◆ setup_controller()

void esphome::Controller::setup_controller ( bool  include_internal = false)

Definition at line 7 of file controller.cpp.


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