ESPHome 2025.9.0-dev
Loading...
Searching...
No Matches
anova.h
Go to the documentation of this file.
1#pragma once
2
7#include "anova_base.h"
8
9#ifdef USE_ESP32
10
11#include <esp_gattc_api.h>
12
13namespace esphome {
14namespace anova {
15
17
18static const uint16_t ANOVA_SERVICE_UUID = 0xFFE0;
19static const uint16_t ANOVA_CHARACTERISTIC_UUID = 0xFFE1;
20
22 public:
23 void setup() override;
24 void loop() override;
25 void update() override;
26 void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if,
27 esp_ble_gattc_cb_param_t *param) override;
28 void dump_config() override;
38 void set_unit_of_measurement(const char *unit);
39
40 protected:
41 std::unique_ptr<AnovaCodec> codec_;
42 void control(const climate::ClimateCall &call) override;
43 uint16_t char_handle_;
46};
47
48} // namespace anova
49} // namespace esphome
50
51#endif
This class simplifies creating components that periodically check a state.
Definition component.h:425
void dump_config() override
Definition anova.cpp:13
void update() override
Definition anova.cpp:141
void setup() override
Definition anova.cpp:15
climate::ClimateTraits traits() override
Definition anova.h:29
void loop() override
Definition anova.cpp:20
std::unique_ptr< AnovaCodec > codec_
Definition anova.h:41
uint8_t current_request_
Definition anova.h:44
uint16_t char_handle_
Definition anova.h:43
void gattc_event_handler(esp_gattc_cb_event_t event, esp_gatt_if_t gattc_if, esp_ble_gattc_cb_param_t *param) override
Definition anova.cpp:59
void control(const climate::ClimateCall &call) override
Definition anova.cpp:26
void set_unit_of_measurement(const char *unit)
Definition anova.cpp:139
This class is used to encode all control actions on a climate device.
Definition climate.h:33
ClimateDevice - This is the base class for all climate integrations.
Definition climate.h:168
This class contains all static data for climate devices.
void set_visual_max_temperature(float visual_max_temperature)
void set_supported_modes(std::set< ClimateMode > modes)
void set_visual_temperature_step(float temperature_step)
void set_visual_min_temperature(float visual_min_temperature)
void set_supports_current_temperature(bool supports_current_temperature)
@ CLIMATE_MODE_HEAT
The climate device is set to heat to reach the target temperature.
@ CLIMATE_MODE_OFF
The climate device is off.
Providing packet encoding functions for exchanging data with a remote host.
Definition a01nyub.cpp:7