esphome 2025.2.2__py3-none-any.whl → 2025.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- esphome/__main__.py +9 -1
- esphome/components/api/api_connection.cpp +426 -70
- esphome/components/api/api_connection.h +117 -25
- esphome/components/api/api_pb2.cpp +33 -0
- esphome/components/api/api_pb2.h +4 -0
- esphome/components/api/api_server.cpp +2 -2
- esphome/components/api/list_entities.cpp +76 -22
- esphome/components/api/list_entities.h +1 -0
- esphome/components/api/subscribe_state.h +2 -0
- esphome/components/audio/__init__.py +1 -1
- esphome/components/audio/audio_decoder.cpp +43 -11
- esphome/components/audio/audio_reader.cpp +2 -2
- esphome/components/audio/audio_resampler.cpp +4 -2
- esphome/components/audio/audio_transfer_buffer.cpp +19 -9
- esphome/components/audio/audio_transfer_buffer.h +7 -2
- esphome/components/bluetooth_proxy/bluetooth_proxy.h +8 -0
- esphome/components/bmp085/bmp085.cpp +1 -1
- esphome/components/chsc6x/__init__.py +2 -0
- esphome/components/chsc6x/chsc6x_touchscreen.cpp +47 -0
- esphome/components/chsc6x/chsc6x_touchscreen.h +34 -0
- esphome/components/chsc6x/touchscreen.py +33 -0
- esphome/components/climate/__init__.py +0 -1
- esphome/components/cst816/binary_sensor/__init__.py +2 -25
- esphome/components/cst816/touchscreen/cst816_touchscreen.cpp +3 -14
- esphome/components/cst816/touchscreen/cst816_touchscreen.h +0 -4
- esphome/components/esp32_ble_beacon/__init__.py +3 -1
- esphome/components/esp8266/gpio.py +1 -2
- esphome/components/font/__init__.py +198 -215
- esphome/components/font/font.cpp +4 -4
- esphome/components/font/font.h +1 -0
- esphome/components/graph/graph.cpp +4 -0
- esphome/components/graph/graph.h +4 -0
- esphome/components/haier/climate.py +11 -10
- esphome/components/hbridge/switch/hbridge_switch.cpp +2 -2
- esphome/components/heatpumpir/climate.py +2 -1
- esphome/components/heatpumpir/heatpumpir.cpp +1 -0
- esphome/components/heatpumpir/heatpumpir.h +1 -0
- esphome/components/i2c/__init__.py +6 -6
- esphome/components/i2c/i2c_bus_esp_idf.cpp +6 -2
- esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp +1 -1
- esphome/components/ili9xxx/display.py +1 -0
- esphome/components/ili9xxx/ili9xxx_display.h +5 -0
- esphome/components/ili9xxx/ili9xxx_init.h +59 -0
- esphome/components/ld2450/__init__.py +51 -0
- esphome/components/ld2450/binary_sensor.py +47 -0
- esphome/components/ld2450/button/__init__.py +45 -0
- esphome/components/ld2450/button/reset_button.cpp +9 -0
- esphome/components/ld2450/button/reset_button.h +18 -0
- esphome/components/ld2450/button/restart_button.cpp +9 -0
- esphome/components/ld2450/button/restart_button.h +18 -0
- esphome/components/ld2450/ld2450.cpp +876 -0
- esphome/components/ld2450/ld2450.h +234 -0
- esphome/components/ld2450/number/__init__.py +121 -0
- esphome/components/ld2450/number/presence_timeout_number.cpp +12 -0
- esphome/components/ld2450/number/presence_timeout_number.h +18 -0
- esphome/components/ld2450/number/zone_coordinate_number.cpp +14 -0
- esphome/components/ld2450/number/zone_coordinate_number.h +19 -0
- esphome/components/ld2450/select/__init__.py +56 -0
- esphome/components/ld2450/select/baud_rate_select.cpp +12 -0
- esphome/components/ld2450/select/baud_rate_select.h +18 -0
- esphome/components/ld2450/select/zone_type_select.cpp +12 -0
- esphome/components/ld2450/select/zone_type_select.h +18 -0
- esphome/components/ld2450/sensor.py +156 -0
- esphome/components/ld2450/switch/__init__.py +45 -0
- esphome/components/ld2450/switch/bluetooth_switch.cpp +12 -0
- esphome/components/ld2450/switch/bluetooth_switch.h +18 -0
- esphome/components/ld2450/switch/multi_target_switch.cpp +12 -0
- esphome/components/ld2450/switch/multi_target_switch.h +18 -0
- esphome/components/ld2450/text_sensor.py +62 -0
- esphome/components/lvgl/defines.py +0 -2
- esphome/components/lvgl/font.cpp +1 -1
- esphome/components/lvgl/lvgl_esphome.cpp +27 -19
- esphome/components/lvgl/widgets/img.py +1 -3
- esphome/components/mcp2515/mcp2515.cpp +1 -0
- esphome/components/mdns/__init__.py +1 -1
- esphome/components/mixer/speaker/mixer_speaker.cpp +6 -1
- esphome/components/mixer/speaker/mixer_speaker.h +2 -0
- esphome/components/mlx90393/sensor.py +53 -33
- esphome/components/mlx90393/sensor_mlx90393.cpp +4 -0
- esphome/components/mlx90393/sensor_mlx90393.h +8 -3
- esphome/components/mqtt/__init__.py +2 -2
- esphome/components/msa3xx/__init__.py +189 -0
- esphome/components/msa3xx/binary_sensor.py +40 -0
- esphome/components/msa3xx/msa3xx.cpp +417 -0
- esphome/components/msa3xx/msa3xx.h +311 -0
- esphome/components/msa3xx/sensor.py +42 -0
- esphome/components/msa3xx/text_sensor.py +38 -0
- esphome/components/nfc/binary_sensor/__init__.py +4 -4
- esphome/components/opentherm/binary_sensor/__init__.py +4 -4
- esphome/components/opentherm/generate.py +6 -6
- esphome/components/opentherm/sensor/__init__.py +5 -6
- esphome/components/packages/__init__.py +35 -11
- esphome/components/pn532/binary_sensor.py +4 -4
- esphome/components/rc522/binary_sensor.py +4 -4
- esphome/components/resampler/speaker/resampler_speaker.h +2 -0
- esphome/components/socket/bsd_sockets_impl.cpp +1 -0
- esphome/components/socket/lwip_sockets_impl.cpp +1 -0
- esphome/components/socket/socket.h +3 -1
- esphome/components/speaker/speaker.h +2 -2
- esphome/components/ssd1306_base/__init__.py +7 -7
- esphome/components/thermostat/climate.py +1 -1
- esphome/components/tmp1075/tmp1075.cpp +7 -11
- esphome/components/tmp1075/tmp1075.h +1 -2
- esphome/components/tormatic/__init__.py +1 -0
- esphome/components/tormatic/cover.py +47 -0
- esphome/components/tormatic/tormatic_cover.cpp +355 -0
- esphome/components/tormatic/tormatic_cover.h +60 -0
- esphome/components/tormatic/tormatic_protocol.h +211 -0
- esphome/components/touchscreen/binary_sensor/__init__.py +3 -0
- esphome/components/touchscreen/binary_sensor/touchscreen_binary_sensor.cpp +7 -1
- esphome/components/touchscreen/binary_sensor/touchscreen_binary_sensor.h +3 -1
- esphome/components/touchscreen/touchscreen.cpp +3 -4
- esphome/components/udp/udp_component.h +4 -1
- esphome/components/web_server/list_entities.cpp +70 -66
- esphome/components/web_server/list_entities.h +43 -22
- esphome/components/web_server/web_server.cpp +345 -68
- esphome/components/web_server/web_server.h +138 -6
- esphome/components/web_server_base/__init__.py +1 -1
- esphome/components/web_server_idf/__init__.py +2 -0
- esphome/components/web_server_idf/web_server_idf.cpp +177 -30
- esphome/components/web_server_idf/web_server_idf.h +53 -4
- esphome/config_validation.py +23 -125
- esphome/const.py +5 -1
- esphome/core/config.py +15 -6
- esphome/core/defines.h +1 -1
- esphome/core/helpers.h +24 -3
- esphome/core/time.cpp +1 -0
- esphome/cpp_generator.py +3 -3
- esphome/dashboard/core.py +30 -21
- esphome/dashboard/dns.py +7 -1
- esphome/dashboard/entries.py +83 -16
- esphome/dashboard/settings.py +0 -4
- esphome/dashboard/status/mdns.py +43 -14
- esphome/dashboard/status/mqtt.py +22 -9
- esphome/dashboard/status/ping.py +54 -10
- esphome/dashboard/web_server.py +56 -24
- esphome/storage_json.py +4 -0
- esphome/wizard.py +13 -17
- esphome/writer.py +1 -3
- esphome/yaml_util.py +36 -33
- esphome/zeroconf.py +9 -21
- {esphome-2025.2.2.dist-info → esphome-2025.3.0.dist-info}/METADATA +7 -7
- {esphome-2025.2.2.dist-info → esphome-2025.3.0.dist-info}/RECORD +147 -107
- esphome/components/cst816/binary_sensor/cst816_button.h +0 -27
- {esphome-2025.2.2.dist-info → esphome-2025.3.0.dist-info}/LICENSE +0 -0
- {esphome-2025.2.2.dist-info → esphome-2025.3.0.dist-info}/WHEEL +0 -0
- {esphome-2025.2.2.dist-info → esphome-2025.3.0.dist-info}/entry_points.txt +0 -0
- {esphome-2025.2.2.dist-info → esphome-2025.3.0.dist-info}/top_level.txt +0 -0
@@ -5,76 +5,97 @@
|
|
5
5
|
#include "esphome/core/component.h"
|
6
6
|
#include "esphome/core/component_iterator.h"
|
7
7
|
namespace esphome {
|
8
|
+
#ifdef USE_ESP_IDF
|
9
|
+
namespace web_server_idf {
|
10
|
+
class AsyncEventSource;
|
11
|
+
}
|
12
|
+
#endif
|
8
13
|
namespace web_server {
|
9
14
|
|
15
|
+
#ifdef USE_ARDUINO
|
16
|
+
class DeferredUpdateEventSource;
|
17
|
+
#endif
|
10
18
|
class WebServer;
|
11
19
|
|
12
20
|
class ListEntitiesIterator : public ComponentIterator {
|
13
21
|
public:
|
14
|
-
|
22
|
+
#ifdef USE_ARDUINO
|
23
|
+
ListEntitiesIterator(const WebServer *ws, DeferredUpdateEventSource *es);
|
24
|
+
#endif
|
25
|
+
#ifdef USE_ESP_IDF
|
26
|
+
ListEntitiesIterator(const WebServer *ws, esphome::web_server_idf::AsyncEventSource *es);
|
27
|
+
#endif
|
28
|
+
virtual ~ListEntitiesIterator();
|
15
29
|
#ifdef USE_BINARY_SENSOR
|
16
|
-
bool on_binary_sensor(binary_sensor::BinarySensor *
|
30
|
+
bool on_binary_sensor(binary_sensor::BinarySensor *obj) override;
|
17
31
|
#endif
|
18
32
|
#ifdef USE_COVER
|
19
|
-
bool on_cover(cover::Cover *
|
33
|
+
bool on_cover(cover::Cover *obj) override;
|
20
34
|
#endif
|
21
35
|
#ifdef USE_FAN
|
22
|
-
bool on_fan(fan::Fan *
|
36
|
+
bool on_fan(fan::Fan *obj) override;
|
23
37
|
#endif
|
24
38
|
#ifdef USE_LIGHT
|
25
|
-
bool on_light(light::LightState *
|
39
|
+
bool on_light(light::LightState *obj) override;
|
26
40
|
#endif
|
27
41
|
#ifdef USE_SENSOR
|
28
|
-
bool on_sensor(sensor::Sensor *
|
42
|
+
bool on_sensor(sensor::Sensor *obj) override;
|
29
43
|
#endif
|
30
44
|
#ifdef USE_SWITCH
|
31
|
-
bool on_switch(switch_::Switch *
|
45
|
+
bool on_switch(switch_::Switch *obj) override;
|
32
46
|
#endif
|
33
47
|
#ifdef USE_BUTTON
|
34
|
-
bool on_button(button::Button *
|
48
|
+
bool on_button(button::Button *obj) override;
|
35
49
|
#endif
|
36
50
|
#ifdef USE_TEXT_SENSOR
|
37
|
-
bool on_text_sensor(text_sensor::TextSensor *
|
51
|
+
bool on_text_sensor(text_sensor::TextSensor *obj) override;
|
38
52
|
#endif
|
39
53
|
#ifdef USE_CLIMATE
|
40
|
-
bool on_climate(climate::Climate *
|
54
|
+
bool on_climate(climate::Climate *obj) override;
|
41
55
|
#endif
|
42
56
|
#ifdef USE_NUMBER
|
43
|
-
bool on_number(number::Number *
|
57
|
+
bool on_number(number::Number *obj) override;
|
44
58
|
#endif
|
45
59
|
#ifdef USE_DATETIME_DATE
|
46
|
-
bool on_date(datetime::DateEntity *
|
60
|
+
bool on_date(datetime::DateEntity *obj) override;
|
47
61
|
#endif
|
48
62
|
#ifdef USE_DATETIME_TIME
|
49
|
-
bool on_time(datetime::TimeEntity *
|
63
|
+
bool on_time(datetime::TimeEntity *obj) override;
|
50
64
|
#endif
|
51
65
|
#ifdef USE_DATETIME_DATETIME
|
52
|
-
bool on_datetime(datetime::DateTimeEntity *
|
66
|
+
bool on_datetime(datetime::DateTimeEntity *obj) override;
|
53
67
|
#endif
|
54
68
|
#ifdef USE_TEXT
|
55
|
-
bool on_text(text::Text *
|
69
|
+
bool on_text(text::Text *obj) override;
|
56
70
|
#endif
|
57
71
|
#ifdef USE_SELECT
|
58
|
-
bool on_select(select::Select *
|
72
|
+
bool on_select(select::Select *obj) override;
|
59
73
|
#endif
|
60
74
|
#ifdef USE_LOCK
|
61
|
-
bool on_lock(lock::Lock *
|
75
|
+
bool on_lock(lock::Lock *obj) override;
|
62
76
|
#endif
|
63
77
|
#ifdef USE_VALVE
|
64
|
-
bool on_valve(valve::Valve *
|
78
|
+
bool on_valve(valve::Valve *obj) override;
|
65
79
|
#endif
|
66
80
|
#ifdef USE_ALARM_CONTROL_PANEL
|
67
|
-
bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *
|
81
|
+
bool on_alarm_control_panel(alarm_control_panel::AlarmControlPanel *obj) override;
|
68
82
|
#endif
|
69
83
|
#ifdef USE_EVENT
|
70
|
-
bool on_event(event::Event *
|
84
|
+
bool on_event(event::Event *obj) override;
|
71
85
|
#endif
|
72
86
|
#ifdef USE_UPDATE
|
73
|
-
bool on_update(update::UpdateEntity *
|
87
|
+
bool on_update(update::UpdateEntity *obj) override;
|
74
88
|
#endif
|
89
|
+
bool completed() { return this->state_ == IteratorState::NONE; }
|
75
90
|
|
76
91
|
protected:
|
77
|
-
WebServer *web_server_;
|
92
|
+
const WebServer *web_server_;
|
93
|
+
#ifdef USE_ARDUINO
|
94
|
+
DeferredUpdateEventSource *events_;
|
95
|
+
#endif
|
96
|
+
#ifdef USE_ESP_IDF
|
97
|
+
esphome::web_server_idf::AsyncEventSource *events_;
|
98
|
+
#endif
|
78
99
|
};
|
79
100
|
|
80
101
|
} // namespace web_server
|