ESPHome  2024.5.1
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_date_update (datetime::DateEntity *obj)
 
virtual void on_time_update (datetime::TimeEntity *obj)
 
virtual void on_datetime_update (datetime::DateTimeEntity *obj)
 
virtual void on_text_update (text::Text *obj, const std::string &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_valve_update (valve::Valve *obj)
 
virtual void on_media_player_update (media_player::MediaPlayer *obj)
 
virtual void on_alarm_control_panel_update (alarm_control_panel::AlarmControlPanel *obj)
 
virtual void on_event (event::Event *obj, const std::string &event_type)
 

Detailed Description

Definition at line 67 of file controller.h.

Member Function Documentation

◆ on_alarm_control_panel_update()

virtual void esphome::Controller::on_alarm_control_panel_update ( alarm_control_panel::AlarmControlPanel obj)
inlinevirtual

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

Definition at line 122 of file controller.h.

◆ 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 71 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 92 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 86 of file controller.h.

◆ on_date_update()

virtual void esphome::Controller::on_date_update ( datetime::DateEntity obj)
inlinevirtual

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

Definition at line 98 of file controller.h.

◆ on_datetime_update()

virtual void esphome::Controller::on_datetime_update ( datetime::DateTimeEntity obj)
inlinevirtual

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

Definition at line 104 of file controller.h.

◆ on_event()

virtual void esphome::Controller::on_event ( event::Event obj,
const std::string &  event_type 
)
inlinevirtual

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

Definition at line 125 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 74 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 77 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 113 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 119 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 95 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 110 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 80 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 83 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 89 of file controller.h.

◆ on_text_update()

virtual void esphome::Controller::on_text_update ( text::Text obj,
const std::string &  state 
)
inlinevirtual

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

Definition at line 107 of file controller.h.

◆ on_time_update()

virtual void esphome::Controller::on_time_update ( datetime::TimeEntity obj)
inlinevirtual

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

Definition at line 101 of file controller.h.

◆ on_valve_update()

virtual void esphome::Controller::on_valve_update ( valve::Valve obj)
inlinevirtual

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

Definition at line 116 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: