8#include <esp_gattc_api.h>
24static constexpr uint8_t QUERY_QUEUE_SIZE = 9;
27static const espbt::ESPBTUUID MADOKA_SERVICE_UUID = espbt::ESPBTUUID::from_raw(
"2141e110-213a-11e6-b67b-9e71128cae77");
29 espbt::ESPBTUUID::from_raw(
"2141e111-213a-11e6-b67b-9e71128cae77");
31 espbt::ESPBTUUID::from_raw(
"2141e112-213a-11e6-b67b-9e71128cae77");
42 esp_ble_gattc_cb_param_t *param)
override;
43 void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param)
override;
78 void parse_cb_(std::span<const uint8_t> msg);
This class simplifies creating components that periodically check a state.
Fixed-size circular buffer with FIFO semantics and iteration support.
This class is used to encode all control actions on a climate device.
ClimateDevice - This is the base class for all climate integrations.
void set_visual_max_temperature(float visual_max_temperature)
void add_feature_flags(uint32_t feature_flags)
void set_visual_temperature_step(float temperature_step)
void set_visual_min_temperature(float visual_min_temperature)
void set_supported_modes(ClimateModeMask modes)
void set_supported_fan_modes(ClimateFanModeMask modes)
void update_mode_from_status_()
void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) override
StaticRingBuffer< Query, QUERY_QUEUE_SIZE > query_queue_
void enqueue_query_(uint16_t cmd, std::span< const uint8_t > args)
MessageAssembler assembler_
void control(const climate::ClimateCall &call) override
climate::ClimateTraits traits() override
void dump_config() override
static constexpr uint32_t QUERY_TIMEOUT_ID
bool write_query_(const Query &query)
void process_incoming_chunk_(std::span< const uint8_t > chunk)
void fail_connection_(const LogString *reason)
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param) override
void parse_cb_(std::span< const uint8_t > msg)
static constexpr uint32_t PUBLISH_TIMEOUT_ID
Reassembles notifications (one chunk id byte followed by payload) into a message.
@ CLIMATE_SUPPORTS_TWO_POINT_TARGET_TEMPERATURE
@ CLIMATE_SUPPORTS_CURRENT_TEMPERATURE
@ CLIMATE_REQUIRES_TWO_POINT_TARGET_TEMPERATURE
@ CLIMATE_MODE_DRY
The climate device is set to dry/humidity mode.
@ CLIMATE_MODE_FAN_ONLY
The climate device only has the fan enabled, no heating or cooling is taking place.
@ CLIMATE_MODE_HEAT
The climate device is set to heat to reach the target temperature.
@ CLIMATE_MODE_COOL
The climate device is set to cool to reach the target temperature.
@ CLIMATE_MODE_HEAT_COOL
The climate device is set to heat/cool to reach the target temperature.
@ CLIMATE_MODE_OFF
The climate device is off.
@ CLIMATE_FAN_MEDIUM
The fan mode is set to Medium.
@ CLIMATE_FAN_AUTO
The fan mode is set to Auto.
@ CLIMATE_FAN_LOW
The fan mode is set to Low.
@ CLIMATE_FAN_HIGH
The fan mode is set to High.