|
| APIConnection (std::unique_ptr< socket::Socket > socket, APIServer *parent) |
|
virtual | ~APIConnection () |
|
void | start () |
|
void | loop () |
|
bool | send_list_info_done () |
|
bool | send_binary_sensor_state (binary_sensor::BinarySensor *binary_sensor, bool state) |
|
bool | send_binary_sensor_info (binary_sensor::BinarySensor *binary_sensor) |
|
bool | send_cover_state (cover::Cover *cover) |
|
bool | send_cover_info (cover::Cover *cover) |
|
void | cover_command (const CoverCommandRequest &msg) override |
|
bool | send_fan_state (fan::Fan *fan) |
|
bool | send_fan_info (fan::Fan *fan) |
|
void | fan_command (const FanCommandRequest &msg) override |
|
bool | send_light_state (light::LightState *light) |
|
bool | send_light_info (light::LightState *light) |
|
void | light_command (const LightCommandRequest &msg) override |
|
bool | send_sensor_state (sensor::Sensor *sensor, float state) |
|
bool | send_sensor_info (sensor::Sensor *sensor) |
|
bool | send_switch_state (switch_::Switch *a_switch, bool state) |
|
bool | send_switch_info (switch_::Switch *a_switch) |
|
void | switch_command (const SwitchCommandRequest &msg) override |
|
bool | send_text_sensor_state (text_sensor::TextSensor *text_sensor, std::string state) |
|
bool | send_text_sensor_info (text_sensor::TextSensor *text_sensor) |
|
void | send_camera_state (std::shared_ptr< esp32_camera::CameraImage > image) |
|
bool | send_camera_info (esp32_camera::ESP32Camera *camera) |
|
void | camera_image (const CameraImageRequest &msg) override |
|
bool | send_climate_state (climate::Climate *climate) |
|
bool | send_climate_info (climate::Climate *climate) |
|
void | climate_command (const ClimateCommandRequest &msg) override |
|
bool | send_number_state (number::Number *number, float state) |
|
bool | send_number_info (number::Number *number) |
|
void | number_command (const NumberCommandRequest &msg) override |
|
bool | send_date_state (datetime::DateEntity *date) |
|
bool | send_date_info (datetime::DateEntity *date) |
|
void | date_command (const DateCommandRequest &msg) override |
|
bool | send_time_state (datetime::TimeEntity *time) |
|
bool | send_time_info (datetime::TimeEntity *time) |
|
void | time_command (const TimeCommandRequest &msg) override |
|
bool | send_datetime_state (datetime::DateTimeEntity *datetime) |
|
bool | send_datetime_info (datetime::DateTimeEntity *datetime) |
|
void | datetime_command (const DateTimeCommandRequest &msg) override |
|
bool | send_text_state (text::Text *text, std::string state) |
|
bool | send_text_info (text::Text *text) |
|
void | text_command (const TextCommandRequest &msg) override |
|
bool | send_select_state (select::Select *select, std::string state) |
|
bool | send_select_info (select::Select *select) |
|
void | select_command (const SelectCommandRequest &msg) override |
|
bool | send_button_info (button::Button *button) |
|
void | button_command (const ButtonCommandRequest &msg) override |
|
bool | send_lock_state (lock::Lock *a_lock, lock::LockState state) |
|
bool | send_lock_info (lock::Lock *a_lock) |
|
void | lock_command (const LockCommandRequest &msg) override |
|
bool | send_valve_state (valve::Valve *valve) |
|
bool | send_valve_info (valve::Valve *valve) |
|
void | valve_command (const ValveCommandRequest &msg) override |
|
bool | send_media_player_state (media_player::MediaPlayer *media_player) |
|
bool | send_media_player_info (media_player::MediaPlayer *media_player) |
|
void | media_player_command (const MediaPlayerCommandRequest &msg) override |
|
bool | send_log_message (int level, const char *tag, const char *line) |
|
void | send_homeassistant_service_call (const HomeassistantServiceResponse &call) |
|
void | subscribe_bluetooth_le_advertisements (const SubscribeBluetoothLEAdvertisementsRequest &msg) override |
|
void | unsubscribe_bluetooth_le_advertisements (const UnsubscribeBluetoothLEAdvertisementsRequest &msg) override |
|
bool | send_bluetooth_le_advertisement (const BluetoothLEAdvertisementResponse &msg) |
|
void | bluetooth_device_request (const BluetoothDeviceRequest &msg) override |
|
void | bluetooth_gatt_read (const BluetoothGATTReadRequest &msg) override |
|
void | bluetooth_gatt_write (const BluetoothGATTWriteRequest &msg) override |
|
void | bluetooth_gatt_read_descriptor (const BluetoothGATTReadDescriptorRequest &msg) override |
|
void | bluetooth_gatt_write_descriptor (const BluetoothGATTWriteDescriptorRequest &msg) override |
|
void | bluetooth_gatt_get_services (const BluetoothGATTGetServicesRequest &msg) override |
|
void | bluetooth_gatt_notify (const BluetoothGATTNotifyRequest &msg) override |
|
BluetoothConnectionsFreeResponse | subscribe_bluetooth_connections_free (const SubscribeBluetoothConnectionsFreeRequest &msg) override |
|
void | send_time_request () |
|
void | subscribe_voice_assistant (const SubscribeVoiceAssistantRequest &msg) override |
|
void | on_voice_assistant_response (const VoiceAssistantResponse &msg) override |
|
void | on_voice_assistant_event_response (const VoiceAssistantEventResponse &msg) override |
|
void | on_voice_assistant_audio (const VoiceAssistantAudio &msg) override |
|
void | on_voice_assistant_timer_event_response (const VoiceAssistantTimerEventResponse &msg) override |
|
void | on_voice_assistant_announce_request (const VoiceAssistantAnnounceRequest &msg) override |
|
VoiceAssistantConfigurationResponse | voice_assistant_get_configuration (const VoiceAssistantConfigurationRequest &msg) override |
|
void | voice_assistant_set_configuration (const VoiceAssistantSetConfiguration &msg) override |
|
bool | send_alarm_control_panel_state (alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) |
|
bool | send_alarm_control_panel_info (alarm_control_panel::AlarmControlPanel *a_alarm_control_panel) |
|
void | alarm_control_panel_command (const AlarmControlPanelCommandRequest &msg) override |
|
bool | send_event (event::Event *event, std::string event_type) |
|
bool | send_event_info (event::Event *event) |
|
bool | send_update_state (update::UpdateEntity *update) |
|
bool | send_update_info (update::UpdateEntity *update) |
|
void | update_command (const UpdateCommandRequest &msg) override |
|
void | on_disconnect_response (const DisconnectResponse &value) override |
|
void | on_ping_response (const PingResponse &value) override |
|
void | on_home_assistant_state_response (const HomeAssistantStateResponse &msg) override |
|
void | on_get_time_response (const GetTimeResponse &value) override |
|
HelloResponse | hello (const HelloRequest &msg) override |
|
ConnectResponse | connect (const ConnectRequest &msg) override |
|
DisconnectResponse | disconnect (const DisconnectRequest &msg) override |
|
PingResponse | ping (const PingRequest &msg) override |
|
DeviceInfoResponse | device_info (const DeviceInfoRequest &msg) override |
|
void | list_entities (const ListEntitiesRequest &msg) override |
|
void | subscribe_states (const SubscribeStatesRequest &msg) override |
|
void | subscribe_logs (const SubscribeLogsRequest &msg) override |
|
void | subscribe_homeassistant_services (const SubscribeHomeassistantServicesRequest &msg) override |
|
void | subscribe_home_assistant_states (const SubscribeHomeAssistantStatesRequest &msg) override |
|
GetTimeResponse | get_time (const GetTimeRequest &msg) override |
|
void | execute_service (const ExecuteServiceRequest &msg) override |
|
bool | is_authenticated () override |
|
bool | is_connection_setup () override |
|
void | on_fatal_error () override |
|
void | on_unauthenticated_access () override |
|
void | on_no_setup_connection () override |
|
ProtoWriteBuffer | create_buffer () override |
|
bool | send_buffer (ProtoWriteBuffer buffer, uint32_t message_type) override |
|
std::string | get_client_combined_info () const |
|
bool | send_hello_response (const HelloResponse &msg) |
|
bool | send_connect_response (const ConnectResponse &msg) |
|
bool | send_disconnect_request (const DisconnectRequest &msg) |
|
bool | send_disconnect_response (const DisconnectResponse &msg) |
|
bool | send_ping_request (const PingRequest &msg) |
|
bool | send_ping_response (const PingResponse &msg) |
|
bool | send_device_info_response (const DeviceInfoResponse &msg) |
|
bool | send_list_entities_done_response (const ListEntitiesDoneResponse &msg) |
|
bool | send_list_entities_binary_sensor_response (const ListEntitiesBinarySensorResponse &msg) |
|
bool | send_binary_sensor_state_response (const BinarySensorStateResponse &msg) |
|
bool | send_list_entities_cover_response (const ListEntitiesCoverResponse &msg) |
|
bool | send_cover_state_response (const CoverStateResponse &msg) |
|
bool | send_list_entities_fan_response (const ListEntitiesFanResponse &msg) |
|
bool | send_fan_state_response (const FanStateResponse &msg) |
|
bool | send_list_entities_light_response (const ListEntitiesLightResponse &msg) |
|
bool | send_light_state_response (const LightStateResponse &msg) |
|
bool | send_list_entities_sensor_response (const ListEntitiesSensorResponse &msg) |
|
bool | send_sensor_state_response (const SensorStateResponse &msg) |
|
bool | send_list_entities_switch_response (const ListEntitiesSwitchResponse &msg) |
|
bool | send_switch_state_response (const SwitchStateResponse &msg) |
|
bool | send_list_entities_text_sensor_response (const ListEntitiesTextSensorResponse &msg) |
|
bool | send_text_sensor_state_response (const TextSensorStateResponse &msg) |
|
bool | send_subscribe_logs_response (const SubscribeLogsResponse &msg) |
|
bool | send_homeassistant_service_response (const HomeassistantServiceResponse &msg) |
|
bool | send_subscribe_home_assistant_state_response (const SubscribeHomeAssistantStateResponse &msg) |
|
bool | send_get_time_request (const GetTimeRequest &msg) |
|
bool | send_get_time_response (const GetTimeResponse &msg) |
|
bool | send_list_entities_services_response (const ListEntitiesServicesResponse &msg) |
|
bool | send_list_entities_camera_response (const ListEntitiesCameraResponse &msg) |
|
bool | send_camera_image_response (const CameraImageResponse &msg) |
|
bool | send_list_entities_climate_response (const ListEntitiesClimateResponse &msg) |
|
bool | send_climate_state_response (const ClimateStateResponse &msg) |
|
bool | send_list_entities_number_response (const ListEntitiesNumberResponse &msg) |
|
bool | send_number_state_response (const NumberStateResponse &msg) |
|
bool | send_list_entities_select_response (const ListEntitiesSelectResponse &msg) |
|
bool | send_select_state_response (const SelectStateResponse &msg) |
|
bool | send_list_entities_lock_response (const ListEntitiesLockResponse &msg) |
|
bool | send_lock_state_response (const LockStateResponse &msg) |
|
bool | send_list_entities_button_response (const ListEntitiesButtonResponse &msg) |
|
bool | send_list_entities_media_player_response (const ListEntitiesMediaPlayerResponse &msg) |
|
bool | send_media_player_state_response (const MediaPlayerStateResponse &msg) |
|
bool | send_bluetooth_le_advertisement_response (const BluetoothLEAdvertisementResponse &msg) |
|
bool | send_bluetooth_le_raw_advertisements_response (const BluetoothLERawAdvertisementsResponse &msg) |
|
bool | send_bluetooth_device_connection_response (const BluetoothDeviceConnectionResponse &msg) |
|
bool | send_bluetooth_gatt_get_services_response (const BluetoothGATTGetServicesResponse &msg) |
|
bool | send_bluetooth_gatt_get_services_done_response (const BluetoothGATTGetServicesDoneResponse &msg) |
|
bool | send_bluetooth_gatt_read_response (const BluetoothGATTReadResponse &msg) |
|
bool | send_bluetooth_gatt_notify_data_response (const BluetoothGATTNotifyDataResponse &msg) |
|
bool | send_bluetooth_connections_free_response (const BluetoothConnectionsFreeResponse &msg) |
|
bool | send_bluetooth_gatt_error_response (const BluetoothGATTErrorResponse &msg) |
|
bool | send_bluetooth_gatt_write_response (const BluetoothGATTWriteResponse &msg) |
|
bool | send_bluetooth_gatt_notify_response (const BluetoothGATTNotifyResponse &msg) |
|
bool | send_bluetooth_device_pairing_response (const BluetoothDevicePairingResponse &msg) |
|
bool | send_bluetooth_device_unpairing_response (const BluetoothDeviceUnpairingResponse &msg) |
|
bool | send_bluetooth_device_clear_cache_response (const BluetoothDeviceClearCacheResponse &msg) |
|
bool | send_voice_assistant_request (const VoiceAssistantRequest &msg) |
|
bool | send_voice_assistant_audio (const VoiceAssistantAudio &msg) |
|
bool | send_voice_assistant_announce_finished (const VoiceAssistantAnnounceFinished &msg) |
|
bool | send_voice_assistant_configuration_response (const VoiceAssistantConfigurationResponse &msg) |
|
bool | send_list_entities_alarm_control_panel_response (const ListEntitiesAlarmControlPanelResponse &msg) |
|
bool | send_alarm_control_panel_state_response (const AlarmControlPanelStateResponse &msg) |
|
bool | send_list_entities_text_response (const ListEntitiesTextResponse &msg) |
|
bool | send_text_state_response (const TextStateResponse &msg) |
|
bool | send_list_entities_date_response (const ListEntitiesDateResponse &msg) |
|
bool | send_date_state_response (const DateStateResponse &msg) |
|
bool | send_list_entities_time_response (const ListEntitiesTimeResponse &msg) |
|
bool | send_time_state_response (const TimeStateResponse &msg) |
|
bool | send_list_entities_event_response (const ListEntitiesEventResponse &msg) |
|
bool | send_event_response (const EventResponse &msg) |
|
bool | send_list_entities_valve_response (const ListEntitiesValveResponse &msg) |
|
bool | send_valve_state_response (const ValveStateResponse &msg) |
|
bool | send_list_entities_date_time_response (const ListEntitiesDateTimeResponse &msg) |
|
bool | send_date_time_state_response (const DateTimeStateResponse &msg) |
|
bool | send_list_entities_update_response (const ListEntitiesUpdateResponse &msg) |
|
bool | send_update_state_response (const UpdateStateResponse &msg) |
|
Definition at line 16 of file api_connection.h.