esphome 2025.12.0b2__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/__init__.py +0 -0
- esphome/__main__.py +1517 -0
- esphome/address_cache.py +142 -0
- esphome/analyze_memory/__init__.py +335 -0
- esphome/analyze_memory/__main__.py +6 -0
- esphome/analyze_memory/cli.py +435 -0
- esphome/analyze_memory/const.py +1052 -0
- esphome/analyze_memory/demangle.py +182 -0
- esphome/analyze_memory/helpers.py +121 -0
- esphome/analyze_memory/ram_strings.py +493 -0
- esphome/analyze_memory/toolchain.py +57 -0
- esphome/automation.py +589 -0
- esphome/build_gen/__init__.py +0 -0
- esphome/build_gen/platformio.py +100 -0
- esphome/codegen.py +97 -0
- esphome/components/__init__.py +0 -0
- esphome/components/a01nyub/__init__.py +1 -0
- esphome/components/a01nyub/a01nyub.cpp +44 -0
- esphome/components/a01nyub/a01nyub.h +27 -0
- esphome/components/a01nyub/sensor.py +41 -0
- esphome/components/a02yyuw/__init__.py +1 -0
- esphome/components/a02yyuw/a02yyuw.cpp +43 -0
- esphome/components/a02yyuw/a02yyuw.h +27 -0
- esphome/components/a02yyuw/sensor.py +41 -0
- esphome/components/a4988/__init__.py +0 -0
- esphome/components/a4988/a4988.cpp +55 -0
- esphome/components/a4988/a4988.h +29 -0
- esphome/components/a4988/stepper.py +32 -0
- esphome/components/absolute_humidity/__init__.py +1 -0
- esphome/components/absolute_humidity/absolute_humidity.cpp +180 -0
- esphome/components/absolute_humidity/absolute_humidity.h +76 -0
- esphome/components/absolute_humidity/sensor.py +56 -0
- esphome/components/ac_dimmer/__init__.py +0 -0
- esphome/components/ac_dimmer/ac_dimmer.cpp +236 -0
- esphome/components/ac_dimmer/ac_dimmer.h +70 -0
- esphome/components/ac_dimmer/output.py +52 -0
- esphome/components/adalight/__init__.py +27 -0
- esphome/components/adalight/adalight_light_effect.cpp +142 -0
- esphome/components/adalight/adalight_light_effect.h +39 -0
- esphome/components/adc/__init__.py +281 -0
- esphome/components/adc/adc_sensor.h +170 -0
- esphome/components/adc/adc_sensor_common.cpp +85 -0
- esphome/components/adc/adc_sensor_esp32.cpp +368 -0
- esphome/components/adc/adc_sensor_esp8266.cpp +61 -0
- esphome/components/adc/adc_sensor_libretiny.cpp +54 -0
- esphome/components/adc/adc_sensor_rp2040.cpp +97 -0
- esphome/components/adc/adc_sensor_zephyr.cpp +207 -0
- esphome/components/adc/sensor.py +196 -0
- esphome/components/adc128s102/__init__.py +23 -0
- esphome/components/adc128s102/adc128s102.cpp +32 -0
- esphome/components/adc128s102/adc128s102.h +23 -0
- esphome/components/adc128s102/sensor/__init__.py +38 -0
- esphome/components/adc128s102/sensor/adc128s102_sensor.cpp +24 -0
- esphome/components/adc128s102/sensor/adc128s102_sensor.h +29 -0
- esphome/components/addressable_light/__init__.py +0 -0
- esphome/components/addressable_light/addressable_light_display.cpp +67 -0
- esphome/components/addressable_light/addressable_light_display.h +63 -0
- esphome/components/addressable_light/display.py +62 -0
- esphome/components/ade7880/__init__.py +1 -0
- esphome/components/ade7880/ade7880.cpp +315 -0
- esphome/components/ade7880/ade7880.h +129 -0
- esphome/components/ade7880/ade7880_i2c.cpp +101 -0
- esphome/components/ade7880/ade7880_registers.h +243 -0
- esphome/components/ade7880/sensor.py +316 -0
- esphome/components/ade7953/__init__.py +1 -0
- esphome/components/ade7953/sensor.py +5 -0
- esphome/components/ade7953_base/__init__.py +203 -0
- esphome/components/ade7953_base/ade7953_base.cpp +156 -0
- esphome/components/ade7953_base/ade7953_base.h +131 -0
- esphome/components/ade7953_i2c/__init__.py +1 -0
- esphome/components/ade7953_i2c/ade7953_i2c.cpp +80 -0
- esphome/components/ade7953_i2c/ade7953_i2c.h +28 -0
- esphome/components/ade7953_i2c/sensor.py +26 -0
- esphome/components/ade7953_spi/__init__.py +1 -0
- esphome/components/ade7953_spi/ade7953_spi.cpp +81 -0
- esphome/components/ade7953_spi/ade7953_spi.h +32 -0
- esphome/components/ade7953_spi/sensor.py +26 -0
- esphome/components/ads1115/__init__.py +32 -0
- esphome/components/ads1115/ads1115.cpp +223 -0
- esphome/components/ads1115/ads1115.h +64 -0
- esphome/components/ads1115/sensor/__init__.py +98 -0
- esphome/components/ads1115/sensor/ads1115_sensor.cpp +31 -0
- esphome/components/ads1115/sensor/ads1115_sensor.h +37 -0
- esphome/components/ads1118/__init__.py +25 -0
- esphome/components/ads1118/ads1118.cpp +126 -0
- esphome/components/ads1118/ads1118.h +45 -0
- esphome/components/ads1118/sensor/__init__.py +98 -0
- esphome/components/ads1118/sensor/ads1118_sensor.cpp +29 -0
- esphome/components/ads1118/sensor/ads1118_sensor.h +36 -0
- esphome/components/ags10/__init__.py +1 -0
- esphome/components/ags10/ags10.cpp +196 -0
- esphome/components/ags10/ags10.h +140 -0
- esphome/components/ags10/sensor.py +132 -0
- esphome/components/aht10/__init__.py +0 -0
- esphome/components/aht10/aht10.cpp +166 -0
- esphome/components/aht10/aht10.h +36 -0
- esphome/components/aht10/sensor.py +65 -0
- esphome/components/aic3204/__init__.py +0 -0
- esphome/components/aic3204/aic3204.cpp +171 -0
- esphome/components/aic3204/aic3204.h +87 -0
- esphome/components/aic3204/audio_dac.py +52 -0
- esphome/components/aic3204/automation.h +23 -0
- esphome/components/airthings_ble/__init__.py +23 -0
- esphome/components/airthings_ble/airthings_listener.cpp +34 -0
- esphome/components/airthings_ble/airthings_listener.h +19 -0
- esphome/components/airthings_wave_base/__init__.py +102 -0
- esphome/components/airthings_wave_base/airthings_wave_base.cpp +211 -0
- esphome/components/airthings_wave_base/airthings_wave_base.h +90 -0
- esphome/components/airthings_wave_mini/__init__.py +1 -0
- esphome/components/airthings_wave_mini/airthings_wave_mini.cpp +55 -0
- esphome/components/airthings_wave_mini/airthings_wave_mini.h +40 -0
- esphome/components/airthings_wave_mini/sensor.py +25 -0
- esphome/components/airthings_wave_plus/__init__.py +1 -0
- esphome/components/airthings_wave_plus/airthings_wave_plus.cpp +104 -0
- esphome/components/airthings_wave_plus/airthings_wave_plus.h +64 -0
- esphome/components/airthings_wave_plus/sensor.py +102 -0
- esphome/components/alarm_control_panel/__init__.py +344 -0
- esphome/components/alarm_control_panel/alarm_control_panel.cpp +161 -0
- esphome/components/alarm_control_panel/alarm_control_panel.h +200 -0
- esphome/components/alarm_control_panel/alarm_control_panel_call.cpp +103 -0
- esphome/components/alarm_control_panel/alarm_control_panel_call.h +40 -0
- esphome/components/alarm_control_panel/alarm_control_panel_state.cpp +34 -0
- esphome/components/alarm_control_panel/alarm_control_panel_state.h +29 -0
- esphome/components/alarm_control_panel/automation.h +191 -0
- esphome/components/alpha3/__init__.py +1 -0
- esphome/components/alpha3/alpha3.cpp +191 -0
- esphome/components/alpha3/alpha3.h +72 -0
- esphome/components/alpha3/sensor.py +85 -0
- esphome/components/am2315c/__init__.py +1 -0
- esphome/components/am2315c/am2315c.cpp +182 -0
- esphome/components/am2315c/am2315c.h +50 -0
- esphome/components/am2315c/sensor.py +54 -0
- esphome/components/am2320/__init__.py +0 -0
- esphome/components/am2320/am2320.cpp +91 -0
- esphome/components/am2320/am2320.h +29 -0
- esphome/components/am2320/sensor.py +56 -0
- esphome/components/am43/__init__.py +1 -0
- esphome/components/am43/am43_base.cpp +144 -0
- esphome/components/am43/am43_base.h +78 -0
- esphome/components/am43/cover/__init__.py +35 -0
- esphome/components/am43/cover/am43_cover.cpp +159 -0
- esphome/components/am43/cover/am43_cover.h +44 -0
- esphome/components/am43/sensor/__init__.py +53 -0
- esphome/components/am43/sensor/am43_sensor.cpp +117 -0
- esphome/components/am43/sensor/am43_sensor.h +44 -0
- esphome/components/analog_threshold/__init__.py +1 -0
- esphome/components/analog_threshold/analog_threshold_binary_sensor.cpp +47 -0
- esphome/components/analog_threshold/analog_threshold_binary_sensor.h +27 -0
- esphome/components/analog_threshold/binary_sensor.py +49 -0
- esphome/components/animation/__init__.py +108 -0
- esphome/components/animation/animation.cpp +70 -0
- esphome/components/animation/animation.h +68 -0
- esphome/components/anova/__init__.py +0 -0
- esphome/components/anova/anova.cpp +161 -0
- esphome/components/anova/anova.h +51 -0
- esphome/components/anova/anova_base.cpp +134 -0
- esphome/components/anova/anova_base.h +79 -0
- esphome/components/anova/climate.py +35 -0
- esphome/components/apds9306/__init__.py +4 -0
- esphome/components/apds9306/apds9306.cpp +151 -0
- esphome/components/apds9306/apds9306.h +66 -0
- esphome/components/apds9306/sensor.py +95 -0
- esphome/components/apds9960/__init__.py +69 -0
- esphome/components/apds9960/apds9960.cpp +407 -0
- esphome/components/apds9960/apds9960.h +76 -0
- esphome/components/apds9960/binary_sensor.py +26 -0
- esphome/components/apds9960/sensor.py +34 -0
- esphome/components/api/__init__.py +802 -0
- esphome/components/api/api_connection.cpp +1983 -0
- esphome/components/api/api_connection.h +739 -0
- esphome/components/api/api_frame_helper.cpp +266 -0
- esphome/components/api/api_frame_helper.h +215 -0
- esphome/components/api/api_frame_helper_noise.cpp +604 -0
- esphome/components/api/api_frame_helper_noise.h +63 -0
- esphome/components/api/api_frame_helper_plaintext.cpp +292 -0
- esphome/components/api/api_frame_helper_plaintext.h +50 -0
- esphome/components/api/api_noise_context.h +30 -0
- esphome/components/api/api_pb2.cpp +3250 -0
- esphome/components/api/api_pb2.h +3072 -0
- esphome/components/api/api_pb2_dump.cpp +2243 -0
- esphome/components/api/api_pb2_includes.h +34 -0
- esphome/components/api/api_pb2_service.cpp +857 -0
- esphome/components/api/api_pb2_service.h +486 -0
- esphome/components/api/api_server.cpp +702 -0
- esphome/components/api/api_server.h +312 -0
- esphome/components/api/client.py +82 -0
- esphome/components/api/custom_api_device.h +296 -0
- esphome/components/api/homeassistant_service.h +243 -0
- esphome/components/api/list_entities.cpp +96 -0
- esphome/components/api/list_entities.h +99 -0
- esphome/components/api/proto.cpp +150 -0
- esphome/components/api/proto.h +892 -0
- esphome/components/api/subscribe_state.cpp +72 -0
- esphome/components/api/subscribe_state.h +92 -0
- esphome/components/api/user_services.cpp +91 -0
- esphome/components/api/user_services.h +307 -0
- esphome/components/as3935/__init__.py +59 -0
- esphome/components/as3935/as3935.cpp +324 -0
- esphome/components/as3935/as3935.h +132 -0
- esphome/components/as3935/binary_sensor.py +19 -0
- esphome/components/as3935/sensor.py +41 -0
- esphome/components/as3935_i2c/__init__.py +26 -0
- esphome/components/as3935_i2c/as3935_i2c.cpp +44 -0
- esphome/components/as3935_i2c/as3935_i2c.h +19 -0
- esphome/components/as3935_spi/__init__.py +26 -0
- esphome/components/as3935_spi/as3935_spi.cpp +46 -0
- esphome/components/as3935_spi/as3935_spi.h +25 -0
- esphome/components/as5600/__init__.py +227 -0
- esphome/components/as5600/as5600.cpp +138 -0
- esphome/components/as5600/as5600.h +104 -0
- esphome/components/as5600/sensor/__init__.py +119 -0
- esphome/components/as5600/sensor/as5600_sensor.cpp +98 -0
- esphome/components/as5600/sensor/as5600_sensor.h +43 -0
- esphome/components/as7341/__init__.py +0 -0
- esphome/components/as7341/as7341.cpp +272 -0
- esphome/components/as7341/as7341.h +144 -0
- esphome/components/as7341/sensor.py +111 -0
- esphome/components/async_tcp/__init__.py +37 -0
- esphome/components/at581x/__init__.py +219 -0
- esphome/components/at581x/at581x.cpp +198 -0
- esphome/components/at581x/at581x.h +62 -0
- esphome/components/at581x/automation.h +71 -0
- esphome/components/at581x/switch/__init__.py +29 -0
- esphome/components/at581x/switch/rf_switch.cpp +12 -0
- esphome/components/at581x/switch/rf_switch.h +15 -0
- esphome/components/atc_mithermometer/__init__.py +0 -0
- esphome/components/atc_mithermometer/atc_mithermometer.cpp +133 -0
- esphome/components/atc_mithermometer/atc_mithermometer.h +50 -0
- esphome/components/atc_mithermometer/sensor.py +100 -0
- esphome/components/atm90e26/__init__.py +1 -0
- esphome/components/atm90e26/atm90e26.cpp +234 -0
- esphome/components/atm90e26/atm90e26.h +72 -0
- esphome/components/atm90e26/atm90e26_reg.h +70 -0
- esphome/components/atm90e26/sensor.py +159 -0
- esphome/components/atm90e32/__init__.py +8 -0
- esphome/components/atm90e32/atm90e32.cpp +1233 -0
- esphome/components/atm90e32/atm90e32.h +275 -0
- esphome/components/atm90e32/atm90e32_reg.h +272 -0
- esphome/components/atm90e32/button/__init__.py +95 -0
- esphome/components/atm90e32/button/atm90e32_button.cpp +79 -0
- esphome/components/atm90e32/button/atm90e32_button.h +59 -0
- esphome/components/atm90e32/number/__init__.py +130 -0
- esphome/components/atm90e32/number/atm90e32_number.h +16 -0
- esphome/components/atm90e32/sensor.py +252 -0
- esphome/components/atm90e32/text_sensor/__init__.py +48 -0
- esphome/components/audio/__init__.py +168 -0
- esphome/components/audio/audio.cpp +67 -0
- esphome/components/audio/audio.h +187 -0
- esphome/components/audio/audio_decoder.cpp +393 -0
- esphome/components/audio/audio_decoder.h +135 -0
- esphome/components/audio/audio_reader.cpp +328 -0
- esphome/components/audio/audio_reader.h +85 -0
- esphome/components/audio/audio_resampler.cpp +163 -0
- esphome/components/audio/audio_resampler.h +102 -0
- esphome/components/audio/audio_transfer_buffer.cpp +175 -0
- esphome/components/audio/audio_transfer_buffer.h +144 -0
- esphome/components/audio_adc/__init__.py +41 -0
- esphome/components/audio_adc/audio_adc.h +17 -0
- esphome/components/audio_adc/automation.h +23 -0
- esphome/components/audio_dac/__init__.py +57 -0
- esphome/components/audio_dac/audio_dac.h +23 -0
- esphome/components/audio_dac/automation.h +43 -0
- esphome/components/axs15231/__init__.py +6 -0
- esphome/components/axs15231/touchscreen/__init__.py +36 -0
- esphome/components/axs15231/touchscreen/axs15231_touchscreen.cpp +68 -0
- esphome/components/axs15231/touchscreen/axs15231_touchscreen.h +27 -0
- esphome/components/b_parasite/__init__.py +0 -0
- esphome/components/b_parasite/b_parasite.cpp +108 -0
- esphome/components/b_parasite/b_parasite.h +41 -0
- esphome/components/b_parasite/sensor.py +92 -0
- esphome/components/ballu/__init__.py +0 -0
- esphome/components/ballu/ballu.cpp +239 -0
- esphome/components/ballu/ballu.h +31 -0
- esphome/components/ballu/climate.py +14 -0
- esphome/components/bang_bang/__init__.py +1 -0
- esphome/components/bang_bang/bang_bang_climate.cpp +232 -0
- esphome/components/bang_bang/bang_bang_climate.h +92 -0
- esphome/components/bang_bang/climate.py +81 -0
- esphome/components/bedjet/__init__.py +48 -0
- esphome/components/bedjet/bedjet_child.h +23 -0
- esphome/components/bedjet/bedjet_codec.cpp +169 -0
- esphome/components/bedjet/bedjet_codec.h +194 -0
- esphome/components/bedjet/bedjet_const.h +105 -0
- esphome/components/bedjet/bedjet_hub.cpp +553 -0
- esphome/components/bedjet/bedjet_hub.h +178 -0
- esphome/components/bedjet/climate/__init__.py +67 -0
- esphome/components/bedjet/climate/bedjet_climate.cpp +351 -0
- esphome/components/bedjet/climate/bedjet_climate.h +85 -0
- esphome/components/bedjet/fan/__init__.py +22 -0
- esphome/components/bedjet/fan/bedjet_fan.cpp +113 -0
- esphome/components/bedjet/fan/bedjet_fan.h +40 -0
- esphome/components/bedjet/sensor/__init__.py +52 -0
- esphome/components/bedjet/sensor/bedjet_sensor.cpp +34 -0
- esphome/components/bedjet/sensor/bedjet_sensor.h +32 -0
- esphome/components/beken_spi_led_strip/__init__.py +0 -0
- esphome/components/beken_spi_led_strip/led_strip.cpp +388 -0
- esphome/components/beken_spi_led_strip/led_strip.h +85 -0
- esphome/components/beken_spi_led_strip/light.py +134 -0
- esphome/components/bh1750/__init__.py +0 -0
- esphome/components/bh1750/bh1750.cpp +168 -0
- esphome/components/bh1750/bh1750.h +33 -0
- esphome/components/bh1750/sensor.py +41 -0
- esphome/components/bh1900nux/__init__.py +0 -0
- esphome/components/bh1900nux/bh1900nux.cpp +54 -0
- esphome/components/bh1900nux/bh1900nux.h +18 -0
- esphome/components/bh1900nux/sensor.py +34 -0
- esphome/components/binary/__init__.py +3 -0
- esphome/components/binary/fan/__init__.py +36 -0
- esphome/components/binary/fan/binary_fan.cpp +40 -0
- esphome/components/binary/fan/binary_fan.h +31 -0
- esphome/components/binary/light/__init__.py +23 -0
- esphome/components/binary/light/binary_light_output.h +33 -0
- esphome/components/binary_sensor/__init__.py +679 -0
- esphome/components/binary_sensor/automation.cpp +120 -0
- esphome/components/binary_sensor/automation.h +174 -0
- esphome/components/binary_sensor/binary_sensor.cpp +71 -0
- esphome/components/binary_sensor/binary_sensor.h +73 -0
- esphome/components/binary_sensor/filter.cpp +133 -0
- esphome/components/binary_sensor/filter.h +140 -0
- esphome/components/binary_sensor_map/__init__.py +0 -0
- esphome/components/binary_sensor_map/binary_sensor_map.cpp +142 -0
- esphome/components/binary_sensor_map/binary_sensor_map.h +100 -0
- esphome/components/binary_sensor_map/sensor.py +105 -0
- esphome/components/bk72xx/__init__.py +52 -0
- esphome/components/bk72xx/boards.py +1264 -0
- esphome/components/bl0906/__init__.py +1 -0
- esphome/components/bl0906/bl0906.cpp +238 -0
- esphome/components/bl0906/bl0906.h +96 -0
- esphome/components/bl0906/const.py +4 -0
- esphome/components/bl0906/constants.h +122 -0
- esphome/components/bl0906/sensor.py +185 -0
- esphome/components/bl0939/__init__.py +1 -0
- esphome/components/bl0939/bl0939.cpp +146 -0
- esphome/components/bl0939/bl0939.h +107 -0
- esphome/components/bl0939/sensor.py +119 -0
- esphome/components/bl0940/__init__.py +6 -0
- esphome/components/bl0940/bl0940.cpp +275 -0
- esphome/components/bl0940/bl0940.h +154 -0
- esphome/components/bl0940/button/__init__.py +27 -0
- esphome/components/bl0940/button/calibration_reset_button.cpp +20 -0
- esphome/components/bl0940/button/calibration_reset_button.h +19 -0
- esphome/components/bl0940/number/__init__.py +94 -0
- esphome/components/bl0940/number/calibration_number.cpp +29 -0
- esphome/components/bl0940/number/calibration_number.h +26 -0
- esphome/components/bl0940/sensor.py +250 -0
- esphome/components/bl0942/__init__.py +1 -0
- esphome/components/bl0942/bl0942.cpp +218 -0
- esphome/components/bl0942/bl0942.h +152 -0
- esphome/components/bl0942/sensor.py +128 -0
- esphome/components/ble_client/__init__.py +316 -0
- esphome/components/ble_client/automation.cpp +11 -0
- esphome/components/ble_client/automation.h +395 -0
- esphome/components/ble_client/ble_client.cpp +86 -0
- esphome/components/ble_client/ble_client.h +79 -0
- esphome/components/ble_client/output/__init__.py +68 -0
- esphome/components/ble_client/output/ble_binary_output.cpp +78 -0
- esphome/components/ble_client/output/ble_binary_output.h +40 -0
- esphome/components/ble_client/sensor/__init__.py +161 -0
- esphome/components/ble_client/sensor/automation.h +39 -0
- esphome/components/ble_client/sensor/ble_rssi_sensor.cpp +81 -0
- esphome/components/ble_client/sensor/ble_rssi_sensor.h +32 -0
- esphome/components/ble_client/sensor/ble_sensor.cpp +150 -0
- esphome/components/ble_client/sensor/ble_sensor.h +51 -0
- esphome/components/ble_client/switch/__init__.py +22 -0
- esphome/components/ble_client/switch/ble_switch.cpp +34 -0
- esphome/components/ble_client/switch/ble_switch.h +27 -0
- esphome/components/ble_client/text_sensor/__init__.py +106 -0
- esphome/components/ble_client/text_sensor/automation.h +37 -0
- esphome/components/ble_client/text_sensor/ble_text_sensor.cpp +141 -0
- esphome/components/ble_client/text_sensor/ble_text_sensor.h +43 -0
- esphome/components/ble_nus/__init__.py +29 -0
- esphome/components/ble_nus/ble_nus.cpp +161 -0
- esphome/components/ble_nus/ble_nus.h +48 -0
- esphome/components/ble_presence/__init__.py +0 -0
- esphome/components/ble_presence/binary_sensor.py +93 -0
- esphome/components/ble_presence/ble_presence_device.cpp +16 -0
- esphome/components/ble_presence/ble_presence_device.h +142 -0
- esphome/components/ble_rssi/__init__.py +0 -0
- esphome/components/ble_rssi/ble_rssi_sensor.cpp +16 -0
- esphome/components/ble_rssi/ble_rssi_sensor.h +125 -0
- esphome/components/ble_rssi/sensor.py +89 -0
- esphome/components/ble_scanner/__init__.py +0 -0
- esphome/components/ble_scanner/ble_scanner.cpp +16 -0
- esphome/components/ble_scanner/ble_scanner.h +37 -0
- esphome/components/ble_scanner/text_sensor.py +25 -0
- esphome/components/bluetooth_proxy/__init__.py +110 -0
- esphome/components/bluetooth_proxy/bluetooth_connection.cpp +579 -0
- esphome/components/bluetooth_proxy/bluetooth_connection.h +56 -0
- esphome/components/bluetooth_proxy/bluetooth_proxy.cpp +455 -0
- esphome/components/bluetooth_proxy/bluetooth_proxy.h +183 -0
- esphome/components/bm8563/__init__.py +1 -0
- esphome/components/bm8563/bm8563.cpp +198 -0
- esphome/components/bm8563/bm8563.h +57 -0
- esphome/components/bm8563/time.py +80 -0
- esphome/components/bme280_base/__init__.py +108 -0
- esphome/components/bme280_base/bme280_base.cpp +357 -0
- esphome/components/bme280_base/bme280_base.h +114 -0
- esphome/components/bme280_i2c/__init__.py +0 -0
- esphome/components/bme280_i2c/bme280_i2c.cpp +30 -0
- esphome/components/bme280_i2c/bme280_i2c.h +20 -0
- esphome/components/bme280_i2c/sensor.py +22 -0
- esphome/components/bme280_spi/__init__.py +0 -0
- esphome/components/bme280_spi/bme280_spi.cpp +65 -0
- esphome/components/bme280_spi/bme280_spi.h +20 -0
- esphome/components/bme280_spi/sensor.py +24 -0
- esphome/components/bme680/__init__.py +0 -0
- esphome/components/bme680/bme680.cpp +514 -0
- esphome/components/bme680/bme680.h +139 -0
- esphome/components/bme680/sensor.py +159 -0
- esphome/components/bme680_bsec/__init__.py +96 -0
- esphome/components/bme680_bsec/bme680_bsec.cpp +565 -0
- esphome/components/bme680_bsec/bme680_bsec.h +137 -0
- esphome/components/bme680_bsec/sensor.py +124 -0
- esphome/components/bme680_bsec/text_sensor.py +33 -0
- esphome/components/bme68x_bsec2/__init__.py +197 -0
- esphome/components/bme68x_bsec2/bme68x_bsec2.cpp +531 -0
- esphome/components/bme68x_bsec2/bme68x_bsec2.h +161 -0
- esphome/components/bme68x_bsec2/sensor.py +130 -0
- esphome/components/bme68x_bsec2/text_sensor.py +33 -0
- esphome/components/bme68x_bsec2_i2c/__init__.py +28 -0
- esphome/components/bme68x_bsec2_i2c/bme68x_bsec2_i2c.cpp +54 -0
- esphome/components/bme68x_bsec2_i2c/bme68x_bsec2_i2c.h +28 -0
- esphome/components/bmi160/__init__.py +1 -0
- esphome/components/bmi160/bmi160.cpp +269 -0
- esphome/components/bmi160/bmi160.h +44 -0
- esphome/components/bmi160/sensor.py +102 -0
- esphome/components/bmp085/__init__.py +0 -0
- esphome/components/bmp085/bmp085.cpp +137 -0
- esphome/components/bmp085/bmp085.h +45 -0
- esphome/components/bmp085/sensor.py +56 -0
- esphome/components/bmp280/__init__.py +0 -0
- esphome/components/bmp280/sensor.py +5 -0
- esphome/components/bmp280_base/__init__.py +88 -0
- esphome/components/bmp280_base/bmp280_base.cpp +273 -0
- esphome/components/bmp280_base/bmp280_base.h +98 -0
- esphome/components/bmp280_i2c/__init__.py +0 -0
- esphome/components/bmp280_i2c/bmp280_i2c.cpp +14 -0
- esphome/components/bmp280_i2c/bmp280_i2c.h +24 -0
- esphome/components/bmp280_i2c/sensor.py +23 -0
- esphome/components/bmp280_spi/__init__.py +0 -0
- esphome/components/bmp280_spi/bmp280_spi.cpp +65 -0
- esphome/components/bmp280_spi/bmp280_spi.h +20 -0
- esphome/components/bmp280_spi/sensor.py +23 -0
- esphome/components/bmp3xx/__init__.py +0 -0
- esphome/components/bmp3xx/sensor.py +7 -0
- esphome/components/bmp3xx_base/__init__.py +95 -0
- esphome/components/bmp3xx_base/bmp3xx_base.cpp +388 -0
- esphome/components/bmp3xx_base/bmp3xx_base.h +242 -0
- esphome/components/bmp3xx_i2c/__init__.py +0 -0
- esphome/components/bmp3xx_i2c/bmp3xx_i2c.cpp +29 -0
- esphome/components/bmp3xx_i2c/bmp3xx_i2c.h +17 -0
- esphome/components/bmp3xx_i2c/sensor.py +23 -0
- esphome/components/bmp3xx_spi/__init__.py +0 -0
- esphome/components/bmp3xx_spi/bmp3xx_spi.cpp +57 -0
- esphome/components/bmp3xx_spi/bmp3xx_spi.h +19 -0
- esphome/components/bmp3xx_spi/sensor.py +23 -0
- esphome/components/bmp581/__init__.py +0 -0
- esphome/components/bmp581/bmp581.cpp +600 -0
- esphome/components/bmp581/bmp581.h +220 -0
- esphome/components/bmp581/sensor.py +164 -0
- esphome/components/bp1658cj/__init__.py +40 -0
- esphome/components/bp1658cj/bp1658cj.cpp +132 -0
- esphome/components/bp1658cj/bp1658cj.h +64 -0
- esphome/components/bp1658cj/output.py +28 -0
- esphome/components/bp5758d/__init__.py +29 -0
- esphome/components/bp5758d/bp5758d.cpp +168 -0
- esphome/components/bp5758d/bp5758d.h +64 -0
- esphome/components/bp5758d/output.py +30 -0
- esphome/components/button/__init__.py +134 -0
- esphome/components/button/automation.h +26 -0
- esphome/components/button/button.cpp +28 -0
- esphome/components/button/button.h +47 -0
- esphome/components/bytebuffer/__init__.py +5 -0
- esphome/components/bytebuffer/bytebuffer.h +421 -0
- esphome/components/camera/__init__.py +1 -0
- esphome/components/camera/buffer.h +18 -0
- esphome/components/camera/buffer_impl.cpp +20 -0
- esphome/components/camera/buffer_impl.h +26 -0
- esphome/components/camera/camera.cpp +22 -0
- esphome/components/camera/camera.h +138 -0
- esphome/components/camera/encoder.h +69 -0
- esphome/components/camera_encoder/__init__.py +60 -0
- esphome/components/camera_encoder/encoder_buffer_impl.cpp +23 -0
- esphome/components/camera_encoder/encoder_buffer_impl.h +25 -0
- esphome/components/camera_encoder/esp32_camera_jpeg_encoder.cpp +84 -0
- esphome/components/camera_encoder/esp32_camera_jpeg_encoder.h +41 -0
- esphome/components/canbus/__init__.py +183 -0
- esphome/components/canbus/canbus.cpp +106 -0
- esphome/components/canbus/canbus.h +184 -0
- esphome/components/cap1188/__init__.py +45 -0
- esphome/components/cap1188/binary_sensor.py +24 -0
- esphome/components/cap1188/cap1188.cpp +104 -0
- esphome/components/cap1188/cap1188.h +71 -0
- esphome/components/captive_portal/__init__.py +115 -0
- esphome/components/captive_portal/captive_index.h +89 -0
- esphome/components/captive_portal/captive_portal.cpp +130 -0
- esphome/components/captive_portal/captive_portal.h +80 -0
- esphome/components/captive_portal/dns_server_esp32_idf.cpp +205 -0
- esphome/components/captive_portal/dns_server_esp32_idf.h +27 -0
- esphome/components/cc1101/__init__.py +220 -0
- esphome/components/cc1101/cc1101.cpp +549 -0
- esphome/components/cc1101/cc1101.h +110 -0
- esphome/components/cc1101/cc1101defs.h +644 -0
- esphome/components/cc1101/cc1101pa.h +174 -0
- esphome/components/ccs811/__init__.py +0 -0
- esphome/components/ccs811/ccs811.cpp +190 -0
- esphome/components/ccs811/ccs811.h +55 -0
- esphome/components/ccs811/sensor.py +87 -0
- esphome/components/cd74hc4067/__init__.py +51 -0
- esphome/components/cd74hc4067/cd74hc4067.cpp +85 -0
- esphome/components/cd74hc4067/cd74hc4067.h +65 -0
- esphome/components/cd74hc4067/sensor.py +56 -0
- esphome/components/ch422g/__init__.py +76 -0
- esphome/components/ch422g/ch422g.cpp +138 -0
- esphome/components/ch422g/ch422g.h +70 -0
- esphome/components/chsc6x/__init__.py +2 -0
- esphome/components/chsc6x/chsc6x_touchscreen.cpp +46 -0
- esphome/components/chsc6x/chsc6x_touchscreen.h +34 -0
- esphome/components/chsc6x/touchscreen.py +33 -0
- esphome/components/climate/__init__.py +517 -0
- esphome/components/climate/automation.h +60 -0
- esphome/components/climate/climate.cpp +764 -0
- esphome/components/climate/climate.h +347 -0
- esphome/components/climate/climate_mode.cpp +109 -0
- esphome/components/climate/climate_mode.h +134 -0
- esphome/components/climate/climate_traits.cpp +13 -0
- esphome/components/climate/climate_traits.h +294 -0
- esphome/components/climate_ir/__init__.py +78 -0
- esphome/components/climate_ir/climate_ir.cpp +99 -0
- esphome/components/climate_ir/climate_ir.h +75 -0
- esphome/components/climate_ir_lg/__init__.py +0 -0
- esphome/components/climate_ir_lg/climate.py +44 -0
- esphome/components/climate_ir_lg/climate_ir_lg.cpp +222 -0
- esphome/components/climate_ir_lg/climate_ir_lg.h +57 -0
- esphome/components/cm1106/__init__.py +1 -0
- esphome/components/cm1106/cm1106.cpp +111 -0
- esphome/components/cm1106/cm1106.h +40 -0
- esphome/components/cm1106/sensor.py +72 -0
- esphome/components/color/__init__.py +109 -0
- esphome/components/color_temperature/__init__.py +0 -0
- esphome/components/color_temperature/ct_light_output.h +38 -0
- esphome/components/color_temperature/light.py +42 -0
- esphome/components/combination/__init__.py +0 -0
- esphome/components/combination/combination.cpp +262 -0
- esphome/components/combination/combination.h +141 -0
- esphome/components/combination/sensor.py +176 -0
- esphome/components/const/__init__.py +17 -0
- esphome/components/coolix/__init__.py +0 -0
- esphome/components/coolix/climate.py +14 -0
- esphome/components/coolix/coolix.cpp +163 -0
- esphome/components/coolix/coolix.h +45 -0
- esphome/components/copy/__init__.py +5 -0
- esphome/components/copy/binary_sensor/__init__.py +41 -0
- esphome/components/copy/binary_sensor/copy_binary_sensor.cpp +18 -0
- esphome/components/copy/binary_sensor/copy_binary_sensor.h +20 -0
- esphome/components/copy/button/__init__.py +41 -0
- esphome/components/copy/button/copy_button.cpp +14 -0
- esphome/components/copy/button/copy_button.h +21 -0
- esphome/components/copy/cover/__init__.py +39 -0
- esphome/components/copy/cover/copy_cover.cpp +51 -0
- esphome/components/copy/cover/copy_cover.h +24 -0
- esphome/components/copy/fan/__init__.py +33 -0
- esphome/components/copy/fan/copy_fan.cpp +58 -0
- esphome/components/copy/fan/copy_fan.h +25 -0
- esphome/components/copy/lock/__init__.py +33 -0
- esphome/components/copy/lock/copy_lock.cpp +29 -0
- esphome/components/copy/lock/copy_lock.h +22 -0
- esphome/components/copy/number/__init__.py +41 -0
- esphome/components/copy/number/copy_number.cpp +29 -0
- esphome/components/copy/number/copy_number.h +22 -0
- esphome/components/copy/select/__init__.py +34 -0
- esphome/components/copy/select/copy_select.cpp +27 -0
- esphome/components/copy/select/copy_select.h +22 -0
- esphome/components/copy/sensor/__init__.py +45 -0
- esphome/components/copy/sensor/copy_sensor.cpp +18 -0
- esphome/components/copy/sensor/copy_sensor.h +20 -0
- esphome/components/copy/switch/__init__.py +39 -0
- esphome/components/copy/switch/copy_switch.cpp +26 -0
- esphome/components/copy/switch/copy_switch.h +22 -0
- esphome/components/copy/text/__init__.py +34 -0
- esphome/components/copy/text/copy_text.cpp +25 -0
- esphome/components/copy/text/copy_text.h +22 -0
- esphome/components/copy/text_sensor/__init__.py +33 -0
- esphome/components/copy/text_sensor/copy_text_sensor.cpp +18 -0
- esphome/components/copy/text_sensor/copy_text_sensor.h +20 -0
- esphome/components/cover/__init__.py +263 -0
- esphome/components/cover/automation.h +133 -0
- esphome/components/cover/cover.cpp +214 -0
- esphome/components/cover/cover.h +160 -0
- esphome/components/cover/cover_traits.h +28 -0
- esphome/components/cs5460a/__init__.py +0 -0
- esphome/components/cs5460a/cs5460a.cpp +343 -0
- esphome/components/cs5460a/cs5460a.h +124 -0
- esphome/components/cs5460a/sensor.py +138 -0
- esphome/components/cse7761/__init__.py +0 -0
- esphome/components/cse7761/cse7761.cpp +243 -0
- esphome/components/cse7761/cse7761.h +52 -0
- esphome/components/cse7761/sensor.py +90 -0
- esphome/components/cse7766/__init__.py +0 -0
- esphome/components/cse7766/cse7766.cpp +239 -0
- esphome/components/cse7766/cse7766.h +52 -0
- esphome/components/cse7766/sensor.py +111 -0
- esphome/components/cst226/__init__.py +6 -0
- esphome/components/cst226/binary_sensor/__init__.py +28 -0
- esphome/components/cst226/binary_sensor/cs226_button.h +22 -0
- esphome/components/cst226/binary_sensor/cstt6_button.cpp +19 -0
- esphome/components/cst226/touchscreen/__init__.py +37 -0
- esphome/components/cst226/touchscreen/cst226_touchscreen.cpp +114 -0
- esphome/components/cst226/touchscreen/cst226_touchscreen.h +44 -0
- esphome/components/cst816/__init__.py +6 -0
- esphome/components/cst816/binary_sensor/__init__.py +5 -0
- esphome/components/cst816/touchscreen/__init__.py +37 -0
- esphome/components/cst816/touchscreen/cst816_touchscreen.cpp +125 -0
- esphome/components/cst816/touchscreen/cst816_touchscreen.h +61 -0
- esphome/components/ct_clamp/__init__.py +0 -0
- esphome/components/ct_clamp/ct_clamp_sensor.cpp +74 -0
- esphome/components/ct_clamp/ct_clamp_sensor.h +54 -0
- esphome/components/ct_clamp/sensor.py +45 -0
- esphome/components/current_based/__init__.py +1 -0
- esphome/components/current_based/cover.py +128 -0
- esphome/components/current_based/current_based_cover.cpp +273 -0
- esphome/components/current_based/current_based_cover.h +97 -0
- esphome/components/custom/__init__.py +0 -0
- esphome/components/custom/binary_sensor/__init__.py +5 -0
- esphome/components/custom/climate/__init__.py +5 -0
- esphome/components/custom/cover/__init__.py +5 -0
- esphome/components/custom/light/__init__.py +5 -0
- esphome/components/custom/output/__init__.py +5 -0
- esphome/components/custom/sensor/__init__.py +5 -0
- esphome/components/custom/switch/__init__.py +5 -0
- esphome/components/custom/text_sensor/__init__.py +5 -0
- esphome/components/custom_component/__init__.py +7 -0
- esphome/components/cwww/__init__.py +0 -0
- esphome/components/cwww/cwww_light_output.h +40 -0
- esphome/components/cwww/light.py +48 -0
- esphome/components/dac7678/__init__.py +32 -0
- esphome/components/dac7678/dac7678_output.cpp +84 -0
- esphome/components/dac7678/dac7678_output.h +55 -0
- esphome/components/dac7678/output.py +28 -0
- esphome/components/daikin/__init__.py +0 -0
- esphome/components/daikin/climate.py +13 -0
- esphome/components/daikin/daikin.cpp +255 -0
- esphome/components/daikin/daikin.h +64 -0
- esphome/components/daikin_arc/__init__.py +1 -0
- esphome/components/daikin_arc/climate.py +13 -0
- esphome/components/daikin_arc/daikin_arc.cpp +492 -0
- esphome/components/daikin_arc/daikin_arc.h +76 -0
- esphome/components/daikin_brc/__init__.py +1 -0
- esphome/components/daikin_brc/climate.py +21 -0
- esphome/components/daikin_brc/daikin_brc.cpp +273 -0
- esphome/components/daikin_brc/daikin_brc.h +82 -0
- esphome/components/dallas/__init__.py +7 -0
- esphome/components/dallas/sensor.py +5 -0
- esphome/components/dallas_temp/__init__.py +1 -0
- esphome/components/dallas_temp/dallas_temp.cpp +160 -0
- esphome/components/dallas_temp/dallas_temp.h +31 -0
- esphome/components/dallas_temp/sensor.py +43 -0
- esphome/components/daly_bms/__init__.py +33 -0
- esphome/components/daly_bms/binary_sensor.py +39 -0
- esphome/components/daly_bms/daly_bms.cpp +327 -0
- esphome/components/daly_bms/daly_bms.h +93 -0
- esphome/components/daly_bms/sensor.py +236 -0
- esphome/components/daly_bms/text_sensor.py +35 -0
- esphome/components/dashboard_import/__init__.py +167 -0
- esphome/components/dashboard_import/dashboard_import.cpp +12 -0
- esphome/components/dashboard_import/dashboard_import.h +10 -0
- esphome/components/datetime/__init__.py +273 -0
- esphome/components/datetime/date_entity.cpp +133 -0
- esphome/components/datetime/date_entity.h +115 -0
- esphome/components/datetime/datetime_base.h +39 -0
- esphome/components/datetime/datetime_entity.cpp +254 -0
- esphome/components/datetime/datetime_entity.h +150 -0
- esphome/components/datetime/time_entity.cpp +156 -0
- esphome/components/datetime/time_entity.h +129 -0
- esphome/components/debug/__init__.py +81 -0
- esphome/components/debug/debug_component.cpp +98 -0
- esphome/components/debug/debug_component.h +92 -0
- esphome/components/debug/debug_esp32.cpp +241 -0
- esphome/components/debug/debug_esp8266.cpp +94 -0
- esphome/components/debug/debug_host.cpp +18 -0
- esphome/components/debug/debug_libretiny.cpp +44 -0
- esphome/components/debug/debug_rp2040.cpp +23 -0
- esphome/components/debug/debug_zephyr.cpp +378 -0
- esphome/components/debug/sensor.py +102 -0
- esphome/components/debug/text_sensor.py +40 -0
- esphome/components/deep_sleep/__init__.py +367 -0
- esphome/components/deep_sleep/deep_sleep_component.cpp +81 -0
- esphome/components/deep_sleep/deep_sleep_component.h +219 -0
- esphome/components/deep_sleep/deep_sleep_esp32.cpp +172 -0
- esphome/components/deep_sleep/deep_sleep_esp8266.cpp +23 -0
- esphome/components/delonghi/__init__.py +1 -0
- esphome/components/delonghi/climate.py +13 -0
- esphome/components/delonghi/delonghi.cpp +186 -0
- esphome/components/delonghi/delonghi.h +64 -0
- esphome/components/demo/__init__.py +629 -0
- esphome/components/demo/demo_alarm_control_panel.h +65 -0
- esphome/components/demo/demo_binary_sensor.h +22 -0
- esphome/components/demo/demo_button.h +15 -0
- esphome/components/demo/demo_climate.h +152 -0
- esphome/components/demo/demo_cover.h +87 -0
- esphome/components/demo/demo_date.h +34 -0
- esphome/components/demo/demo_datetime.h +40 -0
- esphome/components/demo/demo_fan.h +66 -0
- esphome/components/demo/demo_light.h +68 -0
- esphome/components/demo/demo_lock.h +17 -0
- esphome/components/demo/demo_number.h +39 -0
- esphome/components/demo/demo_select.h +15 -0
- esphome/components/demo/demo_sensor.h +29 -0
- esphome/components/demo/demo_switch.h +22 -0
- esphome/components/demo/demo_text.h +18 -0
- esphome/components/demo/demo_text_sensor.h +25 -0
- esphome/components/demo/demo_time.h +34 -0
- esphome/components/demo/demo_valve.h +54 -0
- esphome/components/dfplayer/__init__.py +373 -0
- esphome/components/dfplayer/dfplayer.cpp +276 -0
- esphome/components/dfplayer/dfplayer.h +182 -0
- esphome/components/dfrobot_sen0395/__init__.py +204 -0
- esphome/components/dfrobot_sen0395/automation.h +89 -0
- esphome/components/dfrobot_sen0395/binary_sensor.py +23 -0
- esphome/components/dfrobot_sen0395/commands.cpp +321 -0
- esphome/components/dfrobot_sen0395/commands.h +156 -0
- esphome/components/dfrobot_sen0395/dfrobot_sen0395.cpp +143 -0
- esphome/components/dfrobot_sen0395/dfrobot_sen0395.h +125 -0
- esphome/components/dfrobot_sen0395/switch/__init__.py +63 -0
- esphome/components/dfrobot_sen0395/switch/dfrobot_sen0395_switch.cpp +48 -0
- esphome/components/dfrobot_sen0395/switch/dfrobot_sen0395_switch.h +34 -0
- esphome/components/dht/__init__.py +1 -0
- esphome/components/dht/dht.cpp +237 -0
- esphome/components/dht/dht.h +65 -0
- esphome/components/dht/sensor.py +70 -0
- esphome/components/dht12/__init__.py +0 -0
- esphome/components/dht12/dht12.cpp +69 -0
- esphome/components/dht12/dht12.h +28 -0
- esphome/components/dht12/sensor.py +54 -0
- esphome/components/display/__init__.py +224 -0
- esphome/components/display/display.cpp +929 -0
- esphome/components/display/display.h +875 -0
- esphome/components/display/display_buffer.cpp +72 -0
- esphome/components/display/display_buffer.h +34 -0
- esphome/components/display/display_color_utils.h +159 -0
- esphome/components/display/rect.cpp +94 -0
- esphome/components/display/rect.h +36 -0
- esphome/components/display_menu_base/__init__.py +428 -0
- esphome/components/display_menu_base/automation.h +133 -0
- esphome/components/display_menu_base/display_menu_base.cpp +329 -0
- esphome/components/display_menu_base/display_menu_base.h +82 -0
- esphome/components/display_menu_base/menu_item.cpp +202 -0
- esphome/components/display_menu_base/menu_item.h +191 -0
- esphome/components/dps310/__init__.py +0 -0
- esphome/components/dps310/dps310.cpp +189 -0
- esphome/components/dps310/dps310.h +65 -0
- esphome/components/dps310/sensor.py +62 -0
- esphome/components/ds1307/__init__.py +0 -0
- esphome/components/ds1307/ds1307.cpp +108 -0
- esphome/components/ds1307/ds1307.h +70 -0
- esphome/components/ds1307/time.py +57 -0
- esphome/components/ds2484/__init__.py +1 -0
- esphome/components/ds2484/ds2484.cpp +208 -0
- esphome/components/ds2484/ds2484.h +43 -0
- esphome/components/ds2484/one_wire.py +37 -0
- esphome/components/dsmr/__init__.py +89 -0
- esphome/components/dsmr/dsmr.cpp +335 -0
- esphome/components/dsmr/dsmr.h +146 -0
- esphome/components/dsmr/sensor.py +291 -0
- esphome/components/dsmr/text_sensor.py +52 -0
- esphome/components/duty_cycle/__init__.py +0 -0
- esphome/components/duty_cycle/duty_cycle_sensor.cpp +62 -0
- esphome/components/duty_cycle/duty_cycle_sensor.h +37 -0
- esphome/components/duty_cycle/sensor.py +30 -0
- esphome/components/duty_time/__init__.py +1 -0
- esphome/components/duty_time/duty_time_sensor.cpp +107 -0
- esphome/components/duty_time/duty_time_sensor.h +75 -0
- esphome/components/duty_time/sensor.py +127 -0
- esphome/components/e131/__init__.py +58 -0
- esphome/components/e131/e131.cpp +127 -0
- esphome/components/e131/e131.h +55 -0
- esphome/components/e131/e131_addressable_light_effect.cpp +94 -0
- esphome/components/e131/e131_addressable_light_effect.h +45 -0
- esphome/components/e131/e131_packet.cpp +147 -0
- esphome/components/ee895/__init__.py +0 -0
- esphome/components/ee895/ee895.cpp +114 -0
- esphome/components/ee895/ee895.h +34 -0
- esphome/components/ee895/sensor.py +69 -0
- esphome/components/ektf2232/__init__.py +0 -0
- esphome/components/ektf2232/touchscreen/__init__.py +44 -0
- esphome/components/ektf2232/touchscreen/ektf2232.cpp +134 -0
- esphome/components/ektf2232/touchscreen/ektf2232.h +35 -0
- esphome/components/emc2101/__init__.py +83 -0
- esphome/components/emc2101/emc2101.cpp +169 -0
- esphome/components/emc2101/emc2101.h +115 -0
- esphome/components/emc2101/output/__init__.py +22 -0
- esphome/components/emc2101/output/emc2101_output.cpp +9 -0
- esphome/components/emc2101/output/emc2101_output.h +22 -0
- esphome/components/emc2101/sensor/__init__.py +75 -0
- esphome/components/emc2101/sensor/emc2101_sensor.cpp +43 -0
- esphome/components/emc2101/sensor/emc2101_sensor.h +39 -0
- esphome/components/emmeti/__init__.py +0 -0
- esphome/components/emmeti/climate.py +14 -0
- esphome/components/emmeti/emmeti.cpp +316 -0
- esphome/components/emmeti/emmeti.h +109 -0
- esphome/components/endstop/__init__.py +0 -0
- esphome/components/endstop/cover.py +60 -0
- esphome/components/endstop/endstop_cover.cpp +193 -0
- esphome/components/endstop/endstop_cover.h +58 -0
- esphome/components/ens160/__init__.py +0 -0
- esphome/components/ens160/sensor.py +7 -0
- esphome/components/ens160_base/__init__.py +81 -0
- esphome/components/ens160_base/ens160_base.cpp +318 -0
- esphome/components/ens160_base/ens160_base.h +63 -0
- esphome/components/ens160_i2c/__init__.py +0 -0
- esphome/components/ens160_i2c/ens160_i2c.cpp +32 -0
- esphome/components/ens160_i2c/ens160_i2c.h +19 -0
- esphome/components/ens160_i2c/sensor.py +23 -0
- esphome/components/ens160_spi/__init__.py +0 -0
- esphome/components/ens160_spi/ens160_spi.cpp +59 -0
- esphome/components/ens160_spi/ens160_spi.h +22 -0
- esphome/components/ens160_spi/sensor.py +23 -0
- esphome/components/ens210/__init__.py +0 -0
- esphome/components/ens210/ens210.cpp +229 -0
- esphome/components/ens210/ens210.h +39 -0
- esphome/components/ens210/sensor.py +58 -0
- esphome/components/epaper_spi/__init__.py +1 -0
- esphome/components/epaper_spi/display.py +233 -0
- esphome/components/epaper_spi/epaper_spi.cpp +346 -0
- esphome/components/epaper_spi/epaper_spi.h +181 -0
- esphome/components/epaper_spi/epaper_spi_spectra_e6.cpp +159 -0
- esphome/components/epaper_spi/epaper_spi_spectra_e6.h +28 -0
- esphome/components/epaper_spi/epaper_spi_ssd1677.cpp +86 -0
- esphome/components/epaper_spi/epaper_spi_ssd1677.h +25 -0
- esphome/components/epaper_spi/models/__init__.py +65 -0
- esphome/components/epaper_spi/models/spectra_e6.py +55 -0
- esphome/components/epaper_spi/models/ssd1677.py +42 -0
- esphome/components/es7210/__init__.py +0 -0
- esphome/components/es7210/audio_adc.py +51 -0
- esphome/components/es7210/es7210.cpp +228 -0
- esphome/components/es7210/es7210.h +61 -0
- esphome/components/es7210/es7210_const.h +129 -0
- esphome/components/es7243e/__init__.py +0 -0
- esphome/components/es7243e/audio_adc.py +34 -0
- esphome/components/es7243e/es7243e.cpp +123 -0
- esphome/components/es7243e/es7243e.h +36 -0
- esphome/components/es7243e/es7243e_const.h +54 -0
- esphome/components/es8156/__init__.py +0 -0
- esphome/components/es8156/audio_dac.py +27 -0
- esphome/components/es8156/es8156.cpp +85 -0
- esphome/components/es8156/es8156.h +50 -0
- esphome/components/es8156/es8156_const.h +68 -0
- esphome/components/es8311/__init__.py +0 -0
- esphome/components/es8311/audio_dac.py +67 -0
- esphome/components/es8311/es8311.cpp +227 -0
- esphome/components/es8311/es8311.h +134 -0
- esphome/components/es8311/es8311_const.h +195 -0
- esphome/components/es8388/__init__.py +0 -0
- esphome/components/es8388/audio_dac.py +26 -0
- esphome/components/es8388/es8388.cpp +287 -0
- esphome/components/es8388/es8388.h +80 -0
- esphome/components/es8388/es8388_const.h +83 -0
- esphome/components/es8388/select/__init__.py +47 -0
- esphome/components/es8388/select/adc_input_mic_select.cpp +12 -0
- esphome/components/es8388/select/adc_input_mic_select.h +15 -0
- esphome/components/es8388/select/dac_output_select.cpp +12 -0
- esphome/components/es8388/select/dac_output_select.h +15 -0
- esphome/components/esp32/__init__.py +1323 -0
- esphome/components/esp32/boards.py +2536 -0
- esphome/components/esp32/const.py +51 -0
- esphome/components/esp32/core.cpp +114 -0
- esphome/components/esp32/gpio.cpp +209 -0
- esphome/components/esp32/gpio.h +57 -0
- esphome/components/esp32/gpio.py +239 -0
- esphome/components/esp32/gpio_esp32.py +70 -0
- esphome/components/esp32/gpio_esp32_c2.py +32 -0
- esphome/components/esp32/gpio_esp32_c3.py +45 -0
- esphome/components/esp32/gpio_esp32_c5.py +58 -0
- esphome/components/esp32/gpio_esp32_c6.py +58 -0
- esphome/components/esp32/gpio_esp32_c61.py +46 -0
- esphome/components/esp32/gpio_esp32_h2.py +47 -0
- esphome/components/esp32/gpio_esp32_p4.py +52 -0
- esphome/components/esp32/gpio_esp32_s2.py +74 -0
- esphome/components/esp32/gpio_esp32_s3.py +64 -0
- esphome/components/esp32/helpers.cpp +109 -0
- esphome/components/esp32/iram_fix.py.script +71 -0
- esphome/components/esp32/post_build.py.script +128 -0
- esphome/components/esp32/pre_build.py.script +9 -0
- esphome/components/esp32/preferences.cpp +209 -0
- esphome/components/esp32/preferences.h +12 -0
- esphome/components/esp32_ble/__init__.py +553 -0
- esphome/components/esp32_ble/ble.cpp +673 -0
- esphome/components/esp32_ble/ble.h +230 -0
- esphome/components/esp32_ble/ble_advertising.cpp +170 -0
- esphome/components/esp32_ble/ble_advertising.h +69 -0
- esphome/components/esp32_ble/ble_event.h +467 -0
- esphome/components/esp32_ble/ble_scan_result.h +22 -0
- esphome/components/esp32_ble/ble_uuid.cpp +190 -0
- esphome/components/esp32_ble/ble_uuid.h +48 -0
- esphome/components/esp32_ble_beacon/__init__.py +90 -0
- esphome/components/esp32_ble_beacon/esp32_ble_beacon.cpp +127 -0
- esphome/components/esp32_ble_beacon/esp32_ble_beacon.h +71 -0
- esphome/components/esp32_ble_client/__init__.py +11 -0
- esphome/components/esp32_ble_client/ble_characteristic.cpp +99 -0
- esphome/components/esp32_ble_client/ble_characteristic.h +41 -0
- esphome/components/esp32_ble_client/ble_client_base.cpp +683 -0
- esphome/components/esp32_ble_client/ble_client_base.h +148 -0
- esphome/components/esp32_ble_client/ble_descriptor.h +27 -0
- esphome/components/esp32_ble_client/ble_service.cpp +77 -0
- esphome/components/esp32_ble_client/ble_service.h +38 -0
- esphome/components/esp32_ble_server/__init__.py +649 -0
- esphome/components/esp32_ble_server/ble_2902.cpp +20 -0
- esphome/components/esp32_ble_server/ble_2902.h +18 -0
- esphome/components/esp32_ble_server/ble_characteristic.cpp +328 -0
- esphome/components/esp32_ble_server/ble_characteristic.h +120 -0
- esphome/components/esp32_ble_server/ble_descriptor.cpp +93 -0
- esphome/components/esp32_ble_server/ble_descriptor.h +69 -0
- esphome/components/esp32_ble_server/ble_server.cpp +239 -0
- esphome/components/esp32_ble_server/ble_server.h +116 -0
- esphome/components/esp32_ble_server/ble_server_automations.cpp +93 -0
- esphome/components/esp32_ble_server/ble_server_automations.h +130 -0
- esphome/components/esp32_ble_server/ble_service.cpp +179 -0
- esphome/components/esp32_ble_server/ble_service.h +86 -0
- esphome/components/esp32_ble_tracker/__init__.py +451 -0
- esphome/components/esp32_ble_tracker/automation.h +115 -0
- esphome/components/esp32_ble_tracker/esp32_ble_tracker.cpp +868 -0
- esphome/components/esp32_ble_tracker/esp32_ble_tracker.h +389 -0
- esphome/components/esp32_camera/__init__.py +368 -0
- esphome/components/esp32_camera/esp32_camera.cpp +443 -0
- esphome/components/esp32_camera/esp32_camera.h +247 -0
- esphome/components/esp32_camera_web_server/__init__.py +44 -0
- esphome/components/esp32_camera_web_server/camera_web_server.cpp +248 -0
- esphome/components/esp32_camera_web_server/camera_web_server.h +54 -0
- esphome/components/esp32_can/__init__.py +0 -0
- esphome/components/esp32_can/canbus.py +130 -0
- esphome/components/esp32_can/esp32_can.cpp +177 -0
- esphome/components/esp32_can/esp32_can.h +40 -0
- esphome/components/esp32_dac/__init__.py +0 -0
- esphome/components/esp32_dac/esp32_dac.cpp +47 -0
- esphome/components/esp32_dac/esp32_dac.h +36 -0
- esphome/components/esp32_dac/output.py +46 -0
- esphome/components/esp32_hall/__init__.py +0 -0
- esphome/components/esp32_hall/sensor.py +5 -0
- esphome/components/esp32_hosted/__init__.py +107 -0
- esphome/components/esp32_hosted/esp32_hosted.py.script +12 -0
- esphome/components/esp32_hosted/update/__init__.py +78 -0
- esphome/components/esp32_hosted/update/esp32_hosted_update.cpp +169 -0
- esphome/components/esp32_hosted/update/esp32_hosted_update.h +32 -0
- esphome/components/esp32_improv/__init__.py +158 -0
- esphome/components/esp32_improv/automation.h +72 -0
- esphome/components/esp32_improv/esp32_improv_component.cpp +482 -0
- esphome/components/esp32_improv/esp32_improv_component.h +130 -0
- esphome/components/esp32_rmt/__init__.py +22 -0
- esphome/components/esp32_rmt_led_strip/__init__.py +0 -0
- esphome/components/esp32_rmt_led_strip/led_strip.cpp +309 -0
- esphome/components/esp32_rmt_led_strip/led_strip.h +106 -0
- esphome/components/esp32_rmt_led_strip/light.py +170 -0
- esphome/components/esp32_touch/__init__.py +325 -0
- esphome/components/esp32_touch/binary_sensor.py +36 -0
- esphome/components/esp32_touch/esp32_touch.h +271 -0
- esphome/components/esp32_touch/esp32_touch_common.cpp +164 -0
- esphome/components/esp32_touch/esp32_touch_v1.cpp +244 -0
- esphome/components/esp32_touch/esp32_touch_v2.cpp +401 -0
- esphome/components/esp8266/__init__.py +280 -0
- esphome/components/esp8266/boards.py +362 -0
- esphome/components/esp8266/const.py +11 -0
- esphome/components/esp8266/core.cpp +73 -0
- esphome/components/esp8266/core.h +12 -0
- esphome/components/esp8266/gpio.cpp +183 -0
- esphome/components/esp8266/gpio.h +37 -0
- esphome/components/esp8266/gpio.py +212 -0
- esphome/components/esp8266/helpers.cpp +35 -0
- esphome/components/esp8266/post_build.py.script +23 -0
- esphome/components/esp8266/preferences.cpp +293 -0
- esphome/components/esp8266/preferences.h +12 -0
- esphome/components/esp8266/testing_mode.py.script +166 -0
- esphome/components/esp8266_pwm/__init__.py +0 -0
- esphome/components/esp8266_pwm/esp8266_pwm.cpp +57 -0
- esphome/components/esp8266_pwm/esp8266_pwm.h +54 -0
- esphome/components/esp8266_pwm/output.py +63 -0
- esphome/components/esp_ldo/__init__.py +93 -0
- esphome/components/esp_ldo/esp_ldo.cpp +43 -0
- esphome/components/esp_ldo/esp_ldo.h +46 -0
- esphome/components/esphome/ota/__init__.py +166 -0
- esphome/components/esphome/ota/ota_esphome.cpp +802 -0
- esphome/components/esphome/ota/ota_esphome.h +103 -0
- esphome/components/espnow/__init__.py +314 -0
- esphome/components/espnow/automation.h +175 -0
- esphome/components/espnow/espnow_component.cpp +486 -0
- esphome/components/espnow/espnow_component.h +183 -0
- esphome/components/espnow/espnow_err.h +19 -0
- esphome/components/espnow/espnow_packet.h +166 -0
- esphome/components/espnow/packet_transport/__init__.py +39 -0
- esphome/components/espnow/packet_transport/espnow_transport.cpp +97 -0
- esphome/components/espnow/packet_transport/espnow_transport.h +44 -0
- esphome/components/ethernet/__init__.py +470 -0
- esphome/components/ethernet/esp_eth_phy_jl1101.c +344 -0
- esphome/components/ethernet/ethernet_component.cpp +813 -0
- esphome/components/ethernet/ethernet_component.h +180 -0
- esphome/components/ethernet_info/__init__.py +1 -0
- esphome/components/ethernet_info/ethernet_info_text_sensor.cpp +18 -0
- esphome/components/ethernet_info/ethernet_info_text_sensor.h +70 -0
- esphome/components/ethernet_info/text_sensor.py +64 -0
- esphome/components/event/__init__.py +143 -0
- esphome/components/event/automation.h +25 -0
- esphome/components/event/event.cpp +53 -0
- esphome/components/event/event.h +63 -0
- esphome/components/exposure_notifications/__init__.py +39 -0
- esphome/components/exposure_notifications/exposure_notifications.cpp +49 -0
- esphome/components/exposure_notifications/exposure_notifications.h +29 -0
- esphome/components/external_components/__init__.py +118 -0
- esphome/components/ezo/__init__.py +0 -0
- esphome/components/ezo/automation.h +53 -0
- esphome/components/ezo/ezo.cpp +235 -0
- esphome/components/ezo/ezo.h +110 -0
- esphome/components/ezo/sensor.py +114 -0
- esphome/components/ezo_pmp/__init__.py +296 -0
- esphome/components/ezo_pmp/binary_sensor.py +42 -0
- esphome/components/ezo_pmp/ezo_pmp.cpp +543 -0
- esphome/components/ezo_pmp/ezo_pmp.h +251 -0
- esphome/components/ezo_pmp/sensor.py +103 -0
- esphome/components/ezo_pmp/text_sensor.py +35 -0
- esphome/components/factory_reset/__init__.py +97 -0
- esphome/components/factory_reset/button/__init__.py +28 -0
- esphome/components/factory_reset/button/factory_reset_button.cpp +38 -0
- esphome/components/factory_reset/button/factory_reset_button.h +23 -0
- esphome/components/factory_reset/factory_reset.cpp +76 -0
- esphome/components/factory_reset/factory_reset.h +43 -0
- esphome/components/factory_reset/switch/__init__.py +22 -0
- esphome/components/factory_reset/switch/factory_reset_switch.cpp +43 -0
- esphome/components/factory_reset/switch/factory_reset_switch.h +22 -0
- esphome/components/fan/__init__.py +398 -0
- esphome/components/fan/automation.h +231 -0
- esphome/components/fan/fan.cpp +276 -0
- esphome/components/fan/fan.h +165 -0
- esphome/components/fan/fan_traits.h +69 -0
- esphome/components/fastled_base/__init__.py +45 -0
- esphome/components/fastled_base/fastled_light.cpp +44 -0
- esphome/components/fastled_base/fastled_light.h +243 -0
- esphome/components/fastled_clockless/__init__.py +0 -0
- esphome/components/fastled_clockless/light.py +85 -0
- esphome/components/fastled_spi/__init__.py +0 -0
- esphome/components/fastled_spi/light.py +75 -0
- esphome/components/feedback/__init__.py +1 -0
- esphome/components/feedback/cover.py +162 -0
- esphome/components/feedback/feedback_cover.cpp +447 -0
- esphome/components/feedback/feedback_cover.h +89 -0
- esphome/components/fingerprint_grow/__init__.py +372 -0
- esphome/components/fingerprint_grow/binary_sensor.py +21 -0
- esphome/components/fingerprint_grow/fingerprint_grow.cpp +576 -0
- esphome/components/fingerprint_grow/fingerprint_grow.h +336 -0
- esphome/components/fingerprint_grow/sensor.py +74 -0
- esphome/components/font/__init__.py +625 -0
- esphome/components/font/font.cpp +288 -0
- esphome/components/font/font.h +102 -0
- esphome/components/fs3000/__init__.py +0 -0
- esphome/components/fs3000/fs3000.cpp +105 -0
- esphome/components/fs3000/fs3000.h +34 -0
- esphome/components/fs3000/sensor.py +46 -0
- esphome/components/ft5x06/__init__.py +6 -0
- esphome/components/ft5x06/touchscreen/__init__.py +32 -0
- esphome/components/ft5x06/touchscreen/ft5x06_touchscreen.cpp +103 -0
- esphome/components/ft5x06/touchscreen/ft5x06_touchscreen.h +56 -0
- esphome/components/ft63x6/__init__.py +1 -0
- esphome/components/ft63x6/ft63x6.cpp +137 -0
- esphome/components/ft63x6/ft63x6.h +51 -0
- esphome/components/ft63x6/touchscreen.py +44 -0
- esphome/components/fujitsu_general/__init__.py +0 -0
- esphome/components/fujitsu_general/climate.py +15 -0
- esphome/components/fujitsu_general/fujitsu_general.cpp +404 -0
- esphome/components/fujitsu_general/fujitsu_general.h +82 -0
- esphome/components/gcja5/__init__.py +1 -0
- esphome/components/gcja5/gcja5.cpp +109 -0
- esphome/components/gcja5/gcja5.h +56 -0
- esphome/components/gcja5/sensor.py +118 -0
- esphome/components/gdk101/__init__.py +32 -0
- esphome/components/gdk101/binary_sensor.py +30 -0
- esphome/components/gdk101/gdk101.cpp +191 -0
- esphome/components/gdk101/gdk101.h +57 -0
- esphome/components/gdk101/sensor.py +79 -0
- esphome/components/gdk101/text_sensor.py +23 -0
- esphome/components/gl_r01_i2c/__init__.py +0 -0
- esphome/components/gl_r01_i2c/gl_r01_i2c.cpp +67 -0
- esphome/components/gl_r01_i2c/gl_r01_i2c.h +22 -0
- esphome/components/gl_r01_i2c/sensor.py +36 -0
- esphome/components/globals/__init__.py +88 -0
- esphome/components/globals/globals_component.h +148 -0
- esphome/components/gp2y1010au0f/__init__.py +0 -0
- esphome/components/gp2y1010au0f/gp2y1010au0f.cpp +69 -0
- esphome/components/gp2y1010au0f/gp2y1010au0f.h +52 -0
- esphome/components/gp2y1010au0f/sensor.py +61 -0
- esphome/components/gp8403/__init__.py +46 -0
- esphome/components/gp8403/gp8403.cpp +55 -0
- esphome/components/gp8403/gp8403.h +35 -0
- esphome/components/gp8403/output/__init__.py +30 -0
- esphome/components/gp8403/output/gp8403_output.cpp +20 -0
- esphome/components/gp8403/output/gp8403_output.h +23 -0
- esphome/components/gpio/__init__.py +4 -0
- esphome/components/gpio/binary_sensor/__init__.py +102 -0
- esphome/components/gpio/binary_sensor/gpio_binary_sensor.cpp +101 -0
- esphome/components/gpio/binary_sensor/gpio_binary_sensor.h +68 -0
- esphome/components/gpio/one_wire/__init__.py +26 -0
- esphome/components/gpio/one_wire/gpio_one_wire.cpp +206 -0
- esphome/components/gpio/one_wire/gpio_one_wire.h +42 -0
- esphome/components/gpio/output/__init__.py +25 -0
- esphome/components/gpio/output/gpio_binary_output.cpp +16 -0
- esphome/components/gpio/output/gpio_binary_output.h +29 -0
- esphome/components/gpio/switch/__init__.py +40 -0
- esphome/components/gpio/switch/gpio_switch.cpp +73 -0
- esphome/components/gpio/switch/gpio_switch.h +33 -0
- esphome/components/gpio_expander/__init__.py +0 -0
- esphome/components/gpio_expander/cached_gpio.h +82 -0
- esphome/components/gps/__init__.py +130 -0
- esphome/components/gps/gps.cpp +95 -0
- esphome/components/gps/gps.h +71 -0
- esphome/components/gps/time/__init__.py +28 -0
- esphome/components/gps/time/gps_time.cpp +32 -0
- esphome/components/gps/time/gps_time.h +25 -0
- esphome/components/graph/__init__.py +219 -0
- esphome/components/graph/graph.cpp +397 -0
- esphome/components/graph/graph.h +187 -0
- esphome/components/graphical_display_menu/__init__.py +100 -0
- esphome/components/graphical_display_menu/graphical_display_menu.cpp +250 -0
- esphome/components/graphical_display_menu/graphical_display_menu.h +84 -0
- esphome/components/gree/__init__.py +3 -0
- esphome/components/gree/climate.py +33 -0
- esphome/components/gree/gree.cpp +252 -0
- esphome/components/gree/gree.h +109 -0
- esphome/components/gree/switch/__init__.py +74 -0
- esphome/components/gree/switch/gree_switch.cpp +24 -0
- esphome/components/gree/switch/gree_switch.h +24 -0
- esphome/components/grove_gas_mc_v2/__init__.py +0 -0
- esphome/components/grove_gas_mc_v2/grove_gas_mc_v2.cpp +86 -0
- esphome/components/grove_gas_mc_v2/grove_gas_mc_v2.h +37 -0
- esphome/components/grove_gas_mc_v2/sensor.py +77 -0
- esphome/components/grove_tb6612fng/__init__.py +176 -0
- esphome/components/grove_tb6612fng/grove_tb6612fng.cpp +170 -0
- esphome/components/grove_tb6612fng/grove_tb6612fng.h +215 -0
- esphome/components/growatt_solar/__init__.py +0 -0
- esphome/components/growatt_solar/growatt_solar.cpp +145 -0
- esphome/components/growatt_solar/growatt_solar.h +87 -0
- esphome/components/growatt_solar/sensor.py +212 -0
- esphome/components/gt911/__init__.py +6 -0
- esphome/components/gt911/binary_sensor/__init__.py +31 -0
- esphome/components/gt911/binary_sensor/gt911_button.cpp +27 -0
- esphome/components/gt911/binary_sensor/gt911_button.h +28 -0
- esphome/components/gt911/touchscreen/__init__.py +33 -0
- esphome/components/gt911/touchscreen/gt911_touchscreen.cpp +146 -0
- esphome/components/gt911/touchscreen/gt911_touchscreen.h +59 -0
- esphome/components/haier/__init__.py +0 -0
- esphome/components/haier/automation.h +130 -0
- esphome/components/haier/binary_sensor/__init__.py +65 -0
- esphome/components/haier/button/__init__.py +38 -0
- esphome/components/haier/button/self_cleaning.cpp +9 -0
- esphome/components/haier/button/self_cleaning.h +18 -0
- esphome/components/haier/button/steri_cleaning.cpp +9 -0
- esphome/components/haier/button/steri_cleaning.h +18 -0
- esphome/components/haier/climate.py +521 -0
- esphome/components/haier/haier_base.cpp +427 -0
- esphome/components/haier/haier_base.h +186 -0
- esphome/components/haier/hon_climate.cpp +1384 -0
- esphome/components/haier/hon_climate.h +214 -0
- esphome/components/haier/hon_packet.h +260 -0
- esphome/components/haier/logger_handler.cpp +33 -0
- esphome/components/haier/logger_handler.h +14 -0
- esphome/components/haier/sensor/__init__.py +150 -0
- esphome/components/haier/smartair2_climate.cpp +553 -0
- esphome/components/haier/smartair2_climate.h +40 -0
- esphome/components/haier/smartair2_packet.h +88 -0
- esphome/components/haier/switch/__init__.py +88 -0
- esphome/components/haier/switch/beeper.cpp +14 -0
- esphome/components/haier/switch/beeper.h +18 -0
- esphome/components/haier/switch/display.cpp +14 -0
- esphome/components/haier/switch/display.h +18 -0
- esphome/components/haier/switch/health_mode.cpp +14 -0
- esphome/components/haier/switch/health_mode.h +18 -0
- esphome/components/haier/switch/quiet_mode.cpp +14 -0
- esphome/components/haier/switch/quiet_mode.h +18 -0
- esphome/components/haier/text_sensor/__init__.py +49 -0
- esphome/components/havells_solar/__init__.py +0 -0
- esphome/components/havells_solar/havells_solar.cpp +168 -0
- esphome/components/havells_solar/havells_solar.h +117 -0
- esphome/components/havells_solar/havells_solar_registers.h +49 -0
- esphome/components/havells_solar/sensor.py +291 -0
- esphome/components/hbridge/__init__.py +3 -0
- esphome/components/hbridge/fan/__init__.py +78 -0
- esphome/components/hbridge/fan/hbridge_fan.cpp +94 -0
- esphome/components/hbridge/fan/hbridge_fan.h +58 -0
- esphome/components/hbridge/light/__init__.py +31 -0
- esphome/components/hbridge/light/hbridge_light_output.h +58 -0
- esphome/components/hbridge/switch/__init__.py +44 -0
- esphome/components/hbridge/switch/hbridge_switch.cpp +93 -0
- esphome/components/hbridge/switch/hbridge_switch.h +50 -0
- esphome/components/hc8/__init__.py +1 -0
- esphome/components/hc8/hc8.cpp +99 -0
- esphome/components/hc8/hc8.h +37 -0
- esphome/components/hc8/sensor.py +79 -0
- esphome/components/hdc1080/__init__.py +0 -0
- esphome/components/hdc1080/hdc1080.cpp +82 -0
- esphome/components/hdc1080/hdc1080.h +27 -0
- esphome/components/hdc1080/sensor.py +56 -0
- esphome/components/hdc2010/__init__.py +1 -0
- esphome/components/hdc2010/hdc2010.cpp +111 -0
- esphome/components/hdc2010/hdc2010.h +32 -0
- esphome/components/hdc2010/sensor.py +56 -0
- esphome/components/he60r/__init__.py +1 -0
- esphome/components/he60r/cover.py +42 -0
- esphome/components/he60r/he60r.cpp +265 -0
- esphome/components/he60r/he60r.h +45 -0
- esphome/components/heatpumpir/__init__.py +0 -0
- esphome/components/heatpumpir/climate.py +131 -0
- esphome/components/heatpumpir/heatpumpir.cpp +213 -0
- esphome/components/heatpumpir/heatpumpir.h +132 -0
- esphome/components/heatpumpir/ir_sender_esphome.cpp +32 -0
- esphome/components/heatpumpir/ir_sender_esphome.h +25 -0
- esphome/components/hitachi_ac344/__init__.py +0 -0
- esphome/components/hitachi_ac344/climate.py +13 -0
- esphome/components/hitachi_ac344/hitachi_ac344.cpp +370 -0
- esphome/components/hitachi_ac344/hitachi_ac344.h +121 -0
- esphome/components/hitachi_ac424/__init__.py +1 -0
- esphome/components/hitachi_ac424/climate.py +13 -0
- esphome/components/hitachi_ac424/hitachi_ac424.cpp +371 -0
- esphome/components/hitachi_ac424/hitachi_ac424.h +123 -0
- esphome/components/hlk_fm22x/__init__.py +247 -0
- esphome/components/hlk_fm22x/binary_sensor.py +21 -0
- esphome/components/hlk_fm22x/hlk_fm22x.cpp +325 -0
- esphome/components/hlk_fm22x/hlk_fm22x.h +224 -0
- esphome/components/hlk_fm22x/sensor.py +47 -0
- esphome/components/hlk_fm22x/text_sensor.py +42 -0
- esphome/components/hlw8012/__init__.py +0 -0
- esphome/components/hlw8012/hlw8012.cpp +109 -0
- esphome/components/hlw8012/hlw8012.h +77 -0
- esphome/components/hlw8012/sensor.py +124 -0
- esphome/components/hlw8032/__init__.py +1 -0
- esphome/components/hlw8032/hlw8032.cpp +194 -0
- esphome/components/hlw8032/hlw8032.h +44 -0
- esphome/components/hlw8032/sensor.py +93 -0
- esphome/components/hm3301/__init__.py +0 -0
- esphome/components/hm3301/abstract_aqi_calculator.h +14 -0
- esphome/components/hm3301/aqi_calculator.h +50 -0
- esphome/components/hm3301/aqi_calculator_factory.h +29 -0
- esphome/components/hm3301/caqi_calculator.h +52 -0
- esphome/components/hm3301/hm3301.cpp +100 -0
- esphome/components/hm3301/hm3301.h +52 -0
- esphome/components/hm3301/sensor.py +111 -0
- esphome/components/hmac_md5/__init__.py +2 -0
- esphome/components/hmac_md5/hmac_md5.cpp +58 -0
- esphome/components/hmac_md5/hmac_md5.h +49 -0
- esphome/components/hmc5883l/__init__.py +0 -0
- esphome/components/hmc5883l/hmc5883l.cpp +145 -0
- esphome/components/hmc5883l/hmc5883l.h +70 -0
- esphome/components/hmc5883l/sensor.py +142 -0
- esphome/components/homeassistant/__init__.py +41 -0
- esphome/components/homeassistant/binary_sensor/__init__.py +24 -0
- esphome/components/homeassistant/binary_sensor/homeassistant_binary_sensor.cpp +47 -0
- esphome/components/homeassistant/binary_sensor/homeassistant_binary_sensor.h +24 -0
- esphome/components/homeassistant/number/__init__.py +34 -0
- esphome/components/homeassistant/number/homeassistant_number.cpp +103 -0
- esphome/components/homeassistant/number/homeassistant_number.h +31 -0
- esphome/components/homeassistant/sensor/__init__.py +24 -0
- esphome/components/homeassistant/sensor/homeassistant_sensor.cpp +38 -0
- esphome/components/homeassistant/sensor/homeassistant_sensor.h +23 -0
- esphome/components/homeassistant/switch/__init__.py +44 -0
- esphome/components/homeassistant/switch/homeassistant_switch.cpp +63 -0
- esphome/components/homeassistant/switch/homeassistant_switch.h +22 -0
- esphome/components/homeassistant/text_sensor/__init__.py +24 -0
- esphome/components/homeassistant/text_sensor/homeassistant_text_sensor.cpp +30 -0
- esphome/components/homeassistant/text_sensor/homeassistant_text_sensor.h +23 -0
- esphome/components/homeassistant/time/__init__.py +23 -0
- esphome/components/homeassistant/time/homeassistant_time.cpp +22 -0
- esphome/components/homeassistant/time/homeassistant_time.h +22 -0
- esphome/components/honeywell_hih_i2c/__init__.py +3 -0
- esphome/components/honeywell_hih_i2c/honeywell_hih.cpp +97 -0
- esphome/components/honeywell_hih_i2c/honeywell_hih.h +34 -0
- esphome/components/honeywell_hih_i2c/sensor.py +56 -0
- esphome/components/honeywellabp/__init__.py +1 -0
- esphome/components/honeywellabp/honeywellabp.cpp +101 -0
- esphome/components/honeywellabp/honeywellabp.h +45 -0
- esphome/components/honeywellabp/sensor.py +68 -0
- esphome/components/honeywellabp2_i2c/__init__.py +3 -0
- esphome/components/honeywellabp2_i2c/honeywellabp2.cpp +111 -0
- esphome/components/honeywellabp2_i2c/honeywellabp2.h +59 -0
- esphome/components/honeywellabp2_i2c/sensor.py +74 -0
- esphome/components/host/__init__.py +50 -0
- esphome/components/host/const.py +5 -0
- esphome/components/host/core.cpp +77 -0
- esphome/components/host/gpio.cpp +59 -0
- esphome/components/host/gpio.h +38 -0
- esphome/components/host/gpio.py +65 -0
- esphome/components/host/helpers.cpp +57 -0
- esphome/components/host/preferences.cpp +87 -0
- esphome/components/host/preferences.h +67 -0
- esphome/components/host/time/__init__.py +20 -0
- esphome/components/host/time/host_time.h +15 -0
- esphome/components/hrxl_maxsonar_wr/__init__.py +0 -0
- esphome/components/hrxl_maxsonar_wr/hrxl_maxsonar_wr.cpp +77 -0
- esphome/components/hrxl_maxsonar_wr/hrxl_maxsonar_wr.h +25 -0
- esphome/components/hrxl_maxsonar_wr/sensor.py +29 -0
- esphome/components/hte501/__init__.py +0 -0
- esphome/components/hte501/hte501.cpp +71 -0
- esphome/components/hte501/hte501.h +29 -0
- esphome/components/hte501/sensor.py +58 -0
- esphome/components/http_request/__init__.py +339 -0
- esphome/components/http_request/http_request.cpp +46 -0
- esphome/components/http_request/http_request.h +306 -0
- esphome/components/http_request/http_request_arduino.cpp +183 -0
- esphome/components/http_request/http_request_arduino.h +42 -0
- esphome/components/http_request/http_request_host.cpp +145 -0
- esphome/components/http_request/http_request_host.h +33 -0
- esphome/components/http_request/http_request_idf.cpp +251 -0
- esphome/components/http_request/http_request_idf.h +54 -0
- esphome/components/http_request/httplib.h +9695 -0
- esphome/components/http_request/ota/__init__.py +97 -0
- esphome/components/http_request/ota/automation.h +42 -0
- esphome/components/http_request/ota/ota_http_request.cpp +268 -0
- esphome/components/http_request/ota/ota_http_request.h +61 -0
- esphome/components/http_request/update/__init__.py +43 -0
- esphome/components/http_request/update/http_request_update.cpp +205 -0
- esphome/components/http_request/update/http_request_update.h +44 -0
- esphome/components/htu21d/__init__.py +0 -0
- esphome/components/htu21d/htu21d.cpp +149 -0
- esphome/components/htu21d/htu21d.h +63 -0
- esphome/components/htu21d/sensor.py +121 -0
- esphome/components/htu31d/__init__.py +1 -0
- esphome/components/htu31d/htu31d.cpp +269 -0
- esphome/components/htu31d/htu31d.h +33 -0
- esphome/components/htu31d/sensor.py +56 -0
- esphome/components/hub75/__init__.py +6 -0
- esphome/components/hub75/boards/__init__.py +80 -0
- esphome/components/hub75/boards/adafruit.py +23 -0
- esphome/components/hub75/boards/apollo.py +41 -0
- esphome/components/hub75/boards/huidu.py +22 -0
- esphome/components/hub75/boards/trinity.py +24 -0
- esphome/components/hub75/display.py +578 -0
- esphome/components/hub75/hub75.cpp +192 -0
- esphome/components/hub75/hub75_component.h +55 -0
- esphome/components/hx711/__init__.py +0 -0
- esphome/components/hx711/hx711.cpp +82 -0
- esphome/components/hx711/hx711.h +38 -0
- esphome/components/hx711/sensor.py +45 -0
- esphome/components/hydreon_rgxx/__init__.py +12 -0
- esphome/components/hydreon_rgxx/binary_sensor.py +49 -0
- esphome/components/hydreon_rgxx/hydreon_rgxx.cpp +290 -0
- esphome/components/hydreon_rgxx/hydreon_rgxx.h +98 -0
- esphome/components/hydreon_rgxx/sensor.py +156 -0
- esphome/components/hyt271/__init__.py +1 -0
- esphome/components/hyt271/hyt271.cpp +52 -0
- esphome/components/hyt271/hyt271.h +27 -0
- esphome/components/hyt271/sensor.py +56 -0
- esphome/components/i2c/__init__.py +336 -0
- esphome/components/i2c/i2c.cpp +122 -0
- esphome/components/i2c/i2c.h +307 -0
- esphome/components/i2c/i2c_bus.h +147 -0
- esphome/components/i2c/i2c_bus_arduino.cpp +264 -0
- esphome/components/i2c/i2c_bus_arduino.h +51 -0
- esphome/components/i2c/i2c_bus_esp_idf.cpp +311 -0
- esphome/components/i2c/i2c_bus_esp_idf.h +62 -0
- esphome/components/i2c/i2c_bus_zephyr.cpp +134 -0
- esphome/components/i2c/i2c_bus_zephyr.h +38 -0
- esphome/components/i2c_device/__init__.py +26 -0
- esphome/components/i2c_device/i2c_device.cpp +17 -0
- esphome/components/i2c_device/i2c_device.h +17 -0
- esphome/components/i2s_audio/__init__.py +284 -0
- esphome/components/i2s_audio/i2s_audio.cpp +27 -0
- esphome/components/i2s_audio/i2s_audio.h +115 -0
- esphome/components/i2s_audio/media_player/__init__.py +120 -0
- esphome/components/i2s_audio/media_player/i2s_audio_media_player.cpp +257 -0
- esphome/components/i2s_audio/media_player/i2s_audio_media_player.h +87 -0
- esphome/components/i2s_audio/microphone/__init__.py +146 -0
- esphome/components/i2s_audio/microphone/i2s_audio_microphone.cpp +547 -0
- esphome/components/i2s_audio/microphone/i2s_audio_microphone.h +92 -0
- esphome/components/i2s_audio/speaker/__init__.py +199 -0
- esphome/components/i2s_audio/speaker/i2s_audio_speaker.cpp +728 -0
- esphome/components/i2s_audio/speaker/i2s_audio_speaker.h +143 -0
- esphome/components/iaqcore/__init__.py +0 -0
- esphome/components/iaqcore/iaqcore.cpp +99 -0
- esphome/components/iaqcore/iaqcore.h +27 -0
- esphome/components/iaqcore/sensor.py +57 -0
- esphome/components/ili9341/__init__.py +0 -0
- esphome/components/ili9341/display.py +5 -0
- esphome/components/ili9xxx/__init__.py +0 -0
- esphome/components/ili9xxx/display.py +313 -0
- esphome/components/ili9xxx/ili9xxx_defines.h +100 -0
- esphome/components/ili9xxx/ili9xxx_display.cpp +463 -0
- esphome/components/ili9xxx/ili9xxx_display.h +287 -0
- esphome/components/ili9xxx/ili9xxx_init.h +482 -0
- esphome/components/image/__init__.py +760 -0
- esphome/components/image/image.cpp +251 -0
- esphome/components/image/image.h +65 -0
- esphome/components/improv_base/__init__.py +45 -0
- esphome/components/improv_base/improv_base.cpp +51 -0
- esphome/components/improv_base/improv_base.h +23 -0
- esphome/components/improv_serial/__init__.py +45 -0
- esphome/components/improv_serial/improv_serial_component.cpp +315 -0
- esphome/components/improv_serial/improv_serial_component.h +104 -0
- esphome/components/ina219/__init__.py +0 -0
- esphome/components/ina219/ina219.cpp +202 -0
- esphome/components/ina219/ina219.h +40 -0
- esphome/components/ina219/sensor.py +96 -0
- esphome/components/ina226/__init__.py +1 -0
- esphome/components/ina226/ina226.cpp +167 -0
- esphome/components/ina226/ina226.h +78 -0
- esphome/components/ina226/sensor.py +147 -0
- esphome/components/ina260/__init__.py +0 -0
- esphome/components/ina260/ina260.cpp +126 -0
- esphome/components/ina260/ina260.h +37 -0
- esphome/components/ina260/sensor.py +71 -0
- esphome/components/ina2xx_base/__init__.py +257 -0
- esphome/components/ina2xx_base/ina2xx_base.cpp +611 -0
- esphome/components/ina2xx_base/ina2xx_base.h +255 -0
- esphome/components/ina2xx_i2c/__init__.py +0 -0
- esphome/components/ina2xx_i2c/ina2xx_i2c.cpp +39 -0
- esphome/components/ina2xx_i2c/ina2xx_i2c.h +21 -0
- esphome/components/ina2xx_i2c/sensor.py +34 -0
- esphome/components/ina2xx_spi/__init__.py +0 -0
- esphome/components/ina2xx_spi/ina2xx_spi.cpp +38 -0
- esphome/components/ina2xx_spi/ina2xx_spi.h +22 -0
- esphome/components/ina2xx_spi/sensor.py +33 -0
- esphome/components/ina3221/__init__.py +0 -0
- esphome/components/ina3221/ina3221.cpp +133 -0
- esphome/components/ina3221/ina3221.h +40 -0
- esphome/components/ina3221/sensor.py +99 -0
- esphome/components/inkbird_ibsth1_mini/__init__.py +0 -0
- esphome/components/inkbird_ibsth1_mini/inkbird_ibsth1_mini.cpp +110 -0
- esphome/components/inkbird_ibsth1_mini/inkbird_ibsth1_mini.h +35 -0
- esphome/components/inkbird_ibsth1_mini/sensor.py +83 -0
- esphome/components/inkplate/__init__.py +1 -0
- esphome/components/inkplate/const.py +105 -0
- esphome/components/inkplate/display.py +246 -0
- esphome/components/inkplate/inkplate.cpp +805 -0
- esphome/components/inkplate/inkplate.h +214 -0
- esphome/components/inkplate6/__init__.py +0 -0
- esphome/components/inkplate6/display.py +5 -0
- esphome/components/integration/__init__.py +1 -0
- esphome/components/integration/integration_sensor.cpp +51 -0
- esphome/components/integration/integration_sensor.h +85 -0
- esphome/components/integration/sensor.py +115 -0
- esphome/components/internal_temperature/__init__.py +1 -0
- esphome/components/internal_temperature/internal_temperature.cpp +109 -0
- esphome/components/internal_temperature/internal_temperature.h +18 -0
- esphome/components/internal_temperature/sensor.py +34 -0
- esphome/components/interval/__init__.py +32 -0
- esphome/components/interval/interval.h +28 -0
- esphome/components/jsn_sr04t/__init__.py +1 -0
- esphome/components/jsn_sr04t/jsn_sr04t.cpp +64 -0
- esphome/components/jsn_sr04t/jsn_sr04t.h +34 -0
- esphome/components/jsn_sr04t/sensor.py +57 -0
- esphome/components/json/__init__.py +17 -0
- esphome/components/json/json_util.cpp +75 -0
- esphome/components/json/json_util.h +86 -0
- esphome/components/kalman_combinator/__init__.py +0 -0
- esphome/components/kalman_combinator/sensor.py +6 -0
- esphome/components/kamstrup_kmp/__init__.py +0 -0
- esphome/components/kamstrup_kmp/kamstrup_kmp.cpp +301 -0
- esphome/components/kamstrup_kmp/kamstrup_kmp.h +131 -0
- esphome/components/kamstrup_kmp/sensor.py +132 -0
- esphome/components/key_collector/__init__.py +131 -0
- esphome/components/key_collector/key_collector.cpp +107 -0
- esphome/components/key_collector/key_collector.h +63 -0
- esphome/components/key_provider/__init__.py +6 -0
- esphome/components/key_provider/key_provider.cpp +13 -0
- esphome/components/key_provider/key_provider.h +21 -0
- esphome/components/kmeteriso/__init__.py +0 -0
- esphome/components/kmeteriso/kmeteriso.cpp +80 -0
- esphome/components/kmeteriso/kmeteriso.h +34 -0
- esphome/components/kmeteriso/sensor.py +55 -0
- esphome/components/kuntze/__init__.py +0 -0
- esphome/components/kuntze/kuntze.cpp +94 -0
- esphome/components/kuntze/kuntze.h +42 -0
- esphome/components/kuntze/sensor.py +123 -0
- esphome/components/lc709203f/__init__.py +1 -0
- esphome/components/lc709203f/lc709203f.cpp +284 -0
- esphome/components/lc709203f/lc709203f.h +54 -0
- esphome/components/lc709203f/sensor.py +93 -0
- esphome/components/lcd_base/__init__.py +59 -0
- esphome/components/lcd_base/lcd_display.cpp +177 -0
- esphome/components/lcd_base/lcd_display.h +66 -0
- esphome/components/lcd_gpio/__init__.py +0 -0
- esphome/components/lcd_gpio/display.py +62 -0
- esphome/components/lcd_gpio/gpio_lcd_display.cpp +67 -0
- esphome/components/lcd_gpio/gpio_lcd_display.h +55 -0
- esphome/components/lcd_menu/__init__.py +69 -0
- esphome/components/lcd_menu/lcd_menu.cpp +76 -0
- esphome/components/lcd_menu/lcd_menu.h +45 -0
- esphome/components/lcd_pcf8574/__init__.py +0 -0
- esphome/components/lcd_pcf8574/display.py +32 -0
- esphome/components/lcd_pcf8574/pcf8574_display.cpp +60 -0
- esphome/components/lcd_pcf8574/pcf8574_display.h +36 -0
- esphome/components/ld2410/__init__.py +107 -0
- esphome/components/ld2410/automation.h +20 -0
- esphome/components/ld2410/binary_sensor.py +60 -0
- esphome/components/ld2410/button/__init__.py +58 -0
- esphome/components/ld2410/button/factory_reset_button.cpp +7 -0
- esphome/components/ld2410/button/factory_reset_button.h +16 -0
- esphome/components/ld2410/button/query_button.cpp +7 -0
- esphome/components/ld2410/button/query_button.h +16 -0
- esphome/components/ld2410/button/restart_button.cpp +7 -0
- esphome/components/ld2410/button/restart_button.h +16 -0
- esphome/components/ld2410/ld2410.cpp +784 -0
- esphome/components/ld2410/ld2410.h +135 -0
- esphome/components/ld2410/number/__init__.py +129 -0
- esphome/components/ld2410/number/gate_threshold_number.cpp +12 -0
- esphome/components/ld2410/number/gate_threshold_number.h +17 -0
- esphome/components/ld2410/number/light_threshold_number.cpp +10 -0
- esphome/components/ld2410/number/light_threshold_number.h +16 -0
- esphome/components/ld2410/number/max_distance_timeout_number.cpp +10 -0
- esphome/components/ld2410/number/max_distance_timeout_number.h +16 -0
- esphome/components/ld2410/select/__init__.py +82 -0
- esphome/components/ld2410/select/baud_rate_select.cpp +10 -0
- esphome/components/ld2410/select/baud_rate_select.h +16 -0
- esphome/components/ld2410/select/distance_resolution_select.cpp +10 -0
- esphome/components/ld2410/select/distance_resolution_select.h +16 -0
- esphome/components/ld2410/select/light_out_control_select.cpp +10 -0
- esphome/components/ld2410/select/light_out_control_select.h +16 -0
- esphome/components/ld2410/sensor.py +183 -0
- esphome/components/ld2410/switch/__init__.py +45 -0
- esphome/components/ld2410/switch/bluetooth_switch.cpp +10 -0
- esphome/components/ld2410/switch/bluetooth_switch.h +16 -0
- esphome/components/ld2410/switch/engineering_mode_switch.cpp +10 -0
- esphome/components/ld2410/switch/engineering_mode_switch.h +16 -0
- esphome/components/ld2410/text_sensor.py +34 -0
- esphome/components/ld2412/__init__.py +46 -0
- esphome/components/ld2412/binary_sensor.py +70 -0
- esphome/components/ld2412/button/__init__.py +74 -0
- esphome/components/ld2412/button/factory_reset_button.cpp +7 -0
- esphome/components/ld2412/button/factory_reset_button.h +16 -0
- esphome/components/ld2412/button/query_button.cpp +7 -0
- esphome/components/ld2412/button/query_button.h +16 -0
- esphome/components/ld2412/button/restart_button.cpp +7 -0
- esphome/components/ld2412/button/restart_button.h +16 -0
- esphome/components/ld2412/button/start_dynamic_background_correction_button.cpp +9 -0
- esphome/components/ld2412/button/start_dynamic_background_correction_button.h +16 -0
- esphome/components/ld2412/ld2412.cpp +857 -0
- esphome/components/ld2412/ld2412.h +139 -0
- esphome/components/ld2412/number/__init__.py +126 -0
- esphome/components/ld2412/number/gate_threshold_number.cpp +12 -0
- esphome/components/ld2412/number/gate_threshold_number.h +17 -0
- esphome/components/ld2412/number/light_threshold_number.cpp +10 -0
- esphome/components/ld2412/number/light_threshold_number.h +16 -0
- esphome/components/ld2412/number/max_distance_timeout_number.cpp +10 -0
- esphome/components/ld2412/number/max_distance_timeout_number.h +16 -0
- esphome/components/ld2412/select/__init__.py +82 -0
- esphome/components/ld2412/select/baud_rate_select.cpp +10 -0
- esphome/components/ld2412/select/baud_rate_select.h +16 -0
- esphome/components/ld2412/select/distance_resolution_select.cpp +10 -0
- esphome/components/ld2412/select/distance_resolution_select.h +16 -0
- esphome/components/ld2412/select/light_out_control_select.cpp +10 -0
- esphome/components/ld2412/select/light_out_control_select.h +16 -0
- esphome/components/ld2412/sensor.py +184 -0
- esphome/components/ld2412/switch/__init__.py +45 -0
- esphome/components/ld2412/switch/bluetooth_switch.cpp +10 -0
- esphome/components/ld2412/switch/bluetooth_switch.h +16 -0
- esphome/components/ld2412/switch/engineering_mode_switch.cpp +10 -0
- esphome/components/ld2412/switch/engineering_mode_switch.h +16 -0
- esphome/components/ld2412/text_sensor.py +34 -0
- esphome/components/ld2420/__init__.py +39 -0
- esphome/components/ld2420/binary_sensor/__init__.py +33 -0
- esphome/components/ld2420/binary_sensor/ld2420_binary_sensor.cpp +14 -0
- esphome/components/ld2420/binary_sensor/ld2420_binary_sensor.h +23 -0
- esphome/components/ld2420/button/__init__.py +70 -0
- esphome/components/ld2420/button/reconfig_buttons.cpp +14 -0
- esphome/components/ld2420/button/reconfig_buttons.h +40 -0
- esphome/components/ld2420/ld2420.cpp +900 -0
- esphome/components/ld2420/ld2420.h +195 -0
- esphome/components/ld2420/number/__init__.py +184 -0
- esphome/components/ld2420/number/gate_config_number.cpp +71 -0
- esphome/components/ld2420/number/gate_config_number.h +76 -0
- esphome/components/ld2420/select/__init__.py +34 -0
- esphome/components/ld2420/select/operating_mode_select.cpp +14 -0
- esphome/components/ld2420/select/operating_mode_select.h +16 -0
- esphome/components/ld2420/sensor/__init__.py +40 -0
- esphome/components/ld2420/sensor/ld2420_sensor.cpp +14 -0
- esphome/components/ld2420/sensor/ld2420_sensor.h +32 -0
- esphome/components/ld2420/text_sensor/__init__.py +34 -0
- esphome/components/ld2420/text_sensor/ld2420_text_sensor.cpp +14 -0
- esphome/components/ld2420/text_sensor/ld2420_text_sensor.h +22 -0
- esphome/components/ld2450/__init__.py +47 -0
- esphome/components/ld2450/binary_sensor.py +50 -0
- esphome/components/ld2450/button/__init__.py +45 -0
- esphome/components/ld2450/button/factory_reset_button.cpp +7 -0
- esphome/components/ld2450/button/factory_reset_button.h +16 -0
- esphome/components/ld2450/button/restart_button.cpp +7 -0
- esphome/components/ld2450/button/restart_button.h +16 -0
- esphome/components/ld2450/ld2450.cpp +941 -0
- esphome/components/ld2450/ld2450.h +195 -0
- esphome/components/ld2450/number/__init__.py +121 -0
- esphome/components/ld2450/number/presence_timeout_number.cpp +10 -0
- esphome/components/ld2450/number/presence_timeout_number.h +16 -0
- esphome/components/ld2450/number/zone_coordinate_number.cpp +12 -0
- esphome/components/ld2450/number/zone_coordinate_number.h +17 -0
- esphome/components/ld2450/select/__init__.py +56 -0
- esphome/components/ld2450/select/baud_rate_select.cpp +10 -0
- esphome/components/ld2450/select/baud_rate_select.h +16 -0
- esphome/components/ld2450/select/zone_type_select.cpp +10 -0
- esphome/components/ld2450/select/zone_type_select.h +16 -0
- esphome/components/ld2450/sensor.py +270 -0
- esphome/components/ld2450/switch/__init__.py +45 -0
- esphome/components/ld2450/switch/bluetooth_switch.cpp +10 -0
- esphome/components/ld2450/switch/bluetooth_switch.h +16 -0
- esphome/components/ld2450/switch/multi_target_switch.cpp +10 -0
- esphome/components/ld2450/switch/multi_target_switch.h +16 -0
- esphome/components/ld2450/text_sensor.py +63 -0
- esphome/components/ld24xx/__init__.py +1 -0
- esphome/components/ld24xx/ld24xx.h +85 -0
- esphome/components/ledc/__init__.py +1 -0
- esphome/components/ledc/ledc_output.cpp +209 -0
- esphome/components/ledc/ledc_output.h +62 -0
- esphome/components/ledc/output.py +84 -0
- esphome/components/libretiny/__init__.py +349 -0
- esphome/components/libretiny/const.py +95 -0
- esphome/components/libretiny/core.cpp +40 -0
- esphome/components/libretiny/core.h +11 -0
- esphome/components/libretiny/generate_components.py +330 -0
- esphome/components/libretiny/gpio.py +207 -0
- esphome/components/libretiny/gpio_arduino.cpp +105 -0
- esphome/components/libretiny/gpio_arduino.h +37 -0
- esphome/components/libretiny/helpers.cpp +39 -0
- esphome/components/libretiny/lt_component.cpp +31 -0
- esphome/components/libretiny/lt_component.h +36 -0
- esphome/components/libretiny/preferences.cpp +196 -0
- esphome/components/libretiny/preferences.h +13 -0
- esphome/components/libretiny/text_sensor.py +31 -0
- esphome/components/libretiny_pwm/__init__.py +1 -0
- esphome/components/libretiny_pwm/libretiny_pwm.cpp +53 -0
- esphome/components/libretiny_pwm/libretiny_pwm.h +55 -0
- esphome/components/libretiny_pwm/output.py +45 -0
- esphome/components/light/__init__.py +288 -0
- esphome/components/light/addressable_light.cpp +114 -0
- esphome/components/light/addressable_light.h +118 -0
- esphome/components/light/addressable_light_effect.h +373 -0
- esphome/components/light/addressable_light_wrapper.h +125 -0
- esphome/components/light/automation.cpp +13 -0
- esphome/components/light/automation.h +226 -0
- esphome/components/light/automation.py +281 -0
- esphome/components/light/base_light_effects.h +237 -0
- esphome/components/light/color_mode.h +212 -0
- esphome/components/light/effects.py +577 -0
- esphome/components/light/esp_color_correction.cpp +25 -0
- esphome/components/light/esp_color_correction.h +75 -0
- esphome/components/light/esp_color_view.h +108 -0
- esphome/components/light/esp_hsv_color.cpp +72 -0
- esphome/components/light/esp_hsv_color.h +34 -0
- esphome/components/light/esp_range_view.cpp +94 -0
- esphome/components/light/esp_range_view.h +78 -0
- esphome/components/light/light_call.cpp +652 -0
- esphome/components/light/light_call.h +260 -0
- esphome/components/light/light_color_values.h +312 -0
- esphome/components/light/light_effect.cpp +34 -0
- esphome/components/light/light_effect.h +57 -0
- esphome/components/light/light_json_schema.cpp +174 -0
- esphome/components/light/light_json_schema.h +26 -0
- esphome/components/light/light_output.cpp +10 -0
- esphome/components/light/light_output.h +31 -0
- esphome/components/light/light_state.cpp +343 -0
- esphome/components/light/light_state.h +333 -0
- esphome/components/light/light_traits.h +47 -0
- esphome/components/light/light_transformer.h +61 -0
- esphome/components/light/transformers.h +120 -0
- esphome/components/light/types.py +87 -0
- esphome/components/lightwaverf/LwRx.cpp +427 -0
- esphome/components/lightwaverf/LwRx.h +142 -0
- esphome/components/lightwaverf/LwTx.cpp +208 -0
- esphome/components/lightwaverf/LwTx.h +94 -0
- esphome/components/lightwaverf/__init__.py +81 -0
- esphome/components/lightwaverf/lightwaverf.cpp +65 -0
- esphome/components/lightwaverf/lightwaverf.h +70 -0
- esphome/components/lilygo_t5_47/__init__.py +3 -0
- esphome/components/lilygo_t5_47/touchscreen/__init__.py +38 -0
- esphome/components/lilygo_t5_47/touchscreen/lilygo_t5_47_touchscreen.cpp +104 -0
- esphome/components/lilygo_t5_47/touchscreen/lilygo_t5_47_touchscreen.h +31 -0
- esphome/components/lm75b/__init__.py +0 -0
- esphome/components/lm75b/lm75b.cpp +39 -0
- esphome/components/lm75b/lm75b.h +19 -0
- esphome/components/lm75b/sensor.py +34 -0
- esphome/components/ln882x/__init__.py +52 -0
- esphome/components/ln882x/boards.py +285 -0
- esphome/components/lock/__init__.py +155 -0
- esphome/components/lock/automation.h +66 -0
- esphome/components/lock/lock.cpp +109 -0
- esphome/components/lock/lock.h +182 -0
- esphome/components/logger/__init__.py +534 -0
- esphome/components/logger/logger.cpp +299 -0
- esphome/components/logger/logger.h +565 -0
- esphome/components/logger/logger_esp32.cpp +167 -0
- esphome/components/logger/logger_esp8266.cpp +54 -0
- esphome/components/logger/logger_host.cpp +22 -0
- esphome/components/logger/logger_libretiny.cpp +70 -0
- esphome/components/logger/logger_rp2040.cpp +48 -0
- esphome/components/logger/logger_zephyr.cpp +96 -0
- esphome/components/logger/select/__init__.py +37 -0
- esphome/components/logger/select/logger_level_select.cpp +19 -0
- esphome/components/logger/select/logger_level_select.h +25 -0
- esphome/components/logger/task_log_buffer.cpp +136 -0
- esphome/components/logger/task_log_buffer.h +67 -0
- esphome/components/lps22/__init__.py +0 -0
- esphome/components/lps22/lps22.cpp +75 -0
- esphome/components/lps22/lps22.h +27 -0
- esphome/components/lps22/sensor.py +58 -0
- esphome/components/ltr390/__init__.py +0 -0
- esphome/components/ltr390/ltr390.cpp +206 -0
- esphome/components/ltr390/ltr390.h +89 -0
- esphome/components/ltr390/sensor.py +141 -0
- esphome/components/ltr501/__init__.py +1 -0
- esphome/components/ltr501/ltr501.cpp +547 -0
- esphome/components/ltr501/ltr501.h +183 -0
- esphome/components/ltr501/ltr_definitions_501.h +260 -0
- esphome/components/ltr501/sensor.py +274 -0
- esphome/components/ltr_als_ps/__init__.py +1 -0
- esphome/components/ltr_als_ps/ltr_als_ps.cpp +526 -0
- esphome/components/ltr_als_ps/ltr_als_ps.h +183 -0
- esphome/components/ltr_als_ps/ltr_definitions.h +275 -0
- esphome/components/ltr_als_ps/sensor.py +271 -0
- esphome/components/lvgl/__init__.py +454 -0
- esphome/components/lvgl/automation.py +416 -0
- esphome/components/lvgl/binary_sensor/__init__.py +37 -0
- esphome/components/lvgl/defines.py +596 -0
- esphome/components/lvgl/encoders.py +81 -0
- esphome/components/lvgl/gradient.py +61 -0
- esphome/components/lvgl/helpers.py +76 -0
- esphome/components/lvgl/keypads.py +77 -0
- esphome/components/lvgl/layout.py +389 -0
- esphome/components/lvgl/light/__init__.py +31 -0
- esphome/components/lvgl/light/lvgl_light.h +48 -0
- esphome/components/lvgl/lv_validation.py +538 -0
- esphome/components/lvgl/lvcode.py +360 -0
- esphome/components/lvgl/lvgl_esphome.cpp +616 -0
- esphome/components/lvgl/lvgl_esphome.h +412 -0
- esphome/components/lvgl/lvgl_hal.h +21 -0
- esphome/components/lvgl/lvgl_proxy.h +17 -0
- esphome/components/lvgl/number/__init__.py +66 -0
- esphome/components/lvgl/number/lvgl_number.h +52 -0
- esphome/components/lvgl/schemas.py +489 -0
- esphome/components/lvgl/select/__init__.py +30 -0
- esphome/components/lvgl/select/lvgl_select.h +75 -0
- esphome/components/lvgl/sensor/__init__.py +41 -0
- esphome/components/lvgl/styles.py +97 -0
- esphome/components/lvgl/switch/__init__.py +58 -0
- esphome/components/lvgl/switch/lvgl_switch.h +25 -0
- esphome/components/lvgl/text/__init__.py +50 -0
- esphome/components/lvgl/text/lvgl_text.h +36 -0
- esphome/components/lvgl/text_sensor/__init__.py +43 -0
- esphome/components/lvgl/touchscreens.py +44 -0
- esphome/components/lvgl/trigger.py +111 -0
- esphome/components/lvgl/types.py +245 -0
- esphome/components/lvgl/widgets/__init__.py +470 -0
- esphome/components/lvgl/widgets/animimg.py +112 -0
- esphome/components/lvgl/widgets/arc.py +114 -0
- esphome/components/lvgl/widgets/button.py +52 -0
- esphome/components/lvgl/widgets/buttonmatrix.py +279 -0
- esphome/components/lvgl/widgets/canvas.py +422 -0
- esphome/components/lvgl/widgets/checkbox.py +31 -0
- esphome/components/lvgl/widgets/container.py +39 -0
- esphome/components/lvgl/widgets/dropdown.py +93 -0
- esphome/components/lvgl/widgets/img.py +86 -0
- esphome/components/lvgl/widgets/keyboard.py +56 -0
- esphome/components/lvgl/widgets/label.py +41 -0
- esphome/components/lvgl/widgets/led.py +29 -0
- esphome/components/lvgl/widgets/line.py +50 -0
- esphome/components/lvgl/widgets/lv_bar.py +76 -0
- esphome/components/lvgl/widgets/meter.py +324 -0
- esphome/components/lvgl/widgets/msgbox.py +148 -0
- esphome/components/lvgl/widgets/obj.py +19 -0
- esphome/components/lvgl/widgets/page.py +193 -0
- esphome/components/lvgl/widgets/qrcode.py +51 -0
- esphome/components/lvgl/widgets/roller.py +84 -0
- esphome/components/lvgl/widgets/slider.py +63 -0
- esphome/components/lvgl/widgets/spinbox.py +176 -0
- esphome/components/lvgl/widgets/spinner.py +43 -0
- esphome/components/lvgl/widgets/switch.py +20 -0
- esphome/components/lvgl/widgets/tabview.py +121 -0
- esphome/components/lvgl/widgets/textarea.py +65 -0
- esphome/components/lvgl/widgets/tileview.py +131 -0
- esphome/components/m5stack_8angle/__init__.py +32 -0
- esphome/components/m5stack_8angle/binary_sensor/__init__.py +29 -0
- esphome/components/m5stack_8angle/binary_sensor/m5stack_8angle_binary_sensor.cpp +17 -0
- esphome/components/m5stack_8angle/binary_sensor/m5stack_8angle_binary_sensor.h +19 -0
- esphome/components/m5stack_8angle/light/__init__.py +29 -0
- esphome/components/m5stack_8angle/light/m5stack_8angle_light.cpp +45 -0
- esphome/components/m5stack_8angle/light/m5stack_8angle_light.h +37 -0
- esphome/components/m5stack_8angle/m5stack_8angle.cpp +73 -0
- esphome/components/m5stack_8angle/m5stack_8angle.h +34 -0
- esphome/components/m5stack_8angle/sensor/__init__.py +64 -0
- esphome/components/m5stack_8angle/sensor/m5stack_8angle_sensor.cpp +24 -0
- esphome/components/m5stack_8angle/sensor/m5stack_8angle_sensor.h +27 -0
- esphome/components/mapping/__init__.py +142 -0
- esphome/components/mapping/mapping.h +69 -0
- esphome/components/matrix_keypad/__init__.py +88 -0
- esphome/components/matrix_keypad/binary_sensor/__init__.py +50 -0
- esphome/components/matrix_keypad/binary_sensor/matrix_keypad_binary_sensor.h +51 -0
- esphome/components/matrix_keypad/matrix_keypad.cpp +116 -0
- esphome/components/matrix_keypad/matrix_keypad.h +53 -0
- esphome/components/max17043/__init__.py +1 -0
- esphome/components/max17043/automation.h +20 -0
- esphome/components/max17043/max17043.cpp +96 -0
- esphome/components/max17043/max17043.h +29 -0
- esphome/components/max17043/sensor.py +77 -0
- esphome/components/max31855/__init__.py +0 -0
- esphome/components/max31855/max31855.cpp +106 -0
- esphome/components/max31855/max31855.h +31 -0
- esphome/components/max31855/sensor.py +44 -0
- esphome/components/max31856/__init__.py +0 -0
- esphome/components/max31856/max31856.cpp +203 -0
- esphome/components/max31856/max31856.h +103 -0
- esphome/components/max31856/sensor.py +66 -0
- esphome/components/max31865/__init__.py +0 -0
- esphome/components/max31865/max31865.cpp +233 -0
- esphome/components/max31865/max31865.h +58 -0
- esphome/components/max31865/sensor.py +62 -0
- esphome/components/max44009/__init__.py +0 -0
- esphome/components/max44009/max44009.cpp +143 -0
- esphome/components/max44009/max44009.h +37 -0
- esphome/components/max44009/sensor.py +53 -0
- esphome/components/max6675/__init__.py +0 -0
- esphome/components/max6675/max6675.cpp +49 -0
- esphome/components/max6675/max6675.h +26 -0
- esphome/components/max6675/sensor.py +31 -0
- esphome/components/max6956/__init__.py +142 -0
- esphome/components/max6956/automation.h +40 -0
- esphome/components/max6956/max6956.cpp +171 -0
- esphome/components/max6956/max6956.h +96 -0
- esphome/components/max6956/output/__init__.py +29 -0
- esphome/components/max6956/output/max6956_led_output.cpp +26 -0
- esphome/components/max6956/output/max6956_led_output.h +28 -0
- esphome/components/max7219/__init__.py +0 -0
- esphome/components/max7219/display.py +43 -0
- esphome/components/max7219/max7219.cpp +244 -0
- esphome/components/max7219/max7219.h +65 -0
- esphome/components/max7219digit/__init__.py +0 -0
- esphome/components/max7219digit/automation.h +52 -0
- esphome/components/max7219digit/display.py +193 -0
- esphome/components/max7219digit/max7219digit.cpp +353 -0
- esphome/components/max7219digit/max7219digit.h +124 -0
- esphome/components/max7219digit/max7219font.h +270 -0
- esphome/components/max9611/__init__.py +1 -0
- esphome/components/max9611/max9611.cpp +95 -0
- esphome/components/max9611/max9611.h +61 -0
- esphome/components/max9611/sensor.py +92 -0
- esphome/components/mcp23008/__init__.py +28 -0
- esphome/components/mcp23008/mcp23008.cpp +42 -0
- esphome/components/mcp23008/mcp23008.h +24 -0
- esphome/components/mcp23016/__init__.py +73 -0
- esphome/components/mcp23016/mcp23016.cpp +109 -0
- esphome/components/mcp23016/mcp23016.h +80 -0
- esphome/components/mcp23017/__init__.py +28 -0
- esphome/components/mcp23017/mcp23017.cpp +43 -0
- esphome/components/mcp23017/mcp23017.h +24 -0
- esphome/components/mcp23s08/__init__.py +32 -0
- esphome/components/mcp23s08/mcp23s08.cpp +58 -0
- esphome/components/mcp23s08/mcp23s08.h +30 -0
- esphome/components/mcp23s17/__init__.py +32 -0
- esphome/components/mcp23s17/mcp23s17.cpp +68 -0
- esphome/components/mcp23s17/mcp23s17.h +29 -0
- esphome/components/mcp23x08_base/__init__.py +10 -0
- esphome/components/mcp23x08_base/mcp23x08_base.cpp +86 -0
- esphome/components/mcp23x08_base/mcp23x08_base.h +44 -0
- esphome/components/mcp23x17_base/__init__.py +10 -0
- esphome/components/mcp23x17_base/mcp23x17_base.cpp +102 -0
- esphome/components/mcp23x17_base/mcp23x17_base.h +57 -0
- esphome/components/mcp23xxx_base/__init__.py +92 -0
- esphome/components/mcp23xxx_base/mcp23xxx_base.cpp +27 -0
- esphome/components/mcp23xxx_base/mcp23xxx_base.h +58 -0
- esphome/components/mcp2515/__init__.py +0 -0
- esphome/components/mcp2515/canbus.py +50 -0
- esphome/components/mcp2515/mcp2515.cpp +710 -0
- esphome/components/mcp2515/mcp2515.h +112 -0
- esphome/components/mcp2515/mcp2515_defs.h +375 -0
- esphome/components/mcp3008/__init__.py +25 -0
- esphome/components/mcp3008/mcp3008.cpp +40 -0
- esphome/components/mcp3008/mcp3008.h +22 -0
- esphome/components/mcp3008/sensor/__init__.py +53 -0
- esphome/components/mcp3008/sensor/mcp3008_sensor.cpp +29 -0
- esphome/components/mcp3008/sensor/mcp3008_sensor.h +31 -0
- esphome/components/mcp3204/__init__.py +26 -0
- esphome/components/mcp3204/mcp3204.cpp +37 -0
- esphome/components/mcp3204/mcp3204.h +28 -0
- esphome/components/mcp3204/sensor/__init__.py +39 -0
- esphome/components/mcp3204/sensor/mcp3204_sensor.cpp +22 -0
- esphome/components/mcp3204/sensor/mcp3204_sensor.h +31 -0
- esphome/components/mcp3221/__init__.py +1 -0
- esphome/components/mcp3221/mcp3221_sensor.cpp +31 -0
- esphome/components/mcp3221/mcp3221_sensor.h +28 -0
- esphome/components/mcp3221/sensor.py +49 -0
- esphome/components/mcp4461/__init__.py +42 -0
- esphome/components/mcp4461/mcp4461.cpp +631 -0
- esphome/components/mcp4461/mcp4461.h +172 -0
- esphome/components/mcp4461/output/__init__.py +61 -0
- esphome/components/mcp4461/output/mcp4461_output.cpp +73 -0
- esphome/components/mcp4461/output/mcp4461_output.h +49 -0
- esphome/components/mcp4725/__init__.py +0 -0
- esphome/components/mcp4725/mcp4725.cpp +34 -0
- esphome/components/mcp4725/mcp4725.h +23 -0
- esphome/components/mcp4725/output.py +26 -0
- esphome/components/mcp4728/__init__.py +30 -0
- esphome/components/mcp4728/mcp4728.cpp +113 -0
- esphome/components/mcp4728/mcp4728.h +67 -0
- esphome/components/mcp4728/output/__init__.py +63 -0
- esphome/components/mcp4728/output/mcp4728_output.cpp +17 -0
- esphome/components/mcp4728/output/mcp4728_output.h +32 -0
- esphome/components/mcp47a1/__init__.py +0 -0
- esphome/components/mcp47a1/mcp47a1.cpp +21 -0
- esphome/components/mcp47a1/mcp47a1.h +17 -0
- esphome/components/mcp47a1/output.py +27 -0
- esphome/components/mcp9600/__init__.py +0 -0
- esphome/components/mcp9600/mcp9600.cpp +113 -0
- esphome/components/mcp9600/mcp9600.h +49 -0
- esphome/components/mcp9600/sensor.py +81 -0
- esphome/components/mcp9808/__init__.py +0 -0
- esphome/components/mcp9808/mcp9808.cpp +79 -0
- esphome/components/mcp9808/mcp9808.h +20 -0
- esphome/components/mcp9808/sensor.py +34 -0
- esphome/components/md5/__init__.py +7 -0
- esphome/components/md5/md5.cpp +44 -0
- esphome/components/md5/md5.h +55 -0
- esphome/components/mdns/__init__.py +240 -0
- esphome/components/mdns/mdns_component.cpp +194 -0
- esphome/components/mdns/mdns_component.h +118 -0
- esphome/components/mdns/mdns_esp32.cpp +54 -0
- esphome/components/mdns/mdns_esp8266.cpp +50 -0
- esphome/components/mdns/mdns_host.cpp +28 -0
- esphome/components/mdns/mdns_libretiny.cpp +44 -0
- esphome/components/mdns/mdns_rp2040.cpp +49 -0
- esphome/components/media_player/__init__.py +305 -0
- esphome/components/media_player/automation.h +109 -0
- esphome/components/media_player/media_player.cpp +160 -0
- esphome/components/media_player/media_player.h +164 -0
- esphome/components/mhz19/__init__.py +0 -0
- esphome/components/mhz19/mhz19.cpp +119 -0
- esphome/components/mhz19/mhz19.h +70 -0
- esphome/components/mhz19/sensor.py +100 -0
- esphome/components/micro_wake_word/__init__.py +567 -0
- esphome/components/micro_wake_word/automation.h +54 -0
- esphome/components/micro_wake_word/micro_wake_word.cpp +473 -0
- esphome/components/micro_wake_word/micro_wake_word.h +129 -0
- esphome/components/micro_wake_word/preprocessor_settings.h +37 -0
- esphome/components/micro_wake_word/streaming_model.cpp +316 -0
- esphome/components/micro_wake_word/streaming_model.h +156 -0
- esphome/components/micronova/__init__.py +81 -0
- esphome/components/micronova/button/__init__.py +42 -0
- esphome/components/micronova/button/micronova_button.cpp +10 -0
- esphome/components/micronova/button/micronova_button.h +24 -0
- esphome/components/micronova/micronova.cpp +156 -0
- esphome/components/micronova/micronova.h +101 -0
- esphome/components/micronova/number/__init__.py +80 -0
- esphome/components/micronova/number/micronova_number.cpp +29 -0
- esphome/components/micronova/number/micronova_number.h +28 -0
- esphome/components/micronova/sensor/__init__.py +148 -0
- esphome/components/micronova/sensor/micronova_sensor.cpp +23 -0
- esphome/components/micronova/sensor/micronova_sensor.h +33 -0
- esphome/components/micronova/switch/__init__.py +54 -0
- esphome/components/micronova/switch/micronova_switch.cpp +38 -0
- esphome/components/micronova/switch/micronova_switch.h +33 -0
- esphome/components/micronova/text_sensor/__init__.py +41 -0
- esphome/components/micronova/text_sensor/micronova_text_sensor.cpp +14 -0
- esphome/components/micronova/text_sensor/micronova_text_sensor.h +33 -0
- esphome/components/microphone/__init__.py +219 -0
- esphome/components/microphone/automation.h +44 -0
- esphome/components/microphone/microphone.cpp +19 -0
- esphome/components/microphone/microphone.h +45 -0
- esphome/components/microphone/microphone_source.cpp +95 -0
- esphome/components/microphone/microphone_source.h +80 -0
- esphome/components/mics_4514/__init__.py +0 -0
- esphome/components/mics_4514/mics_4514.cpp +130 -0
- esphome/components/mics_4514/mics_4514.h +34 -0
- esphome/components/mics_4514/sensor.py +67 -0
- esphome/components/midea/__init__.py +0 -0
- esphome/components/midea/ac_adapter.cpp +179 -0
- esphome/components/midea/ac_adapter.h +51 -0
- esphome/components/midea/ac_automations.h +70 -0
- esphome/components/midea/air_conditioner.cpp +179 -0
- esphome/components/midea/air_conditioner.h +69 -0
- esphome/components/midea/appliance_base.h +102 -0
- esphome/components/midea/climate.py +293 -0
- esphome/components/midea/ir_transmitter.h +91 -0
- esphome/components/midea_ac/__init__.py +0 -0
- esphome/components/midea_ac/climate.py +3 -0
- esphome/components/midea_ir/__init__.py +0 -0
- esphome/components/midea_ir/climate.py +22 -0
- esphome/components/midea_ir/midea_data.h +92 -0
- esphome/components/midea_ir/midea_ir.cpp +202 -0
- esphome/components/midea_ir/midea_ir.h +47 -0
- esphome/components/mipi/__init__.py +492 -0
- esphome/components/mipi_dsi/__init__.py +5 -0
- esphome/components/mipi_dsi/display.py +233 -0
- esphome/components/mipi_dsi/mipi_dsi.cpp +385 -0
- esphome/components/mipi_dsi/mipi_dsi.h +120 -0
- esphome/components/mipi_dsi/models/__init__.py +0 -0
- esphome/components/mipi_dsi/models/guition.py +104 -0
- esphome/components/mipi_dsi/models/m5stack.py +57 -0
- esphome/components/mipi_dsi/models/waveshare.py +96 -0
- esphome/components/mipi_rgb/__init__.py +2 -0
- esphome/components/mipi_rgb/display.py +320 -0
- esphome/components/mipi_rgb/mipi_rgb.cpp +382 -0
- esphome/components/mipi_rgb/mipi_rgb.h +127 -0
- esphome/components/mipi_rgb/models/guition.py +25 -0
- esphome/components/mipi_rgb/models/lilygo.py +226 -0
- esphome/components/mipi_rgb/models/rpi.py +9 -0
- esphome/components/mipi_rgb/models/st7701s.py +215 -0
- esphome/components/mipi_rgb/models/waveshare.py +146 -0
- esphome/components/mipi_spi/__init__.py +6 -0
- esphome/components/mipi_spi/display.py +448 -0
- esphome/components/mipi_spi/mipi_spi.cpp +6 -0
- esphome/components/mipi_spi/mipi_spi.h +625 -0
- esphome/components/mipi_spi/models/__init__.py +0 -0
- esphome/components/mipi_spi/models/adafruit.py +30 -0
- esphome/components/mipi_spi/models/amoled.py +110 -0
- esphome/components/mipi_spi/models/cyd.py +10 -0
- esphome/components/mipi_spi/models/ili.py +762 -0
- esphome/components/mipi_spi/models/jc.py +592 -0
- esphome/components/mipi_spi/models/lanbon.py +15 -0
- esphome/components/mipi_spi/models/lilygo.py +60 -0
- esphome/components/mipi_spi/models/waveshare.py +164 -0
- esphome/components/mitsubishi/__init__.py +0 -0
- esphome/components/mitsubishi/climate.py +68 -0
- esphome/components/mitsubishi/mitsubishi.cpp +398 -0
- esphome/components/mitsubishi/mitsubishi.h +83 -0
- esphome/components/mixer/__init__.py +0 -0
- esphome/components/mixer/speaker/__init__.py +171 -0
- esphome/components/mixer/speaker/automation.h +19 -0
- esphome/components/mixer/speaker/mixer_speaker.cpp +624 -0
- esphome/components/mixer/speaker/mixer_speaker.h +207 -0
- esphome/components/mlx90393/__init__.py +1 -0
- esphome/components/mlx90393/sensor.py +162 -0
- esphome/components/mlx90393/sensor_mlx90393.cpp +276 -0
- esphome/components/mlx90393/sensor_mlx90393.h +81 -0
- esphome/components/mlx90614/__init__.py +0 -0
- esphome/components/mlx90614/mlx90614.cpp +107 -0
- esphome/components/mlx90614/mlx90614.h +33 -0
- esphome/components/mlx90614/sensor.py +63 -0
- esphome/components/mmc5603/__init__.py +1 -0
- esphome/components/mmc5603/mmc5603.cpp +161 -0
- esphome/components/mmc5603/mmc5603.h +43 -0
- esphome/components/mmc5603/sensor.py +90 -0
- esphome/components/mmc5983/__init__.py +1 -0
- esphome/components/mmc5983/mmc5983.cpp +139 -0
- esphome/components/mmc5983/mmc5983.h +28 -0
- esphome/components/mmc5983/sensor.py +55 -0
- esphome/components/modbus/__init__.py +100 -0
- esphome/components/modbus/modbus.cpp +284 -0
- esphome/components/modbus/modbus.h +89 -0
- esphome/components/modbus/modbus_definitions.h +86 -0
- esphome/components/modbus_controller/__init__.py +398 -0
- esphome/components/modbus_controller/automation.h +35 -0
- esphome/components/modbus_controller/binary_sensor/__init__.py +60 -0
- esphome/components/modbus_controller/binary_sensor/modbus_binarysensor.cpp +38 -0
- esphome/components/modbus_controller/binary_sensor/modbus_binarysensor.h +44 -0
- esphome/components/modbus_controller/const.py +24 -0
- esphome/components/modbus_controller/modbus_controller.cpp +830 -0
- esphome/components/modbus_controller/modbus_controller.h +599 -0
- esphome/components/modbus_controller/number/__init__.py +125 -0
- esphome/components/modbus_controller/number/modbus_number.cpp +86 -0
- esphome/components/modbus_controller/number/modbus_number.h +50 -0
- esphome/components/modbus_controller/output/__init__.py +105 -0
- esphome/components/modbus_controller/output/modbus_output.cpp +115 -0
- esphome/components/modbus_controller/output/modbus_output.h +76 -0
- esphome/components/modbus_controller/select/__init__.py +143 -0
- esphome/components/modbus_controller/select/modbus_select.cpp +90 -0
- esphome/components/modbus_controller/select/modbus_select.h +53 -0
- esphome/components/modbus_controller/sensor/__init__.py +68 -0
- esphome/components/modbus_controller/sensor/modbus_sensor.cpp +31 -0
- esphome/components/modbus_controller/sensor/modbus_sensor.h +37 -0
- esphome/components/modbus_controller/switch/__init__.py +81 -0
- esphome/components/modbus_controller/switch/modbus_switch.cpp +108 -0
- esphome/components/modbus_controller/switch/modbus_switch.h +53 -0
- esphome/components/modbus_controller/text_sensor/__init__.py +84 -0
- esphome/components/modbus_controller/text_sensor/modbus_textsensor.cpp +52 -0
- esphome/components/modbus_controller/text_sensor/modbus_textsensor.h +43 -0
- esphome/components/monochromatic/__init__.py +0 -0
- esphome/components/monochromatic/light.py +24 -0
- esphome/components/monochromatic/monochromatic_light_output.h +29 -0
- esphome/components/mopeka_ble/__init__.py +30 -0
- esphome/components/mopeka_ble/mopeka_ble.cpp +91 -0
- esphome/components/mopeka_ble/mopeka_ble.h +27 -0
- esphome/components/mopeka_pro_check/__init__.py +1 -0
- esphome/components/mopeka_pro_check/mopeka_pro_check.cpp +159 -0
- esphome/components/mopeka_pro_check/mopeka_pro_check.h +71 -0
- esphome/components/mopeka_pro_check/sensor.py +174 -0
- esphome/components/mopeka_std_check/__init__.py +1 -0
- esphome/components/mopeka_std_check/mopeka_std_check.cpp +227 -0
- esphome/components/mopeka_std_check/mopeka_std_check.h +80 -0
- esphome/components/mopeka_std_check/sensor.py +138 -0
- esphome/components/mpl3115a2/__init__.py +0 -0
- esphome/components/mpl3115a2/mpl3115a2.cpp +98 -0
- esphome/components/mpl3115a2/mpl3115a2.h +106 -0
- esphome/components/mpl3115a2/sensor.py +75 -0
- esphome/components/mpr121/__init__.py +128 -0
- esphome/components/mpr121/binary_sensor/__init__.py +38 -0
- esphome/components/mpr121/binary_sensor/mpr121_binary_sensor.cpp +20 -0
- esphome/components/mpr121/binary_sensor/mpr121_binary_sensor.h +26 -0
- esphome/components/mpr121/mpr121.cpp +163 -0
- esphome/components/mpr121/mpr121.h +129 -0
- esphome/components/mpu6050/__init__.py +0 -0
- esphome/components/mpu6050/mpu6050.cpp +146 -0
- esphome/components/mpu6050/mpu6050.h +39 -0
- esphome/components/mpu6050/sensor.py +84 -0
- esphome/components/mpu6886/__init__.py +1 -0
- esphome/components/mpu6886/mpu6886.cpp +152 -0
- esphome/components/mpu6886/mpu6886.h +39 -0
- esphome/components/mpu6886/sensor.py +85 -0
- esphome/components/mqtt/__init__.py +627 -0
- esphome/components/mqtt/custom_mqtt_device.cpp +35 -0
- esphome/components/mqtt/custom_mqtt_device.h +220 -0
- esphome/components/mqtt/mqtt_alarm_control_panel.cpp +130 -0
- esphome/components/mqtt/mqtt_alarm_control_panel.h +39 -0
- esphome/components/mqtt/mqtt_backend.h +72 -0
- esphome/components/mqtt/mqtt_backend_esp32.cpp +284 -0
- esphome/components/mqtt/mqtt_backend_esp32.h +280 -0
- esphome/components/mqtt/mqtt_backend_esp8266.h +74 -0
- esphome/components/mqtt/mqtt_backend_libretiny.h +74 -0
- esphome/components/mqtt/mqtt_binary_sensor.cpp +64 -0
- esphome/components/mqtt/mqtt_binary_sensor.h +43 -0
- esphome/components/mqtt/mqtt_button.cpp +50 -0
- esphome/components/mqtt/mqtt_button.h +40 -0
- esphome/components/mqtt/mqtt_client.cpp +753 -0
- esphome/components/mqtt/mqtt_client.h +468 -0
- esphome/components/mqtt/mqtt_climate.cpp +467 -0
- esphome/components/mqtt/mqtt_climate.h +56 -0
- esphome/components/mqtt/mqtt_component.cpp +304 -0
- esphome/components/mqtt/mqtt_component.h +211 -0
- esphome/components/mqtt/mqtt_const.h +547 -0
- esphome/components/mqtt/mqtt_cover.cpp +126 -0
- esphome/components/mqtt/mqtt_cover.h +43 -0
- esphome/components/mqtt/mqtt_date.cpp +69 -0
- esphome/components/mqtt/mqtt_date.h +45 -0
- esphome/components/mqtt/mqtt_datetime.cpp +85 -0
- esphome/components/mqtt/mqtt_datetime.h +45 -0
- esphome/components/mqtt/mqtt_event.cpp +61 -0
- esphome/components/mqtt/mqtt_event.h +39 -0
- esphome/components/mqtt/mqtt_fan.cpp +189 -0
- esphome/components/mqtt/mqtt_fan.h +54 -0
- esphome/components/mqtt/mqtt_light.cpp +100 -0
- esphome/components/mqtt/mqtt_light.h +44 -0
- esphome/components/mqtt/mqtt_lock.cpp +65 -0
- esphome/components/mqtt/mqtt_lock.h +41 -0
- esphome/components/mqtt/mqtt_number.cpp +87 -0
- esphome/components/mqtt/mqtt_number.h +46 -0
- esphome/components/mqtt/mqtt_select.cpp +61 -0
- esphome/components/mqtt/mqtt_select.h +46 -0
- esphome/components/mqtt/mqtt_sensor.cpp +93 -0
- esphome/components/mqtt/mqtt_sensor.h +58 -0
- esphome/components/mqtt/mqtt_switch.cpp +64 -0
- esphome/components/mqtt/mqtt_switch.h +41 -0
- esphome/components/mqtt/mqtt_text.cpp +64 -0
- esphome/components/mqtt/mqtt_text.h +46 -0
- esphome/components/mqtt/mqtt_text_sensor.cpp +50 -0
- esphome/components/mqtt/mqtt_text_sensor.h +39 -0
- esphome/components/mqtt/mqtt_time.cpp +69 -0
- esphome/components/mqtt/mqtt_time.h +45 -0
- esphome/components/mqtt/mqtt_update.cpp +63 -0
- esphome/components/mqtt/mqtt_update.h +41 -0
- esphome/components/mqtt/mqtt_valve.cpp +96 -0
- esphome/components/mqtt/mqtt_valve.h +41 -0
- esphome/components/mqtt_subscribe/__init__.py +3 -0
- esphome/components/mqtt_subscribe/sensor/__init__.py +38 -0
- esphome/components/mqtt_subscribe/sensor/mqtt_subscribe_sensor.cpp +38 -0
- esphome/components/mqtt_subscribe/sensor/mqtt_subscribe_sensor.h +33 -0
- esphome/components/mqtt_subscribe/text_sensor/__init__.py +36 -0
- esphome/components/mqtt_subscribe/text_sensor/mqtt_subscribe_text_sensor.cpp +28 -0
- esphome/components/mqtt_subscribe/text_sensor/mqtt_subscribe_text_sensor.h +32 -0
- esphome/components/ms5611/__init__.py +0 -0
- esphome/components/ms5611/ms5611.cpp +130 -0
- esphome/components/ms5611/ms5611.h +31 -0
- esphome/components/ms5611/sensor.py +58 -0
- esphome/components/ms8607/__init__.py +1 -0
- esphome/components/ms8607/ms8607.cpp +443 -0
- esphome/components/ms8607/ms8607.h +108 -0
- esphome/components/ms8607/sensor.py +83 -0
- esphome/components/msa3xx/__init__.py +189 -0
- esphome/components/msa3xx/binary_sensor.py +40 -0
- esphome/components/msa3xx/msa3xx.cpp +419 -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/my9231/__init__.py +41 -0
- esphome/components/my9231/my9231.cpp +127 -0
- esphome/components/my9231/my9231.h +64 -0
- esphome/components/my9231/output.py +28 -0
- esphome/components/nau7802/__init__.py +0 -0
- esphome/components/nau7802/nau7802.cpp +320 -0
- esphome/components/nau7802/nau7802.h +119 -0
- esphome/components/nau7802/sensor.py +134 -0
- esphome/components/neopixelbus/__init__.py +0 -0
- esphome/components/neopixelbus/_methods.py +423 -0
- esphome/components/neopixelbus/const.py +42 -0
- esphome/components/neopixelbus/light.py +232 -0
- esphome/components/neopixelbus/neopixelbus_light.h +146 -0
- esphome/components/network/__init__.py +227 -0
- esphome/components/network/ip_address.h +153 -0
- esphome/components/network/util.cpp +114 -0
- esphome/components/network/util.h +20 -0
- esphome/components/nextion/__init__.py +26 -0
- esphome/components/nextion/automation.h +139 -0
- esphome/components/nextion/base_component.py +130 -0
- esphome/components/nextion/binary_sensor/__init__.py +87 -0
- esphome/components/nextion/binary_sensor/nextion_binarysensor.cpp +68 -0
- esphome/components/nextion/binary_sensor/nextion_binarysensor.h +42 -0
- esphome/components/nextion/display.py +224 -0
- esphome/components/nextion/nextion.cpp +1299 -0
- esphome/components/nextion/nextion.h +1499 -0
- esphome/components/nextion/nextion_base.h +65 -0
- esphome/components/nextion/nextion_commands.cpp +353 -0
- esphome/components/nextion/nextion_component.cpp +114 -0
- esphome/components/nextion/nextion_component.h +84 -0
- esphome/components/nextion/nextion_component_base.h +106 -0
- esphome/components/nextion/nextion_upload.cpp +39 -0
- esphome/components/nextion/nextion_upload_arduino.cpp +360 -0
- esphome/components/nextion/nextion_upload_idf.cpp +340 -0
- esphome/components/nextion/sensor/__init__.py +127 -0
- esphome/components/nextion/sensor/nextion_sensor.cpp +116 -0
- esphome/components/nextion/sensor/nextion_sensor.h +49 -0
- esphome/components/nextion/switch/__init__.py +69 -0
- esphome/components/nextion/switch/nextion_switch.cpp +52 -0
- esphome/components/nextion/switch/nextion_switch.h +34 -0
- esphome/components/nextion/text_sensor/__init__.py +65 -0
- esphome/components/nextion/text_sensor/nextion_textsensor.cpp +49 -0
- esphome/components/nextion/text_sensor/nextion_textsensor.h +32 -0
- esphome/components/nfc/__init__.py +13 -0
- esphome/components/nfc/automation.cpp +9 -0
- esphome/components/nfc/automation.h +17 -0
- esphome/components/nfc/binary_sensor/__init__.py +72 -0
- esphome/components/nfc/binary_sensor/nfc_binary_sensor.cpp +114 -0
- esphome/components/nfc/binary_sensor/nfc_binary_sensor.h +38 -0
- esphome/components/nfc/nci_core.h +144 -0
- esphome/components/nfc/nci_message.cpp +166 -0
- esphome/components/nfc/nci_message.h +50 -0
- esphome/components/nfc/ndef_message.cpp +110 -0
- esphome/components/nfc/ndef_message.h +42 -0
- esphome/components/nfc/ndef_record.cpp +65 -0
- esphome/components/nfc/ndef_record.h +57 -0
- esphome/components/nfc/ndef_record_text.cpp +40 -0
- esphome/components/nfc/ndef_record_text.h +43 -0
- esphome/components/nfc/ndef_record_uri.cpp +48 -0
- esphome/components/nfc/ndef_record_uri.h +78 -0
- esphome/components/nfc/nfc.cpp +89 -0
- esphome/components/nfc/nfc.h +84 -0
- esphome/components/nfc/nfc_helpers.cpp +47 -0
- esphome/components/nfc/nfc_helpers.h +17 -0
- esphome/components/nfc/nfc_tag.cpp +9 -0
- esphome/components/nfc/nfc_tag.h +57 -0
- esphome/components/noblex/__init__.py +1 -0
- esphome/components/noblex/climate.py +13 -0
- esphome/components/noblex/noblex.cpp +309 -0
- esphome/components/noblex/noblex.h +47 -0
- esphome/components/npi19/__init__.py +0 -0
- esphome/components/npi19/npi19.cpp +107 -0
- esphome/components/npi19/npi19.h +30 -0
- esphome/components/npi19/sensor.py +52 -0
- esphome/components/nrf52/__init__.py +320 -0
- esphome/components/nrf52/ble_logger.py +60 -0
- esphome/components/nrf52/boards.py +42 -0
- esphome/components/nrf52/const.py +19 -0
- esphome/components/nrf52/dfu.cpp +51 -0
- esphome/components/nrf52/dfu.h +24 -0
- esphome/components/nrf52/gpio.py +82 -0
- esphome/components/nrf52/uicr.cpp +121 -0
- esphome/components/ntc/__init__.py +0 -0
- esphome/components/ntc/ntc.cpp +31 -0
- esphome/components/ntc/ntc.h +29 -0
- esphome/components/ntc/sensor.py +144 -0
- esphome/components/number/__init__.py +434 -0
- esphome/components/number/automation.cpp +54 -0
- esphome/components/number/automation.h +93 -0
- esphome/components/number/number.cpp +45 -0
- esphome/components/number/number.h +55 -0
- esphome/components/number/number_call.cpp +127 -0
- esphome/components/number/number_call.h +46 -0
- esphome/components/number/number_traits.cpp +8 -0
- esphome/components/number/number_traits.h +37 -0
- esphome/components/one_wire/__init__.py +42 -0
- esphome/components/one_wire/one_wire.cpp +48 -0
- esphome/components/one_wire/one_wire.h +47 -0
- esphome/components/one_wire/one_wire_bus.cpp +92 -0
- esphome/components/one_wire/one_wire_bus.h +67 -0
- esphome/components/online_image/__init__.py +240 -0
- esphome/components/online_image/bmp_image.cpp +139 -0
- esphome/components/online_image/bmp_image.h +42 -0
- esphome/components/online_image/image_decoder.cpp +73 -0
- esphome/components/online_image/image_decoder.h +121 -0
- esphome/components/online_image/jpeg_image.cpp +94 -0
- esphome/components/online_image/jpeg_image.h +34 -0
- esphome/components/online_image/online_image.cpp +369 -0
- esphome/components/online_image/online_image.h +245 -0
- esphome/components/online_image/png_image.cpp +105 -0
- esphome/components/online_image/png_image.h +40 -0
- esphome/components/opentherm/__init__.py +149 -0
- esphome/components/opentherm/automation.h +25 -0
- esphome/components/opentherm/binary_sensor/__init__.py +31 -0
- esphome/components/opentherm/const.py +12 -0
- esphome/components/opentherm/generate.py +175 -0
- esphome/components/opentherm/hub.cpp +423 -0
- esphome/components/opentherm/hub.h +179 -0
- esphome/components/opentherm/input.h +18 -0
- esphome/components/opentherm/input.py +52 -0
- esphome/components/opentherm/number/__init__.py +66 -0
- esphome/components/opentherm/number/opentherm_number.cpp +42 -0
- esphome/components/opentherm/number/opentherm_number.h +31 -0
- esphome/components/opentherm/opentherm.cpp +601 -0
- esphome/components/opentherm/opentherm.h +399 -0
- esphome/components/opentherm/opentherm_macros.h +162 -0
- esphome/components/opentherm/output/__init__.py +48 -0
- esphome/components/opentherm/output/opentherm_output.cpp +18 -0
- esphome/components/opentherm/output/opentherm_output.h +33 -0
- esphome/components/opentherm/schema.py +891 -0
- esphome/components/opentherm/sensor/__init__.py +50 -0
- esphome/components/opentherm/switch/__init__.py +42 -0
- esphome/components/opentherm/switch/opentherm_switch.cpp +28 -0
- esphome/components/opentherm/switch/opentherm_switch.h +20 -0
- esphome/components/opentherm/validate.py +36 -0
- esphome/components/openthread/__init__.py +192 -0
- esphome/components/openthread/const.py +12 -0
- esphome/components/openthread/openthread.cpp +281 -0
- esphome/components/openthread/openthread.h +96 -0
- esphome/components/openthread/openthread_esp.cpp +214 -0
- esphome/components/openthread_info/__init__.py +0 -0
- esphome/components/openthread_info/openthread_info_text_sensor.cpp +24 -0
- esphome/components/openthread_info/openthread_info_text_sensor.h +218 -0
- esphome/components/openthread_info/text_sensor.py +105 -0
- esphome/components/opt3001/__init__.py +0 -0
- esphome/components/opt3001/opt3001.cpp +122 -0
- esphome/components/opt3001/opt3001.h +27 -0
- esphome/components/opt3001/sensor.py +31 -0
- esphome/components/ota/__init__.py +139 -0
- esphome/components/ota/automation.h +78 -0
- esphome/components/ota/ota_backend.cpp +20 -0
- esphome/components/ota/ota_backend.h +123 -0
- esphome/components/ota/ota_backend_arduino_esp8266.cpp +89 -0
- esphome/components/ota/ota_backend_arduino_esp8266.h +33 -0
- esphome/components/ota/ota_backend_arduino_libretiny.cpp +72 -0
- esphome/components/ota/ota_backend_arduino_libretiny.h +26 -0
- esphome/components/ota/ota_backend_arduino_rp2040.cpp +82 -0
- esphome/components/ota/ota_backend_arduino_rp2040.h +29 -0
- esphome/components/ota/ota_backend_esp_idf.cpp +110 -0
- esphome/components/ota/ota_backend_esp_idf.h +32 -0
- esphome/components/output/__init__.py +147 -0
- esphome/components/output/automation.cpp +10 -0
- esphome/components/output/automation.h +68 -0
- esphome/components/output/binary_output.h +73 -0
- esphome/components/output/button/__init__.py +30 -0
- esphome/components/output/button/output_button.cpp +21 -0
- esphome/components/output/button/output_button.h +25 -0
- esphome/components/output/float_output.cpp +46 -0
- esphome/components/output/float_output.h +89 -0
- esphome/components/output/lock/__init__.py +26 -0
- esphome/components/output/lock/output_lock.cpp +22 -0
- esphome/components/output/lock/output_lock.h +24 -0
- esphome/components/output/switch/__init__.py +29 -0
- esphome/components/output/switch/output_switch.cpp +29 -0
- esphome/components/output/switch/output_switch.h +25 -0
- esphome/components/packages/__init__.py +337 -0
- esphome/components/packet_transport/__init__.py +199 -0
- esphome/components/packet_transport/binary_sensor.py +76 -0
- esphome/components/packet_transport/packet_transport.cpp +571 -0
- esphome/components/packet_transport/packet_transport.h +160 -0
- esphome/components/packet_transport/sensor.py +19 -0
- esphome/components/partition/__init__.py +0 -0
- esphome/components/partition/light.py +121 -0
- esphome/components/partition/light_partition.cpp +10 -0
- esphome/components/partition/light_partition.h +97 -0
- esphome/components/pca6416a/__init__.py +79 -0
- esphome/components/pca6416a/pca6416a.cpp +190 -0
- esphome/components/pca6416a/pca6416a.h +72 -0
- esphome/components/pca9554/__init__.py +87 -0
- esphome/components/pca9554/pca9554.cpp +139 -0
- esphome/components/pca9554/pca9554.h +79 -0
- esphome/components/pca9685/__init__.py +62 -0
- esphome/components/pca9685/output.py +27 -0
- esphome/components/pca9685/pca9685_output.cpp +168 -0
- esphome/components/pca9685/pca9685_output.h +80 -0
- esphome/components/pcd8544/__init__.py +0 -0
- esphome/components/pcd8544/display.py +60 -0
- esphome/components/pcd8544/pcd_8544.cpp +126 -0
- esphome/components/pcd8544/pcd_8544.h +78 -0
- esphome/components/pcf85063/__init__.py +0 -0
- esphome/components/pcf85063/pcf85063.cpp +108 -0
- esphome/components/pcf85063/pcf85063.h +96 -0
- esphome/components/pcf85063/time.py +59 -0
- esphome/components/pcf8563/__init__.py +0 -0
- esphome/components/pcf8563/pcf8563.cpp +108 -0
- esphome/components/pcf8563/pcf8563.h +124 -0
- esphome/components/pcf8563/time.py +62 -0
- esphome/components/pcf8574/__init__.py +76 -0
- esphome/components/pcf8574/pcf8574.cpp +114 -0
- esphome/components/pcf8574/pcf8574.h +74 -0
- esphome/components/pi4ioe5v6408/__init__.py +84 -0
- esphome/components/pi4ioe5v6408/pi4ioe5v6408.cpp +170 -0
- esphome/components/pi4ioe5v6408/pi4ioe5v6408.h +70 -0
- esphome/components/pid/__init__.py +1 -0
- esphome/components/pid/climate.py +192 -0
- esphome/components/pid/pid_autotuner.cpp +361 -0
- esphome/components/pid/pid_autotuner.h +115 -0
- esphome/components/pid/pid_climate.cpp +188 -0
- esphome/components/pid/pid_climate.h +160 -0
- esphome/components/pid/pid_controller.cpp +129 -0
- esphome/components/pid/pid_controller.h +71 -0
- esphome/components/pid/pid_simulator.h +77 -0
- esphome/components/pid/sensor/__init__.py +49 -0
- esphome/components/pid/sensor/pid_climate_sensor.cpp +59 -0
- esphome/components/pid/sensor/pid_climate_sensor.h +37 -0
- esphome/components/pipsolar/__init__.py +32 -0
- esphome/components/pipsolar/binary_sensor/__init__.py +141 -0
- esphome/components/pipsolar/output/__init__.py +107 -0
- esphome/components/pipsolar/output/pipsolar_output.cpp +22 -0
- esphome/components/pipsolar/output/pipsolar_output.h +42 -0
- esphome/components/pipsolar/pipsolar.cpp +786 -0
- esphome/components/pipsolar/pipsolar.h +250 -0
- esphome/components/pipsolar/sensor/__init__.py +324 -0
- esphome/components/pipsolar/switch/__init__.py +51 -0
- esphome/components/pipsolar/switch/pipsolar_switch.cpp +24 -0
- esphome/components/pipsolar/switch/pipsolar_switch.h +25 -0
- esphome/components/pipsolar/text_sensor/__init__.py +41 -0
- esphome/components/pm1006/__init__.py +0 -0
- esphome/components/pm1006/pm1006.cpp +99 -0
- esphome/components/pm1006/pm1006.h +39 -0
- esphome/components/pm1006/sensor.py +67 -0
- esphome/components/pm2005/__init__.py +1 -0
- esphome/components/pm2005/pm2005.cpp +121 -0
- esphome/components/pm2005/pm2005.h +46 -0
- esphome/components/pm2005/sensor.py +86 -0
- esphome/components/pmsa003i/__init__.py +0 -0
- esphome/components/pmsa003i/pmsa003i.cpp +135 -0
- esphome/components/pmsa003i/pmsa003i.h +67 -0
- esphome/components/pmsa003i/sensor.py +127 -0
- esphome/components/pmsx003/__init__.py +0 -0
- esphome/components/pmsx003/pmsx003.cpp +318 -0
- esphome/components/pmsx003/pmsx003.h +121 -0
- esphome/components/pmsx003/sensor.py +281 -0
- esphome/components/pmwcs3/__init__.py +1 -0
- esphome/components/pmwcs3/pmwcs3.cpp +112 -0
- esphome/components/pmwcs3/pmwcs3.h +69 -0
- esphome/components/pmwcs3/sensor.py +139 -0
- esphome/components/pn532/__init__.py +96 -0
- esphome/components/pn532/binary_sensor.py +48 -0
- esphome/components/pn532/pn532.cpp +463 -0
- esphome/components/pn532/pn532.h +150 -0
- esphome/components/pn532/pn532_mifare_classic.cpp +262 -0
- esphome/components/pn532/pn532_mifare_ultralight.cpp +192 -0
- esphome/components/pn532_i2c/__init__.py +26 -0
- esphome/components/pn532_i2c/pn532_i2c.cpp +129 -0
- esphome/components/pn532_i2c/pn532_i2c.h +25 -0
- esphome/components/pn532_spi/__init__.py +26 -0
- esphome/components/pn532_spi/pn532_spi.cpp +136 -0
- esphome/components/pn532_spi/pn532_spi.h +28 -0
- esphome/components/pn7150/__init__.py +215 -0
- esphome/components/pn7150/automation.h +82 -0
- esphome/components/pn7150/pn7150.cpp +1143 -0
- esphome/components/pn7150/pn7150.h +295 -0
- esphome/components/pn7150/pn7150_mifare_classic.cpp +322 -0
- esphome/components/pn7150/pn7150_mifare_ultralight.cpp +186 -0
- esphome/components/pn7150_i2c/__init__.py +25 -0
- esphome/components/pn7150_i2c/pn7150_i2c.cpp +49 -0
- esphome/components/pn7150_i2c/pn7150_i2c.h +22 -0
- esphome/components/pn7160/__init__.py +227 -0
- esphome/components/pn7160/automation.h +82 -0
- esphome/components/pn7160/pn7160.cpp +1167 -0
- esphome/components/pn7160/pn7160.h +314 -0
- esphome/components/pn7160/pn7160_mifare_classic.cpp +322 -0
- esphome/components/pn7160/pn7160_mifare_ultralight.cpp +186 -0
- esphome/components/pn7160_i2c/__init__.py +25 -0
- esphome/components/pn7160_i2c/pn7160_i2c.cpp +49 -0
- esphome/components/pn7160_i2c/pn7160_i2c.h +22 -0
- esphome/components/pn7160_spi/__init__.py +26 -0
- esphome/components/pn7160_spi/pn7160_spi.cpp +54 -0
- esphome/components/pn7160_spi/pn7160_spi.h +30 -0
- esphome/components/power_supply/__init__.py +42 -0
- esphome/components/power_supply/power_supply.cpp +58 -0
- esphome/components/power_supply/power_supply.h +67 -0
- esphome/components/preferences/__init__.py +22 -0
- esphome/components/preferences/syncer.h +32 -0
- esphome/components/prometheus/__init__.py +52 -0
- esphome/components/prometheus/prometheus_handler.cpp +1093 -0
- esphome/components/prometheus/prometheus_handler.h +221 -0
- esphome/components/psram/__init__.py +210 -0
- esphome/components/psram/psram.cpp +31 -0
- esphome/components/psram/psram.h +17 -0
- esphome/components/pulse_counter/__init__.py +0 -0
- esphome/components/pulse_counter/automation.h +24 -0
- esphome/components/pulse_counter/pulse_counter_sensor.cpp +201 -0
- esphome/components/pulse_counter/pulse_counter_sensor.h +90 -0
- esphome/components/pulse_counter/sensor.py +159 -0
- esphome/components/pulse_meter/__init__.py +0 -0
- esphome/components/pulse_meter/automation.h +24 -0
- esphome/components/pulse_meter/pulse_meter_sensor.cpp +189 -0
- esphome/components/pulse_meter/pulse_meter_sensor.h +83 -0
- esphome/components/pulse_meter/sensor.py +114 -0
- esphome/components/pulse_width/__init__.py +0 -0
- esphome/components/pulse_width/pulse_width.cpp +31 -0
- esphome/components/pulse_width/pulse_width.h +43 -0
- esphome/components/pulse_width/sensor.py +35 -0
- esphome/components/pvvx_mithermometer/__init__.py +0 -0
- esphome/components/pvvx_mithermometer/display/__init__.py +55 -0
- esphome/components/pvvx_mithermometer/display/pvvx_display.cpp +189 -0
- esphome/components/pvvx_mithermometer/display/pvvx_display.h +136 -0
- esphome/components/pvvx_mithermometer/pvvx_mithermometer.cpp +141 -0
- esphome/components/pvvx_mithermometer/pvvx_mithermometer.h +50 -0
- esphome/components/pvvx_mithermometer/sensor.py +100 -0
- esphome/components/pylontech/__init__.py +47 -0
- esphome/components/pylontech/pylontech.cpp +103 -0
- esphome/components/pylontech/pylontech.h +53 -0
- esphome/components/pylontech/sensor/__init__.py +92 -0
- esphome/components/pylontech/sensor/pylontech_sensor.cpp +62 -0
- esphome/components/pylontech/sensor/pylontech_sensor.h +32 -0
- esphome/components/pylontech/text_sensor/__init__.py +36 -0
- esphome/components/pylontech/text_sensor/pylontech_text_sensor.cpp +42 -0
- esphome/components/pylontech/text_sensor/pylontech_text_sensor.h +26 -0
- esphome/components/pzem004t/__init__.py +0 -0
- esphome/components/pzem004t/pzem004t.cpp +127 -0
- esphome/components/pzem004t/pzem004t.h +46 -0
- esphome/components/pzem004t/sensor.py +82 -0
- esphome/components/pzemac/__init__.py +0 -0
- esphome/components/pzemac/pzemac.cpp +87 -0
- esphome/components/pzemac/pzemac.h +53 -0
- esphome/components/pzemac/sensor.py +125 -0
- esphome/components/pzemdc/__init__.py +0 -0
- esphome/components/pzemdc/pzemdc.cpp +75 -0
- esphome/components/pzemdc/pzemdc.h +46 -0
- esphome/components/pzemdc/sensor.py +101 -0
- esphome/components/qmc5883l/__init__.py +0 -0
- esphome/components/qmc5883l/qmc5883l.cpp +189 -0
- esphome/components/qmc5883l/qmc5883l.h +66 -0
- esphome/components/qmc5883l/sensor.py +164 -0
- esphome/components/qmp6988/__init__.py +1 -0
- esphome/components/qmp6988/qmp6988.cpp +350 -0
- esphome/components/qmp6988/qmp6988.h +110 -0
- esphome/components/qmp6988/sensor.py +101 -0
- esphome/components/qr_code/__init__.py +44 -0
- esphome/components/qr_code/qr_code.cpp +69 -0
- esphome/components/qr_code/qr_code.h +36 -0
- esphome/components/qspi_amoled/display.py +3 -0
- esphome/components/qspi_dbi/__init__.py +3 -0
- esphome/components/qspi_dbi/display.py +212 -0
- esphome/components/qspi_dbi/models.py +309 -0
- esphome/components/qspi_dbi/qspi_dbi.cpp +221 -0
- esphome/components/qspi_dbi/qspi_dbi.h +173 -0
- esphome/components/qwiic_pir/__init__.py +0 -0
- esphome/components/qwiic_pir/binary_sensor.py +63 -0
- esphome/components/qwiic_pir/qwiic_pir.cpp +133 -0
- esphome/components/qwiic_pir/qwiic_pir.h +69 -0
- esphome/components/radon_eye_ble/__init__.py +23 -0
- esphome/components/radon_eye_ble/radon_eye_listener.cpp +32 -0
- esphome/components/radon_eye_ble/radon_eye_listener.h +19 -0
- esphome/components/radon_eye_rd200/__init__.py +1 -0
- esphome/components/radon_eye_rd200/radon_eye_rd200.cpp +179 -0
- esphome/components/radon_eye_rd200/radon_eye_rd200.h +59 -0
- esphome/components/radon_eye_rd200/sensor.py +54 -0
- esphome/components/rc522/__init__.py +56 -0
- esphome/components/rc522/binary_sensor.py +48 -0
- esphome/components/rc522/rc522.cpp +483 -0
- esphome/components/rc522/rc522.h +279 -0
- esphome/components/rc522_i2c/__init__.py +26 -0
- esphome/components/rc522_i2c/rc522_i2c.cpp +70 -0
- esphome/components/rc522_i2c/rc522_i2c.h +42 -0
- esphome/components/rc522_spi/__init__.py +30 -0
- esphome/components/rc522_spi/binary_sensor.py +9 -0
- esphome/components/rc522_spi/rc522_spi.cpp +139 -0
- esphome/components/rc522_spi/rc522_spi.h +54 -0
- esphome/components/rdm6300/__init__.py +41 -0
- esphome/components/rdm6300/binary_sensor.py +28 -0
- esphome/components/rdm6300/rdm6300.cpp +69 -0
- esphome/components/rdm6300/rdm6300.h +56 -0
- esphome/components/remote_base/__init__.py +2199 -0
- esphome/components/remote_base/abbwelcome_protocol.cpp +123 -0
- esphome/components/remote_base/abbwelcome_protocol.h +256 -0
- esphome/components/remote_base/aeha_protocol.cpp +102 -0
- esphome/components/remote_base/aeha_protocol.h +46 -0
- esphome/components/remote_base/beo4_protocol.cpp +153 -0
- esphome/components/remote_base/beo4_protocol.h +43 -0
- esphome/components/remote_base/byronsx_protocol.cpp +139 -0
- esphome/components/remote_base/byronsx_protocol.h +46 -0
- esphome/components/remote_base/canalsat_protocol.cpp +108 -0
- esphome/components/remote_base/canalsat_protocol.h +78 -0
- esphome/components/remote_base/coolix_protocol.cpp +113 -0
- esphome/components/remote_base/coolix_protocol.h +41 -0
- esphome/components/remote_base/dish_protocol.cpp +94 -0
- esphome/components/remote_base/dish_protocol.h +38 -0
- esphome/components/remote_base/dooya_protocol.cpp +120 -0
- esphome/components/remote_base/dooya_protocol.h +49 -0
- esphome/components/remote_base/drayton_protocol.cpp +240 -0
- esphome/components/remote_base/drayton_protocol.h +46 -0
- esphome/components/remote_base/dyson_protocol.cpp +71 -0
- esphome/components/remote_base/dyson_protocol.h +46 -0
- esphome/components/remote_base/gobox_protocol.cpp +131 -0
- esphome/components/remote_base/gobox_protocol.h +54 -0
- esphome/components/remote_base/haier_protocol.cpp +84 -0
- esphome/components/remote_base/haier_protocol.h +39 -0
- esphome/components/remote_base/jvc_protocol.cpp +52 -0
- esphome/components/remote_base/jvc_protocol.h +37 -0
- esphome/components/remote_base/keeloq_protocol.cpp +194 -0
- esphome/components/remote_base/keeloq_protocol.h +53 -0
- esphome/components/remote_base/lg_protocol.cpp +58 -0
- esphome/components/remote_base/lg_protocol.h +41 -0
- esphome/components/remote_base/magiquest_protocol.cpp +83 -0
- esphome/components/remote_base/magiquest_protocol.h +52 -0
- esphome/components/remote_base/midea_protocol.cpp +76 -0
- esphome/components/remote_base/midea_protocol.h +83 -0
- esphome/components/remote_base/mirage_protocol.cpp +84 -0
- esphome/components/remote_base/mirage_protocol.h +39 -0
- esphome/components/remote_base/nec_protocol.cpp +102 -0
- esphome/components/remote_base/nec_protocol.h +41 -0
- esphome/components/remote_base/nexa_protocol.cpp +240 -0
- esphome/components/remote_base/nexa_protocol.h +54 -0
- esphome/components/remote_base/panasonic_protocol.cpp +74 -0
- esphome/components/remote_base/panasonic_protocol.h +41 -0
- esphome/components/remote_base/pioneer_protocol.cpp +156 -0
- esphome/components/remote_base/pioneer_protocol.h +38 -0
- esphome/components/remote_base/pronto_protocol.cpp +244 -0
- esphome/components/remote_base/pronto_protocol.h +55 -0
- esphome/components/remote_base/raw_protocol.cpp +47 -0
- esphome/components/remote_base/raw_protocol.h +86 -0
- esphome/components/remote_base/rc5_protocol.cpp +90 -0
- esphome/components/remote_base/rc5_protocol.h +39 -0
- esphome/components/remote_base/rc6_protocol.cpp +181 -0
- esphome/components/remote_base/rc6_protocol.h +46 -0
- esphome/components/remote_base/rc_switch_protocol.cpp +271 -0
- esphome/components/remote_base/rc_switch_protocol.h +221 -0
- esphome/components/remote_base/remote_base.cpp +171 -0
- esphome/components/remote_base/remote_base.h +308 -0
- esphome/components/remote_base/roomba_protocol.cpp +56 -0
- esphome/components/remote_base/roomba_protocol.h +35 -0
- esphome/components/remote_base/samsung36_protocol.cpp +103 -0
- esphome/components/remote_base/samsung36_protocol.h +41 -0
- esphome/components/remote_base/samsung_protocol.cpp +65 -0
- esphome/components/remote_base/samsung_protocol.h +39 -0
- esphome/components/remote_base/sony_protocol.cpp +69 -0
- esphome/components/remote_base/sony_protocol.h +41 -0
- esphome/components/remote_base/symphony_protocol.cpp +120 -0
- esphome/components/remote_base/symphony_protocol.h +44 -0
- esphome/components/remote_base/toshiba_ac_protocol.cpp +115 -0
- esphome/components/remote_base/toshiba_ac_protocol.h +39 -0
- esphome/components/remote_base/toto_protocol.cpp +100 -0
- esphome/components/remote_base/toto_protocol.h +45 -0
- esphome/components/remote_receiver/__init__.py +220 -0
- esphome/components/remote_receiver/binary_sensor.py +10 -0
- esphome/components/remote_receiver/remote_receiver.cpp +142 -0
- esphome/components/remote_receiver/remote_receiver.h +106 -0
- esphome/components/remote_receiver/remote_receiver_esp32.cpp +252 -0
- esphome/components/remote_transmitter/__init__.py +162 -0
- esphome/components/remote_transmitter/automation.h +18 -0
- esphome/components/remote_transmitter/remote_transmitter.cpp +114 -0
- esphome/components/remote_transmitter/remote_transmitter.h +104 -0
- esphome/components/remote_transmitter/remote_transmitter_esp32.cpp +364 -0
- esphome/components/resampler/__init__.py +0 -0
- esphome/components/resampler/speaker/__init__.py +102 -0
- esphome/components/resampler/speaker/resampler_speaker.cpp +320 -0
- esphome/components/resampler/speaker/resampler_speaker.h +109 -0
- esphome/components/resistance/__init__.py +0 -0
- esphome/components/resistance/resistance_sensor.cpp +47 -0
- esphome/components/resistance/resistance_sensor.h +37 -0
- esphome/components/resistance/sensor.py +52 -0
- esphome/components/restart/__init__.py +1 -0
- esphome/components/restart/button/__init__.py +25 -0
- esphome/components/restart/button/restart_button.cpp +20 -0
- esphome/components/restart/button/restart_button.h +18 -0
- esphome/components/restart/switch/__init__.py +19 -0
- esphome/components/restart/switch/restart_switch.cpp +25 -0
- esphome/components/restart/switch/restart_switch.h +18 -0
- esphome/components/rf_bridge/__init__.py +238 -0
- esphome/components/rf_bridge/rf_bridge.cpp +236 -0
- esphome/components/rf_bridge/rf_bridge.h +196 -0
- esphome/components/rgb/__init__.py +0 -0
- esphome/components/rgb/light.py +28 -0
- esphome/components/rgb/rgb_light_output.h +36 -0
- esphome/components/rgbct/__init__.py +0 -0
- esphome/components/rgbct/light.py +59 -0
- esphome/components/rgbct/rgbct_light_output.h +59 -0
- esphome/components/rgbw/__init__.py +0 -0
- esphome/components/rgbw/light.py +40 -0
- esphome/components/rgbw/rgbw_light_output.h +44 -0
- esphome/components/rgbww/__init__.py +0 -0
- esphome/components/rgbww/light.py +69 -0
- esphome/components/rgbww/rgbww_light_output.h +55 -0
- esphome/components/rotary_encoder/__init__.py +0 -0
- esphome/components/rotary_encoder/rotary_encoder.cpp +247 -0
- esphome/components/rotary_encoder/rotary_encoder.h +138 -0
- esphome/components/rotary_encoder/sensor.py +148 -0
- esphome/components/rp2040/__init__.py +255 -0
- esphome/components/rp2040/boards.py +28 -0
- esphome/components/rp2040/build_pio.py.script +47 -0
- esphome/components/rp2040/const.py +7 -0
- esphome/components/rp2040/core.cpp +40 -0
- esphome/components/rp2040/core.h +14 -0
- esphome/components/rp2040/gpio.cpp +120 -0
- esphome/components/rp2040/gpio.h +39 -0
- esphome/components/rp2040/gpio.py +102 -0
- esphome/components/rp2040/helpers.cpp +59 -0
- esphome/components/rp2040/post_build.py.script +23 -0
- esphome/components/rp2040/preferences.cpp +160 -0
- esphome/components/rp2040/preferences.h +14 -0
- esphome/components/rp2040_pio/__init__.py +39 -0
- esphome/components/rp2040_pio_led_strip/__init__.py +1 -0
- esphome/components/rp2040_pio_led_strip/led_strip.cpp +216 -0
- esphome/components/rp2040_pio_led_strip/led_strip.h +133 -0
- esphome/components/rp2040_pio_led_strip/light.py +280 -0
- esphome/components/rp2040_pwm/__init__.py +0 -0
- esphome/components/rp2040_pwm/output.py +51 -0
- esphome/components/rp2040_pwm/rp2040_pwm.cpp +64 -0
- esphome/components/rp2040_pwm/rp2040_pwm.h +59 -0
- esphome/components/rpi_dpi_rgb/__init__.py +1 -0
- esphome/components/rpi_dpi_rgb/display.py +198 -0
- esphome/components/rpi_dpi_rgb/rpi_dpi_rgb.cpp +159 -0
- esphome/components/rpi_dpi_rgb/rpi_dpi_rgb.h +97 -0
- esphome/components/rtl87xx/__init__.py +61 -0
- esphome/components/rtl87xx/boards.py +1404 -0
- esphome/components/rtttl/__init__.py +156 -0
- esphome/components/rtttl/rtttl.cpp +412 -0
- esphome/components/rtttl/rtttl.h +149 -0
- esphome/components/runtime_stats/__init__.py +34 -0
- esphome/components/runtime_stats/runtime_stats.cpp +89 -0
- esphome/components/runtime_stats/runtime_stats.h +126 -0
- esphome/components/ruuvi_ble/__init__.py +22 -0
- esphome/components/ruuvi_ble/ruuvi_ble.cpp +144 -0
- esphome/components/ruuvi_ble/ruuvi_ble.h +37 -0
- esphome/components/ruuvitag/__init__.py +0 -0
- esphome/components/ruuvitag/ruuvitag.cpp +29 -0
- esphome/components/ruuvitag/ruuvitag.h +83 -0
- esphome/components/ruuvitag/sensor.py +163 -0
- esphome/components/rx8130/__init__.py +0 -0
- esphome/components/rx8130/rx8130.cpp +128 -0
- esphome/components/rx8130/rx8130.h +35 -0
- esphome/components/rx8130/time.py +56 -0
- esphome/components/safe_mode/__init__.py +74 -0
- esphome/components/safe_mode/automation.h +17 -0
- esphome/components/safe_mode/button/__init__.py +34 -0
- esphome/components/safe_mode/button/safe_mode_button.cpp +27 -0
- esphome/components/safe_mode/button/safe_mode_button.h +21 -0
- esphome/components/safe_mode/safe_mode.cpp +136 -0
- esphome/components/safe_mode/safe_mode.h +53 -0
- esphome/components/safe_mode/switch/__init__.py +29 -0
- esphome/components/safe_mode/switch/safe_mode_switch.cpp +32 -0
- esphome/components/safe_mode/switch/safe_mode_switch.h +21 -0
- esphome/components/scd30/__init__.py +0 -0
- esphome/components/scd30/automation.h +23 -0
- esphome/components/scd30/scd30.cpp +234 -0
- esphome/components/scd30/scd30.h +52 -0
- esphome/components/scd30/sensor.py +139 -0
- esphome/components/scd4x/__init__.py +0 -0
- esphome/components/scd4x/automation.h +28 -0
- esphome/components/scd4x/scd4x.cpp +327 -0
- esphome/components/scd4x/scd4x.h +63 -0
- esphome/components/scd4x/sensor.py +166 -0
- esphome/components/script/__init__.py +239 -0
- esphome/components/script/script.cpp +20 -0
- esphome/components/script/script.h +342 -0
- esphome/components/sdl/__init__.py +1 -0
- esphome/components/sdl/binary_sensor.py +285 -0
- esphome/components/sdl/display.py +114 -0
- esphome/components/sdl/sdl_esphome.cpp +130 -0
- esphome/components/sdl/sdl_esphome.h +72 -0
- esphome/components/sdl/touchscreen/__init__.py +22 -0
- esphome/components/sdl/touchscreen/sdl_touchscreen.h +26 -0
- esphome/components/sdm_meter/__init__.py +0 -0
- esphome/components/sdm_meter/sdm_meter.cpp +114 -0
- esphome/components/sdm_meter/sdm_meter.h +83 -0
- esphome/components/sdm_meter/sdm_meter_registers.h +114 -0
- esphome/components/sdm_meter/sensor.py +176 -0
- esphome/components/sdp3x/__init__.py +0 -0
- esphome/components/sdp3x/sdp3x.cpp +120 -0
- esphome/components/sdp3x/sdp3x.h +30 -0
- esphome/components/sdp3x/sensor.py +52 -0
- esphome/components/sds011/__init__.py +0 -0
- esphome/components/sds011/sds011.cpp +190 -0
- esphome/components/sds011/sds011.h +52 -0
- esphome/components/sds011/sensor.py +81 -0
- esphome/components/seeed_mr24hpc1/__init__.py +51 -0
- esphome/components/seeed_mr24hpc1/binary_sensor.py +20 -0
- esphome/components/seeed_mr24hpc1/button/__init__.py +43 -0
- esphome/components/seeed_mr24hpc1/button/custom_mode_end_button.cpp +9 -0
- esphome/components/seeed_mr24hpc1/button/custom_mode_end_button.h +18 -0
- esphome/components/seeed_mr24hpc1/button/restart_button.cpp +9 -0
- esphome/components/seeed_mr24hpc1/button/restart_button.h +18 -0
- esphome/components/seeed_mr24hpc1/number/__init__.py +130 -0
- esphome/components/seeed_mr24hpc1/number/custom_mode_number.cpp +12 -0
- esphome/components/seeed_mr24hpc1/number/custom_mode_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/custom_unman_time_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/custom_unman_time_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/existence_threshold_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/existence_threshold_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/motion_threshold_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/motion_threshold_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/motion_trigger_time_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/motion_trigger_time_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/motiontorest_time_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/motiontorest_time_number.h +18 -0
- esphome/components/seeed_mr24hpc1/number/sensitivity_number.cpp +9 -0
- esphome/components/seeed_mr24hpc1/number/sensitivity_number.h +18 -0
- esphome/components/seeed_mr24hpc1/seeed_mr24hpc1.cpp +889 -0
- esphome/components/seeed_mr24hpc1/seeed_mr24hpc1.h +217 -0
- esphome/components/seeed_mr24hpc1/seeed_mr24hpc1_constants.h +173 -0
- esphome/components/seeed_mr24hpc1/select/__init__.py +102 -0
- esphome/components/seeed_mr24hpc1/select/existence_boundary_select.cpp +12 -0
- esphome/components/seeed_mr24hpc1/select/existence_boundary_select.h +18 -0
- esphome/components/seeed_mr24hpc1/select/motion_boundary_select.cpp +12 -0
- esphome/components/seeed_mr24hpc1/select/motion_boundary_select.h +18 -0
- esphome/components/seeed_mr24hpc1/select/scene_mode_select.cpp +12 -0
- esphome/components/seeed_mr24hpc1/select/scene_mode_select.h +18 -0
- esphome/components/seeed_mr24hpc1/select/unman_time_select.cpp +12 -0
- esphome/components/seeed_mr24hpc1/select/unman_time_select.h +18 -0
- esphome/components/seeed_mr24hpc1/sensor.py +83 -0
- esphome/components/seeed_mr24hpc1/switch/__init__.py +30 -0
- esphome/components/seeed_mr24hpc1/switch/underlyFuc_switch.cpp +12 -0
- esphome/components/seeed_mr24hpc1/switch/underlyFuc_switch.h +18 -0
- esphome/components/seeed_mr24hpc1/text_sensor.py +75 -0
- esphome/components/seeed_mr60bha2/__init__.py +41 -0
- esphome/components/seeed_mr60bha2/binary_sensor.py +23 -0
- esphome/components/seeed_mr60bha2/seeed_mr60bha2.cpp +198 -0
- esphome/components/seeed_mr60bha2/seeed_mr60bha2.h +50 -0
- esphome/components/seeed_mr60bha2/sensor.py +65 -0
- esphome/components/seeed_mr60fda2/__init__.py +41 -0
- esphome/components/seeed_mr60fda2/binary_sensor.py +33 -0
- esphome/components/seeed_mr60fda2/button/__init__.py +45 -0
- esphome/components/seeed_mr60fda2/button/get_radar_parameters_button.cpp +9 -0
- esphome/components/seeed_mr60fda2/button/get_radar_parameters_button.h +18 -0
- esphome/components/seeed_mr60fda2/button/reset_radar_button.cpp +9 -0
- esphome/components/seeed_mr60fda2/button/reset_radar_button.h +18 -0
- esphome/components/seeed_mr60fda2/seeed_mr60fda2.cpp +366 -0
- esphome/components/seeed_mr60fda2/seeed_mr60fda2.h +101 -0
- esphome/components/seeed_mr60fda2/select/__init__.py +58 -0
- esphome/components/seeed_mr60fda2/select/height_threshold_select.cpp +12 -0
- esphome/components/seeed_mr60fda2/select/height_threshold_select.h +18 -0
- esphome/components/seeed_mr60fda2/select/install_height_select.cpp +12 -0
- esphome/components/seeed_mr60fda2/select/install_height_select.h +18 -0
- esphome/components/seeed_mr60fda2/select/sensitivity_select.cpp +12 -0
- esphome/components/seeed_mr60fda2/select/sensitivity_select.h +18 -0
- esphome/components/selec_meter/__init__.py +0 -0
- esphome/components/selec_meter/selec_meter.cpp +111 -0
- esphome/components/selec_meter/selec_meter.h +47 -0
- esphome/components/selec_meter/selec_meter_registers.h +32 -0
- esphome/components/selec_meter/sensor.py +165 -0
- esphome/components/select/__init__.py +241 -0
- esphome/components/select/automation.h +65 -0
- esphome/components/select/select.cpp +86 -0
- esphome/components/select/select.h +117 -0
- esphome/components/select/select_call.cpp +123 -0
- esphome/components/select/select_call.h +49 -0
- esphome/components/select/select_traits.cpp +16 -0
- esphome/components/select/select_traits.h +18 -0
- esphome/components/sen0321/__init__.py +1 -0
- esphome/components/sen0321/sen0321.cpp +35 -0
- esphome/components/sen0321/sen0321.h +35 -0
- esphome/components/sen0321/sensor.py +34 -0
- esphome/components/sen21231/__init__.py +0 -0
- esphome/components/sen21231/sen21231.cpp +32 -0
- esphome/components/sen21231/sen21231.h +77 -0
- esphome/components/sen21231/sensor.py +24 -0
- esphome/components/sen5x/__init__.py +0 -0
- esphome/components/sen5x/automation.h +21 -0
- esphome/components/sen5x/sen5x.cpp +447 -0
- esphome/components/sen5x/sen5x.h +139 -0
- esphome/components/sen5x/sensor.py +273 -0
- esphome/components/senseair/__init__.py +0 -0
- esphome/components/senseair/senseair.cpp +154 -0
- esphome/components/senseair/senseair.h +92 -0
- esphome/components/senseair/sensor.py +93 -0
- esphome/components/sensirion_common/__init__.py +8 -0
- esphome/components/sensirion_common/i2c_sensirion.cpp +101 -0
- esphome/components/sensirion_common/i2c_sensirion.h +142 -0
- esphome/components/sensor/__init__.py +1199 -0
- esphome/components/sensor/automation.cpp +10 -0
- esphome/components/sensor/automation.h +111 -0
- esphome/components/sensor/filter.cpp +578 -0
- esphome/components/sensor/filter.h +636 -0
- esphome/components/sensor/sensor.cpp +144 -0
- esphome/components/sensor/sensor.h +147 -0
- esphome/components/servo/__init__.py +85 -0
- esphome/components/servo/servo.cpp +110 -0
- esphome/components/servo/servo.h +77 -0
- esphome/components/sfa30/__init__.py +1 -0
- esphome/components/sfa30/sensor.py +77 -0
- esphome/components/sfa30/sfa30.cpp +95 -0
- esphome/components/sfa30/sfa30.h +33 -0
- esphome/components/sgp30/__init__.py +0 -0
- esphome/components/sgp30/sensor.py +116 -0
- esphome/components/sgp30/sgp30.cpp +304 -0
- esphome/components/sgp30/sgp30.h +71 -0
- esphome/components/sgp40/__init__.py +0 -0
- esphome/components/sgp40/sensor.py +8 -0
- esphome/components/sgp4x/__init__.py +0 -0
- esphome/components/sgp4x/sensor.py +145 -0
- esphome/components/sgp4x/sgp4x.cpp +296 -0
- esphome/components/sgp4x/sgp4x.h +143 -0
- esphome/components/sha256/__init__.py +22 -0
- esphome/components/sha256/sha256.cpp +116 -0
- esphome/components/sha256/sha256.h +60 -0
- esphome/components/shelly_dimmer/__init__.py +1 -0
- esphome/components/shelly_dimmer/dev_table.h +159 -0
- esphome/components/shelly_dimmer/light.py +221 -0
- esphome/components/shelly_dimmer/shelly_dimmer.cpp +529 -0
- esphome/components/shelly_dimmer/shelly_dimmer.h +123 -0
- esphome/components/shelly_dimmer/stm32flash.cpp +1065 -0
- esphome/components/shelly_dimmer/stm32flash.h +131 -0
- esphome/components/sht3xd/__init__.py +0 -0
- esphome/components/sht3xd/sensor.py +64 -0
- esphome/components/sht3xd/sht3xd.cpp +105 -0
- esphome/components/sht3xd/sht3xd.h +39 -0
- esphome/components/sht4x/__init__.py +0 -0
- esphome/components/sht4x/sensor.py +103 -0
- esphome/components/sht4x/sht4x.cpp +126 -0
- esphome/components/sht4x/sht4x.h +48 -0
- esphome/components/shtcx/__init__.py +0 -0
- esphome/components/shtcx/sensor.py +59 -0
- esphome/components/shtcx/shtcx.cpp +121 -0
- esphome/components/shtcx/shtcx.h +34 -0
- esphome/components/shutdown/__init__.py +1 -0
- esphome/components/shutdown/button/__init__.py +17 -0
- esphome/components/shutdown/button/shutdown_button.cpp +33 -0
- esphome/components/shutdown/button/shutdown_button.h +18 -0
- esphome/components/shutdown/switch/__init__.py +19 -0
- esphome/components/shutdown/switch/shutdown_switch.cpp +38 -0
- esphome/components/shutdown/switch/shutdown_switch.h +18 -0
- esphome/components/sigma_delta_output/__init__.py +1 -0
- esphome/components/sigma_delta_output/output.py +61 -0
- esphome/components/sigma_delta_output/sigma_delta_output.cpp +57 -0
- esphome/components/sigma_delta_output/sigma_delta_output.h +47 -0
- esphome/components/sim800l/__init__.py +203 -0
- esphome/components/sim800l/binary_sensor.py +26 -0
- esphome/components/sim800l/sensor.py +34 -0
- esphome/components/sim800l/sim800l.cpp +493 -0
- esphome/components/sim800l/sim800l.h +223 -0
- esphome/components/slow_pwm/__init__.py +0 -0
- esphome/components/slow_pwm/output.py +71 -0
- esphome/components/slow_pwm/slow_pwm_output.cpp +80 -0
- esphome/components/slow_pwm/slow_pwm_output.h +61 -0
- esphome/components/sm10bit_base/__init__.py +40 -0
- esphome/components/sm10bit_base/sm10bit_base.cpp +131 -0
- esphome/components/sm10bit_base/sm10bit_base.h +63 -0
- esphome/components/sm16716/__init__.py +38 -0
- esphome/components/sm16716/output.py +28 -0
- esphome/components/sm16716/sm16716.cpp +51 -0
- esphome/components/sm16716/sm16716.h +72 -0
- esphome/components/sm2135/__init__.py +67 -0
- esphome/components/sm2135/output.py +29 -0
- esphome/components/sm2135/sm2135.cpp +151 -0
- esphome/components/sm2135/sm2135.h +90 -0
- esphome/components/sm2235/__init__.py +22 -0
- esphome/components/sm2235/output.py +29 -0
- esphome/components/sm2235/sm2235.cpp +28 -0
- esphome/components/sm2235/sm2235.h +19 -0
- esphome/components/sm2335/__init__.py +22 -0
- esphome/components/sm2335/output.py +29 -0
- esphome/components/sm2335/sm2335.cpp +28 -0
- esphome/components/sm2335/sm2335.h +19 -0
- esphome/components/sm300d2/__init__.py +0 -0
- esphome/components/sm300d2/sensor.py +117 -0
- esphome/components/sm300d2/sm300d2.cpp +108 -0
- esphome/components/sm300d2/sm300d2.h +36 -0
- esphome/components/sml/__init__.py +68 -0
- esphome/components/sml/automation.h +19 -0
- esphome/components/sml/constants.h +27 -0
- esphome/components/sml/sensor/__init__.py +30 -0
- esphome/components/sml/sensor/sml_sensor.cpp +41 -0
- esphome/components/sml/sensor/sml_sensor.h +16 -0
- esphome/components/sml/sml.cpp +148 -0
- esphome/components/sml/sml.h +48 -0
- esphome/components/sml/sml_parser.cpp +153 -0
- esphome/components/sml/sml_parser.h +84 -0
- esphome/components/sml/text_sensor/__init__.py +41 -0
- esphome/components/sml/text_sensor/sml_text_sensor.cpp +54 -0
- esphome/components/sml/text_sensor/sml_text_sensor.h +21 -0
- esphome/components/smt100/__init__.py +1 -0
- esphome/components/smt100/sensor.py +97 -0
- esphome/components/smt100/smt100.cpp +84 -0
- esphome/components/smt100/smt100.h +43 -0
- esphome/components/sn74hc165/__init__.py +95 -0
- esphome/components/sn74hc165/sn74hc165.cpp +70 -0
- esphome/components/sn74hc165/sn74hc165.h +64 -0
- esphome/components/sn74hc595/__init__.py +121 -0
- esphome/components/sn74hc595/sn74hc595.cpp +99 -0
- esphome/components/sn74hc595/sn74hc595.h +97 -0
- esphome/components/sntp/__init__.py +0 -0
- esphome/components/sntp/sntp_component.cpp +106 -0
- esphome/components/sntp/sntp_component.h +46 -0
- esphome/components/sntp/time.py +126 -0
- esphome/components/socket/__init__.py +113 -0
- esphome/components/socket/bsd_sockets_impl.cpp +188 -0
- esphome/components/socket/headers.h +185 -0
- esphome/components/socket/lwip_raw_tcp_impl.cpp +717 -0
- esphome/components/socket/lwip_sockets_impl.cpp +163 -0
- esphome/components/socket/socket.cpp +118 -0
- esphome/components/socket/socket.h +96 -0
- esphome/components/sonoff_d1/__init__.py +1 -0
- esphome/components/sonoff_d1/light.py +39 -0
- esphome/components/sonoff_d1/sonoff_d1.cpp +312 -0
- esphome/components/sonoff_d1/sonoff_d1.h +85 -0
- esphome/components/sound_level/__init__.py +0 -0
- esphome/components/sound_level/sensor.py +97 -0
- esphome/components/sound_level/sound_level.cpp +196 -0
- esphome/components/sound_level/sound_level.h +73 -0
- esphome/components/speaker/__init__.py +147 -0
- esphome/components/speaker/automation.h +88 -0
- esphome/components/speaker/media_player/__init__.py +452 -0
- esphome/components/speaker/media_player/audio_pipeline.cpp +577 -0
- esphome/components/speaker/media_player/audio_pipeline.h +160 -0
- esphome/components/speaker/media_player/automation.h +26 -0
- esphome/components/speaker/media_player/speaker_media_player.cpp +555 -0
- esphome/components/speaker/media_player/speaker_media_player.h +151 -0
- esphome/components/speaker/speaker.h +127 -0
- esphome/components/speed/__init__.py +3 -0
- esphome/components/speed/fan/__init__.py +52 -0
- esphome/components/speed/fan/speed_fan.cpp +48 -0
- esphome/components/speed/fan/speed_fan.h +35 -0
- esphome/components/spi/__init__.py +459 -0
- esphome/components/spi/spi.cpp +123 -0
- esphome/components/spi/spi.h +513 -0
- esphome/components/spi/spi_arduino.cpp +106 -0
- esphome/components/spi/spi_esp_idf.cpp +271 -0
- esphome/components/spi_device/__init__.py +36 -0
- esphome/components/spi_device/spi_device.cpp +27 -0
- esphome/components/spi_device/spi_device.h +22 -0
- esphome/components/spi_led_strip/__init__.py +2 -0
- esphome/components/spi_led_strip/light.py +23 -0
- esphome/components/spi_led_strip/spi_led_strip.cpp +67 -0
- esphome/components/spi_led_strip/spi_led_strip.h +40 -0
- esphome/components/split_buffer/__init__.py +5 -0
- esphome/components/split_buffer/split_buffer.cpp +144 -0
- esphome/components/split_buffer/split_buffer.h +46 -0
- esphome/components/sprinkler/__init__.py +835 -0
- esphome/components/sprinkler/automation.h +185 -0
- esphome/components/sprinkler/sprinkler.cpp +1741 -0
- esphome/components/sprinkler/sprinkler.h +611 -0
- esphome/components/sps30/__init__.py +0 -0
- esphome/components/sps30/automation.h +26 -0
- esphome/components/sps30/sensor.py +194 -0
- esphome/components/sps30/sps30.cpp +293 -0
- esphome/components/sps30/sps30.h +71 -0
- esphome/components/ssd1306_base/__init__.py +103 -0
- esphome/components/ssd1306_base/ssd1306_base.cpp +382 -0
- esphome/components/ssd1306_base/ssd1306_base.h +88 -0
- esphome/components/ssd1306_i2c/__init__.py +0 -0
- esphome/components/ssd1306_i2c/display.py +29 -0
- esphome/components/ssd1306_i2c/ssd1306_i2c.cpp +80 -0
- esphome/components/ssd1306_i2c/ssd1306_i2c.h +23 -0
- esphome/components/ssd1306_spi/__init__.py +0 -0
- esphome/components/ssd1306_spi/display.py +38 -0
- esphome/components/ssd1306_spi/ssd1306_spi.cpp +67 -0
- esphome/components/ssd1306_spi/ssd1306_spi.h +29 -0
- esphome/components/ssd1322_base/__init__.py +50 -0
- esphome/components/ssd1322_base/ssd1322_base.cpp +204 -0
- esphome/components/ssd1322_base/ssd1322_base.h +55 -0
- esphome/components/ssd1322_spi/__init__.py +0 -0
- esphome/components/ssd1322_spi/display.py +38 -0
- esphome/components/ssd1322_spi/ssd1322_spi.cpp +70 -0
- esphome/components/ssd1322_spi/ssd1322_spi.h +30 -0
- esphome/components/ssd1325_base/__init__.py +54 -0
- esphome/components/ssd1325_base/ssd1325_base.cpp +245 -0
- esphome/components/ssd1325_base/ssd1325_base.h +60 -0
- esphome/components/ssd1325_spi/__init__.py +0 -0
- esphome/components/ssd1325_spi/display.py +38 -0
- esphome/components/ssd1325_spi/ssd1325_spi.cpp +58 -0
- esphome/components/ssd1325_spi/ssd1325_spi.h +29 -0
- esphome/components/ssd1327_base/__init__.py +41 -0
- esphome/components/ssd1327_base/ssd1327_base.cpp +180 -0
- esphome/components/ssd1327_base/ssd1327_base.h +54 -0
- esphome/components/ssd1327_i2c/__init__.py +0 -0
- esphome/components/ssd1327_i2c/display.py +29 -0
- esphome/components/ssd1327_i2c/ssd1327_i2c.cpp +43 -0
- esphome/components/ssd1327_i2c/ssd1327_i2c.h +23 -0
- esphome/components/ssd1327_spi/__init__.py +0 -0
- esphome/components/ssd1327_spi/display.py +38 -0
- esphome/components/ssd1327_spi/ssd1327_spi.cpp +57 -0
- esphome/components/ssd1327_spi/ssd1327_spi.h +29 -0
- esphome/components/ssd1331_base/__init__.py +32 -0
- esphome/components/ssd1331_base/ssd1331_base.cpp +154 -0
- esphome/components/ssd1331_base/ssd1331_base.h +47 -0
- esphome/components/ssd1331_spi/__init__.py +0 -0
- esphome/components/ssd1331_spi/display.py +38 -0
- esphome/components/ssd1331_spi/ssd1331_spi.cpp +56 -0
- esphome/components/ssd1331_spi/ssd1331_spi.h +29 -0
- esphome/components/ssd1351_base/__init__.py +42 -0
- esphome/components/ssd1351_base/ssd1351_base.cpp +196 -0
- esphome/components/ssd1351_base/ssd1351_base.h +56 -0
- esphome/components/ssd1351_spi/__init__.py +0 -0
- esphome/components/ssd1351_spi/display.py +38 -0
- esphome/components/ssd1351_spi/ssd1351_spi.cpp +70 -0
- esphome/components/ssd1351_spi/ssd1351_spi.h +30 -0
- esphome/components/st7567_base/__init__.py +55 -0
- esphome/components/st7567_base/st7567_base.cpp +152 -0
- esphome/components/st7567_base/st7567_base.h +100 -0
- esphome/components/st7567_i2c/__init__.py +1 -0
- esphome/components/st7567_i2c/display.py +29 -0
- esphome/components/st7567_i2c/st7567_i2c.cpp +62 -0
- esphome/components/st7567_i2c/st7567_i2c.h +23 -0
- esphome/components/st7567_spi/__init__.py +1 -0
- esphome/components/st7567_spi/display.py +38 -0
- esphome/components/st7567_spi/st7567_spi.cpp +65 -0
- esphome/components/st7567_spi/st7567_spi.h +29 -0
- esphome/components/st7701s/__init__.py +1 -0
- esphome/components/st7701s/display.py +251 -0
- esphome/components/st7701s/init_sequences.py +363 -0
- esphome/components/st7701s/st7701s.cpp +193 -0
- esphome/components/st7701s/st7701s.h +118 -0
- esphome/components/st7735/__init__.py +3 -0
- esphome/components/st7735/display.py +105 -0
- esphome/components/st7735/st7735.cpp +489 -0
- esphome/components/st7735/st7735.h +90 -0
- esphome/components/st7789v/__init__.py +3 -0
- esphome/components/st7789v/display.py +209 -0
- esphome/components/st7789v/st7789v.cpp +312 -0
- esphome/components/st7789v/st7789v.h +172 -0
- esphome/components/st7920/__init__.py +0 -0
- esphome/components/st7920/display.py +41 -0
- esphome/components/st7920/st7920.cpp +146 -0
- esphome/components/st7920/st7920.h +51 -0
- esphome/components/statsd/__init__.py +65 -0
- esphome/components/statsd/statsd.cpp +162 -0
- esphome/components/statsd/statsd.h +87 -0
- esphome/components/status/__init__.py +0 -0
- esphome/components/status/binary_sensor.py +22 -0
- esphome/components/status/status_binary_sensor.cpp +37 -0
- esphome/components/status/status_binary_sensor.h +20 -0
- esphome/components/status_led/__init__.py +25 -0
- esphome/components/status_led/light/__init__.py +36 -0
- esphome/components/status_led/light/status_led_light.cpp +75 -0
- esphome/components/status_led/light/status_led_light.h +44 -0
- esphome/components/status_led/status_led.cpp +34 -0
- esphome/components/status_led/status_led.h +26 -0
- esphome/components/stepper/__init__.py +183 -0
- esphome/components/stepper/stepper.cpp +51 -0
- esphome/components/stepper/stepper.h +112 -0
- esphome/components/sts3x/__init__.py +0 -0
- esphome/components/sts3x/sensor.py +35 -0
- esphome/components/sts3x/sts3x.cpp +70 -0
- esphome/components/sts3x/sts3x.h +22 -0
- esphome/components/stts22h/__init__.py +1 -0
- esphome/components/stts22h/sensor.py +33 -0
- esphome/components/stts22h/stts22h.cpp +101 -0
- esphome/components/stts22h/stts22h.h +21 -0
- esphome/components/substitutions/__init__.py +239 -0
- esphome/components/substitutions/jinja.py +255 -0
- esphome/components/sun/__init__.py +180 -0
- esphome/components/sun/sensor/__init__.py +40 -0
- esphome/components/sun/sensor/sun_sensor.cpp +12 -0
- esphome/components/sun/sensor/sun_sensor.h +41 -0
- esphome/components/sun/sun.cpp +321 -0
- esphome/components/sun/sun.h +133 -0
- esphome/components/sun/text_sensor/__init__.py +59 -0
- esphome/components/sun/text_sensor/sun_text_sensor.cpp +12 -0
- esphome/components/sun/text_sensor/sun_text_sensor.h +44 -0
- esphome/components/sun_gtil2/__init__.py +26 -0
- esphome/components/sun_gtil2/sensor.py +88 -0
- esphome/components/sun_gtil2/sun_gtil2.cpp +135 -0
- esphome/components/sun_gtil2/sun_gtil2.h +58 -0
- esphome/components/sun_gtil2/text_sensor.py +32 -0
- esphome/components/switch/__init__.py +230 -0
- esphome/components/switch/automation.cpp +10 -0
- esphome/components/switch/automation.h +108 -0
- esphome/components/switch/binary_sensor/__init__.py +31 -0
- esphome/components/switch/binary_sensor/switch_binary_sensor.cpp +17 -0
- esphome/components/switch/binary_sensor/switch_binary_sensor.h +21 -0
- esphome/components/switch/switch.cpp +115 -0
- esphome/components/switch/switch.h +150 -0
- esphome/components/sx126x/__init__.py +336 -0
- esphome/components/sx126x/automation.h +68 -0
- esphome/components/sx126x/packet_transport/__init__.py +26 -0
- esphome/components/sx126x/packet_transport/sx126x_transport.cpp +26 -0
- esphome/components/sx126x/packet_transport/sx126x_transport.h +25 -0
- esphome/components/sx126x/sx126x.cpp +538 -0
- esphome/components/sx126x/sx126x.h +148 -0
- esphome/components/sx126x/sx126x_reg.h +165 -0
- esphome/components/sx127x/__init__.py +329 -0
- esphome/components/sx127x/automation.h +68 -0
- esphome/components/sx127x/packet_transport/__init__.py +26 -0
- esphome/components/sx127x/packet_transport/sx127x_transport.cpp +26 -0
- esphome/components/sx127x/packet_transport/sx127x_transport.h +25 -0
- esphome/components/sx127x/sx127x.cpp +496 -0
- esphome/components/sx127x/sx127x.h +128 -0
- esphome/components/sx127x/sx127x_reg.h +295 -0
- esphome/components/sx1509/__init__.py +154 -0
- esphome/components/sx1509/binary_sensor/__init__.py +26 -0
- esphome/components/sx1509/binary_sensor/sx1509_binary_keypad_sensor.h +19 -0
- esphome/components/sx1509/output/__init__.py +29 -0
- esphome/components/sx1509/output/sx1509_float_output.cpp +31 -0
- esphome/components/sx1509/output/sx1509_float_output.h +27 -0
- esphome/components/sx1509/sx1509.cpp +317 -0
- esphome/components/sx1509/sx1509.h +101 -0
- esphome/components/sx1509/sx1509_gpio_pin.cpp +22 -0
- esphome/components/sx1509/sx1509_gpio_pin.h +33 -0
- esphome/components/sx1509/sx1509_registers.h +110 -0
- esphome/components/syslog/__init__.py +41 -0
- esphome/components/syslog/esphome_syslog.cpp +50 -0
- esphome/components/syslog/esphome_syslog.h +29 -0
- esphome/components/t6615/__init__.py +0 -0
- esphome/components/t6615/sensor.py +46 -0
- esphome/components/t6615/t6615.cpp +97 -0
- esphome/components/t6615/t6615.h +44 -0
- esphome/components/tc74/__init__.py +1 -0
- esphome/components/tc74/sensor.py +32 -0
- esphome/components/tc74/tc74.cpp +67 -0
- esphome/components/tc74/tc74.h +28 -0
- esphome/components/tca9548a/__init__.py +43 -0
- esphome/components/tca9548a/tca9548a.cpp +48 -0
- esphome/components/tca9548a/tca9548a.h +39 -0
- esphome/components/tca9555/__init__.py +72 -0
- esphome/components/tca9555/tca9555.cpp +144 -0
- esphome/components/tca9555/tca9555.h +66 -0
- esphome/components/tcl112/__init__.py +0 -0
- esphome/components/tcl112/climate.py +14 -0
- esphome/components/tcl112/tcl112.cpp +244 -0
- esphome/components/tcl112/tcl112.h +28 -0
- esphome/components/tcs34725/__init__.py +0 -0
- esphome/components/tcs34725/sensor.py +132 -0
- esphome/components/tcs34725/tcs34725.cpp +353 -0
- esphome/components/tcs34725/tcs34725.h +90 -0
- esphome/components/tee501/__init__.py +0 -0
- esphome/components/tee501/sensor.py +36 -0
- esphome/components/tee501/tee501.cpp +66 -0
- esphome/components/tee501/tee501.h +23 -0
- esphome/components/teleinfo/__init__.py +40 -0
- esphome/components/teleinfo/sensor/__init__.py +22 -0
- esphome/components/teleinfo/sensor/teleinfo_sensor.cpp +14 -0
- esphome/components/teleinfo/sensor/teleinfo_sensor.h +16 -0
- esphome/components/teleinfo/teleinfo.cpp +209 -0
- esphome/components/teleinfo/teleinfo.h +54 -0
- esphome/components/teleinfo/text_sensor/__init__.py +21 -0
- esphome/components/teleinfo/text_sensor/teleinfo_text_sensor.cpp +11 -0
- esphome/components/teleinfo/text_sensor/teleinfo_text_sensor.h +13 -0
- esphome/components/tem3200/__init__.py +0 -0
- esphome/components/tem3200/sensor.py +54 -0
- esphome/components/tem3200/tem3200.cpp +148 -0
- esphome/components/tem3200/tem3200.h +30 -0
- esphome/components/template/__init__.py +3 -0
- esphome/components/template/alarm_control_panel/__init__.py +163 -0
- esphome/components/template/alarm_control_panel/template_alarm_control_panel.cpp +288 -0
- esphome/components/template/alarm_control_panel/template_alarm_control_panel.h +171 -0
- esphome/components/template/binary_sensor/__init__.py +68 -0
- esphome/components/template/binary_sensor/template_binary_sensor.cpp +25 -0
- esphome/components/template/binary_sensor/template_binary_sensor.h +23 -0
- esphome/components/template/button/__init__.py +11 -0
- esphome/components/template/button/template_button.h +13 -0
- esphome/components/template/cover/__init__.py +146 -0
- esphome/components/template/cover/template_cover.cpp +135 -0
- esphome/components/template/cover/template_cover.h +65 -0
- esphome/components/template/datetime/__init__.py +150 -0
- esphome/components/template/datetime/template_date.cpp +108 -0
- esphome/components/template/datetime/template_date.h +45 -0
- esphome/components/template/datetime/template_datetime.cpp +147 -0
- esphome/components/template/datetime/template_datetime.h +45 -0
- esphome/components/template/datetime/template_time.cpp +108 -0
- esphome/components/template/datetime/template_time.h +45 -0
- esphome/components/template/event/__init__.py +21 -0
- esphome/components/template/event/template_event.h +10 -0
- esphome/components/template/fan/__init__.py +41 -0
- esphome/components/template/fan/template_fan.cpp +36 -0
- esphome/components/template/fan/template_fan.h +29 -0
- esphome/components/template/lock/__init__.py +99 -0
- esphome/components/template/lock/automation.h +16 -0
- esphome/components/template/lock/template_lock.cpp +58 -0
- esphome/components/template/lock/template_lock.h +38 -0
- esphome/components/template/number/__init__.py +94 -0
- esphome/components/template/number/template_number.cpp +53 -0
- esphome/components/template/number/template_number.h +36 -0
- esphome/components/template/output/__init__.py +48 -0
- esphome/components/template/output/template_output.h +29 -0
- esphome/components/template/select/__init__.py +92 -0
- esphome/components/template/select/template_select.cpp +65 -0
- esphome/components/template/select/template_select.h +36 -0
- esphome/components/template/sensor/__init__.py +53 -0
- esphome/components/template/sensor/template_sensor.cpp +26 -0
- esphome/components/template/sensor/template_sensor.h +23 -0
- esphome/components/template/switch/__init__.py +93 -0
- esphome/components/template/switch/template_switch.cpp +59 -0
- esphome/components/template/switch/template_switch.h +39 -0
- esphome/components/template/text/__init__.py +94 -0
- esphome/components/template/text/template_text.cpp +53 -0
- esphome/components/template/text/template_text.h +86 -0
- esphome/components/template/text_sensor/__init__.py +52 -0
- esphome/components/template/text_sensor/template_text_sensor.cpp +22 -0
- esphome/components/template/text_sensor/template_text_sensor.h +24 -0
- esphome/components/template/valve/__init__.py +130 -0
- esphome/components/template/valve/automation.h +22 -0
- esphome/components/template/valve/template_valve.cpp +129 -0
- esphome/components/template/valve/template_valve.h +59 -0
- esphome/components/text/__init__.py +173 -0
- esphome/components/text/automation.h +33 -0
- esphome/components/text/text.cpp +31 -0
- esphome/components/text/text.h +51 -0
- esphome/components/text/text_call.cpp +56 -0
- esphome/components/text/text_call.h +25 -0
- esphome/components/text/text_traits.h +41 -0
- esphome/components/text_sensor/__init__.py +260 -0
- esphome/components/text_sensor/automation.h +50 -0
- esphome/components/text_sensor/filter.cpp +104 -0
- esphome/components/text_sensor/filter.h +161 -0
- esphome/components/text_sensor/text_sensor.cpp +105 -0
- esphome/components/text_sensor/text_sensor.h +76 -0
- esphome/components/thermopro_ble/__init__.py +0 -0
- esphome/components/thermopro_ble/sensor.py +97 -0
- esphome/components/thermopro_ble/thermopro_ble.cpp +204 -0
- esphome/components/thermopro_ble/thermopro_ble.h +49 -0
- esphome/components/thermostat/__init__.py +0 -0
- esphome/components/thermostat/climate.py +1044 -0
- esphome/components/thermostat/thermostat_climate.cpp +1657 -0
- esphome/components/thermostat/thermostat_climate.h +558 -0
- esphome/components/time/__init__.py +362 -0
- esphome/components/time/automation.cpp +96 -0
- esphome/components/time/automation.h +52 -0
- esphome/components/time/real_time_clock.cpp +82 -0
- esphome/components/time/real_time_clock.h +79 -0
- esphome/components/time_based/__init__.py +0 -0
- esphome/components/time_based/cover.py +58 -0
- esphome/components/time_based/time_based_cover.cpp +186 -0
- esphome/components/time_based/time_based_cover.h +55 -0
- esphome/components/tinyusb/__init__.py +61 -0
- esphome/components/tinyusb/tinyusb_component.cpp +44 -0
- esphome/components/tinyusb/tinyusb_component.h +72 -0
- esphome/components/tlc59208f/__init__.py +26 -0
- esphome/components/tlc59208f/output.py +27 -0
- esphome/components/tlc59208f/tlc59208f_output.cpp +157 -0
- esphome/components/tlc59208f/tlc59208f_output.h +69 -0
- esphome/components/tlc5947/__init__.py +49 -0
- esphome/components/tlc5947/output/__init__.py +28 -0
- esphome/components/tlc5947/output/tlc5947_output.cpp +12 -0
- esphome/components/tlc5947/output/tlc5947_output.h +22 -0
- esphome/components/tlc5947/tlc5947.cpp +71 -0
- esphome/components/tlc5947/tlc5947.h +46 -0
- esphome/components/tlc5971/__init__.py +34 -0
- esphome/components/tlc5971/output/__init__.py +28 -0
- esphome/components/tlc5971/output/tlc5971_output.cpp +12 -0
- esphome/components/tlc5971/output/tlc5971_output.h +22 -0
- esphome/components/tlc5971/tlc5971.cpp +102 -0
- esphome/components/tlc5971/tlc5971.h +43 -0
- esphome/components/tm1621/__init__.py +1 -0
- esphome/components/tm1621/display.py +46 -0
- esphome/components/tm1621/tm1621.cpp +281 -0
- esphome/components/tm1621/tm1621.h +75 -0
- esphome/components/tm1637/__init__.py +0 -0
- esphome/components/tm1637/binary_sensor.py +25 -0
- esphome/components/tm1637/display.py +52 -0
- esphome/components/tm1637/tm1637.cpp +382 -0
- esphome/components/tm1637/tm1637.h +103 -0
- esphome/components/tm1638/__init__.py +0 -0
- esphome/components/tm1638/binary_sensor/__init__.py +22 -0
- esphome/components/tm1638/binary_sensor/tm1638_key.cpp +13 -0
- esphome/components/tm1638/binary_sensor/tm1638_key.h +19 -0
- esphome/components/tm1638/display.py +54 -0
- esphome/components/tm1638/output/__init__.py +26 -0
- esphome/components/tm1638/output/tm1638_output_led.cpp +17 -0
- esphome/components/tm1638/output/tm1638_output_led.h +25 -0
- esphome/components/tm1638/sevenseg.h +107 -0
- esphome/components/tm1638/switch/__init__.py +28 -0
- esphome/components/tm1638/switch/tm1638_switch_led.cpp +20 -0
- esphome/components/tm1638/switch/tm1638_switch_led.h +23 -0
- esphome/components/tm1638/tm1638.cpp +286 -0
- esphome/components/tm1638/tm1638.h +79 -0
- esphome/components/tm1651/__init__.py +136 -0
- esphome/components/tm1651/tm1651.cpp +260 -0
- esphome/components/tm1651/tm1651.h +101 -0
- esphome/components/tmp102/__init__.py +9 -0
- esphome/components/tmp102/sensor.py +44 -0
- esphome/components/tmp102/tmp102.cpp +52 -0
- esphome/components/tmp102/tmp102.h +19 -0
- esphome/components/tmp1075/__init__.py +1 -0
- esphome/components/tmp1075/sensor.py +92 -0
- esphome/components/tmp1075/tmp1075.cpp +128 -0
- esphome/components/tmp1075/tmp1075.h +89 -0
- esphome/components/tmp117/__init__.py +0 -0
- esphome/components/tmp117/sensor.py +80 -0
- esphome/components/tmp117/tmp117.cpp +74 -0
- esphome/components/tmp117/tmp117.h +27 -0
- esphome/components/tof10120/__init__.py +0 -0
- esphome/components/tof10120/sensor.py +34 -0
- esphome/components/tof10120/tof10120_sensor.cpp +60 -0
- esphome/components/tof10120/tof10120_sensor.h +18 -0
- esphome/components/tormatic/__init__.py +1 -0
- esphome/components/tormatic/cover.py +42 -0
- esphome/components/tormatic/tormatic_cover.cpp +357 -0
- esphome/components/tormatic/tormatic_cover.h +59 -0
- esphome/components/tormatic/tormatic_protocol.h +211 -0
- esphome/components/toshiba/__init__.py +0 -0
- esphome/components/toshiba/climate.py +29 -0
- esphome/components/toshiba/toshiba.cpp +1368 -0
- esphome/components/toshiba/toshiba.h +86 -0
- esphome/components/total_daily_energy/__init__.py +0 -0
- esphome/components/total_daily_energy/sensor.py +92 -0
- esphome/components/total_daily_energy/total_daily_energy.cpp +75 -0
- esphome/components/total_daily_energy/total_daily_energy.h +45 -0
- esphome/components/touchscreen/__init__.py +158 -0
- esphome/components/touchscreen/binary_sensor/__init__.py +86 -0
- esphome/components/touchscreen/binary_sensor/touchscreen_binary_sensor.cpp +34 -0
- esphome/components/touchscreen/binary_sensor/touchscreen_binary_sensor.h +48 -0
- esphome/components/touchscreen/touchscreen.cpp +166 -0
- esphome/components/touchscreen/touchscreen.h +119 -0
- esphome/components/tsl2561/__init__.py +0 -0
- esphome/components/tsl2561/sensor.py +69 -0
- esphome/components/tsl2561/tsl2561.cpp +165 -0
- esphome/components/tsl2561/tsl2561.h +87 -0
- esphome/components/tsl2591/__init__.py +1 -0
- esphome/components/tsl2591/sensor.py +172 -0
- esphome/components/tsl2591/tsl2591.cpp +479 -0
- esphome/components/tsl2591/tsl2591.h +276 -0
- esphome/components/tt21100/__init__.py +5 -0
- esphome/components/tt21100/binary_sensor/__init__.py +31 -0
- esphome/components/tt21100/binary_sensor/tt21100_button.cpp +27 -0
- esphome/components/tt21100/binary_sensor/tt21100_button.h +28 -0
- esphome/components/tt21100/touchscreen/__init__.py +40 -0
- esphome/components/tt21100/touchscreen/tt21100.cpp +143 -0
- esphome/components/tt21100/touchscreen/tt21100.h +43 -0
- esphome/components/ttp229_bsf/__init__.py +30 -0
- esphome/components/ttp229_bsf/binary_sensor.py +24 -0
- esphome/components/ttp229_bsf/ttp229_bsf.cpp +22 -0
- esphome/components/ttp229_bsf/ttp229_bsf.h +55 -0
- esphome/components/ttp229_lsf/__init__.py +31 -0
- esphome/components/ttp229_lsf/binary_sensor.py +24 -0
- esphome/components/ttp229_lsf/ttp229_lsf.cpp +44 -0
- esphome/components/ttp229_lsf/ttp229_lsf.h +37 -0
- esphome/components/tuya/__init__.py +131 -0
- esphome/components/tuya/automation.cpp +67 -0
- esphome/components/tuya/automation.h +55 -0
- esphome/components/tuya/binary_sensor/__init__.py +34 -0
- esphome/components/tuya/binary_sensor/tuya_binary_sensor.cpp +22 -0
- esphome/components/tuya/binary_sensor/tuya_binary_sensor.h +24 -0
- esphome/components/tuya/climate/__init__.py +273 -0
- esphome/components/tuya/climate/tuya_climate.cpp +495 -0
- esphome/components/tuya/climate/tuya_climate.h +129 -0
- esphome/components/tuya/cover/__init__.py +75 -0
- esphome/components/tuya/cover/tuya_cover.cpp +140 -0
- esphome/components/tuya/cover/tuya_cover.h +50 -0
- esphome/components/tuya/fan/__init__.py +47 -0
- esphome/components/tuya/fan/tuya_fan.cpp +107 -0
- esphome/components/tuya/fan/tuya_fan.h +36 -0
- esphome/components/tuya/light/__init__.py +123 -0
- esphome/components/tuya/light/tuya_light.cpp +226 -0
- esphome/components/tuya/light/tuya_light.h +71 -0
- esphome/components/tuya/number/__init__.py +98 -0
- esphome/components/tuya/number/tuya_number.cpp +95 -0
- esphome/components/tuya/number/tuya_number.h +38 -0
- esphome/components/tuya/select/__init__.py +61 -0
- esphome/components/tuya/select/tuya_select.cpp +51 -0
- esphome/components/tuya/select/tuya_select.h +36 -0
- esphome/components/tuya/sensor/__init__.py +33 -0
- esphome/components/tuya/sensor/tuya_sensor.cpp +34 -0
- esphome/components/tuya/sensor/tuya_sensor.h +24 -0
- esphome/components/tuya/switch/__init__.py +32 -0
- esphome/components/tuya/switch/tuya_switch.cpp +28 -0
- esphome/components/tuya/switch/tuya_switch.h +26 -0
- esphome/components/tuya/text_sensor/__init__.py +33 -0
- esphome/components/tuya/text_sensor/tuya_text_sensor.cpp +41 -0
- esphome/components/tuya/text_sensor/tuya_text_sensor.h +24 -0
- esphome/components/tuya/tuya.cpp +739 -0
- esphome/components/tuya/tuya.h +166 -0
- esphome/components/tx20/__init__.py +0 -0
- esphome/components/tx20/sensor.py +54 -0
- esphome/components/tx20/tx20.cpp +196 -0
- esphome/components/tx20/tx20.h +52 -0
- esphome/components/uart/__init__.py +546 -0
- esphome/components/uart/automation.h +43 -0
- esphome/components/uart/button/__init__.py +36 -0
- esphome/components/uart/button/uart_button.cpp +15 -0
- esphome/components/uart/button/uart_button.h +23 -0
- esphome/components/uart/packet_transport/__init__.py +20 -0
- esphome/components/uart/packet_transport/uart_transport.cpp +87 -0
- esphome/components/uart/packet_transport/uart_transport.h +39 -0
- esphome/components/uart/switch/__init__.py +59 -0
- esphome/components/uart/switch/uart_switch.cpp +60 -0
- esphome/components/uart/switch/uart_switch.h +35 -0
- esphome/components/uart/uart.cpp +45 -0
- esphome/components/uart/uart.h +76 -0
- esphome/components/uart/uart_component.cpp +30 -0
- esphome/components/uart/uart_component.h +201 -0
- esphome/components/uart/uart_component_esp8266.cpp +334 -0
- esphome/components/uart/uart_component_esp8266.h +91 -0
- esphome/components/uart/uart_component_esp_idf.cpp +409 -0
- esphome/components/uart/uart_component_esp_idf.h +66 -0
- esphome/components/uart/uart_component_host.cpp +299 -0
- esphome/components/uart/uart_component_host.h +35 -0
- esphome/components/uart/uart_component_libretiny.cpp +190 -0
- esphome/components/uart/uart_component_libretiny.h +40 -0
- esphome/components/uart/uart_component_rp2040.cpp +196 -0
- esphome/components/uart/uart_component_rp2040.h +43 -0
- esphome/components/uart/uart_debugger.cpp +200 -0
- esphome/components/uart/uart_debugger.h +99 -0
- esphome/components/udp/__init__.py +165 -0
- esphome/components/udp/automation.h +45 -0
- esphome/components/udp/binary_sensor.py +5 -0
- esphome/components/udp/packet_transport/__init__.py +29 -0
- esphome/components/udp/packet_transport/udp_transport.cpp +36 -0
- esphome/components/udp/packet_transport/udp_transport.h +28 -0
- esphome/components/udp/sensor.py +5 -0
- esphome/components/udp/udp_component.cpp +164 -0
- esphome/components/udp/udp_component.h +59 -0
- esphome/components/ufire_ec/__init__.py +1 -0
- esphome/components/ufire_ec/sensor.py +125 -0
- esphome/components/ufire_ec/ufire_ec.cpp +118 -0
- esphome/components/ufire_ec/ufire_ec.h +87 -0
- esphome/components/ufire_ise/__init__.py +1 -0
- esphome/components/ufire_ise/sensor.py +126 -0
- esphome/components/ufire_ise/ufire_ise.cpp +151 -0
- esphome/components/ufire_ise/ufire_ise.h +95 -0
- esphome/components/uln2003/__init__.py +0 -0
- esphome/components/uln2003/stepper.py +56 -0
- esphome/components/uln2003/uln2003.cpp +92 -0
- esphome/components/uln2003/uln2003.h +44 -0
- esphome/components/ultrasonic/__init__.py +1 -0
- esphome/components/ultrasonic/sensor.py +53 -0
- esphome/components/ultrasonic/ultrasonic_sensor.cpp +64 -0
- esphome/components/ultrasonic/ultrasonic_sensor.h +46 -0
- esphome/components/update/__init__.py +160 -0
- esphome/components/update/automation.h +23 -0
- esphome/components/update/update_entity.cpp +42 -0
- esphome/components/update/update_entity.h +58 -0
- esphome/components/uponor_smatrix/__init__.py +81 -0
- esphome/components/uponor_smatrix/climate/__init__.py +28 -0
- esphome/components/uponor_smatrix/climate/uponor_smatrix_climate.cpp +101 -0
- esphome/components/uponor_smatrix/climate/uponor_smatrix_climate.h +28 -0
- esphome/components/uponor_smatrix/sensor/__init__.py +80 -0
- esphome/components/uponor_smatrix/sensor/uponor_smatrix_sensor.cpp +44 -0
- esphome/components/uponor_smatrix/sensor/uponor_smatrix_sensor.h +24 -0
- esphome/components/uponor_smatrix/uponor_smatrix.cpp +217 -0
- esphome/components/uponor_smatrix/uponor_smatrix.h +127 -0
- esphome/components/uptime/__init__.py +0 -0
- esphome/components/uptime/sensor/__init__.py +61 -0
- esphome/components/uptime/sensor/uptime_seconds_sensor.cpp +37 -0
- esphome/components/uptime/sensor/uptime_seconds_sensor.h +21 -0
- esphome/components/uptime/sensor/uptime_timestamp_sensor.cpp +39 -0
- esphome/components/uptime/sensor/uptime_timestamp_sensor.h +30 -0
- esphome/components/uptime/text_sensor/__init__.py +59 -0
- esphome/components/uptime/text_sensor/uptime_text_sensor.cpp +68 -0
- esphome/components/uptime/text_sensor/uptime_text_sensor.h +44 -0
- esphome/components/usb_cdc_acm/__init__.py +76 -0
- esphome/components/usb_cdc_acm/usb_cdc_acm.cpp +495 -0
- esphome/components/usb_cdc_acm/usb_cdc_acm.h +135 -0
- esphome/components/usb_host/__init__.py +83 -0
- esphome/components/usb_host/usb_host.h +191 -0
- esphome/components/usb_host/usb_host_client.cpp +534 -0
- esphome/components/usb_host/usb_host_component.cpp +34 -0
- esphome/components/usb_uart/__init__.py +138 -0
- esphome/components/usb_uart/ch34x.cpp +81 -0
- esphome/components/usb_uart/cp210x.cpp +126 -0
- esphome/components/usb_uart/usb_uart.cpp +395 -0
- esphome/components/usb_uart/usb_uart.h +176 -0
- esphome/components/valve/__init__.py +233 -0
- esphome/components/valve/automation.h +111 -0
- esphome/components/valve/valve.cpp +185 -0
- esphome/components/valve/valve.h +153 -0
- esphome/components/valve/valve_traits.h +27 -0
- esphome/components/vbus/__init__.py +33 -0
- esphome/components/vbus/binary_sensor/__init__.py +349 -0
- esphome/components/vbus/binary_sensor/vbus_binary_sensor.cpp +165 -0
- esphome/components/vbus/binary_sensor/vbus_binary_sensor.h +136 -0
- esphome/components/vbus/sensor/__init__.py +691 -0
- esphome/components/vbus/sensor/vbus_sensor.cpp +250 -0
- esphome/components/vbus/sensor/vbus_sensor.h +182 -0
- esphome/components/vbus/vbus.cpp +125 -0
- esphome/components/vbus/vbus.h +51 -0
- esphome/components/veml3235/__init__.py +0 -0
- esphome/components/veml3235/sensor.py +84 -0
- esphome/components/veml3235/veml3235.cpp +229 -0
- esphome/components/veml3235/veml3235.h +108 -0
- esphome/components/veml7700/__init__.py +1 -0
- esphome/components/veml7700/sensor.py +190 -0
- esphome/components/veml7700/veml7700.cpp +438 -0
- esphome/components/veml7700/veml7700.h +200 -0
- esphome/components/version/__init__.py +1 -0
- esphome/components/version/text_sensor.py +29 -0
- esphome/components/version/version_text_sensor.cpp +24 -0
- esphome/components/version/version_text_sensor.h +21 -0
- esphome/components/vl53l0x/LICENSE.txt +80 -0
- esphome/components/vl53l0x/__init__.py +0 -0
- esphome/components/vl53l0x/sensor.py +87 -0
- esphome/components/vl53l0x/vl53l0x_sensor.cpp +534 -0
- esphome/components/vl53l0x/vl53l0x_sensor.h +75 -0
- esphome/components/voice_assistant/__init__.py +435 -0
- esphome/components/voice_assistant/voice_assistant.cpp +999 -0
- esphome/components/voice_assistant/voice_assistant.h +363 -0
- esphome/components/voltage_sampler/__init__.py +4 -0
- esphome/components/voltage_sampler/voltage_sampler.h +16 -0
- esphome/components/wake_on_lan/__init__.py +1 -0
- esphome/components/wake_on_lan/button.py +37 -0
- esphome/components/wake_on_lan/wake_on_lan.cpp +89 -0
- esphome/components/wake_on_lan/wake_on_lan.h +36 -0
- esphome/components/watchdog/__init__.py +1 -0
- esphome/components/watchdog/watchdog.cpp +71 -0
- esphome/components/watchdog/watchdog.h +24 -0
- esphome/components/waveshare_epaper/__init__.py +1 -0
- esphome/components/waveshare_epaper/display.py +261 -0
- esphome/components/waveshare_epaper/waveshare_213v3.cpp +192 -0
- esphome/components/waveshare_epaper/waveshare_epaper.cpp +4754 -0
- esphome/components/waveshare_epaper/waveshare_epaper.h +1103 -0
- esphome/components/web_server/__init__.py +348 -0
- esphome/components/web_server/list_entities.cpp +155 -0
- esphome/components/web_server/list_entities.h +101 -0
- esphome/components/web_server/ota/__init__.py +89 -0
- esphome/components/web_server/ota/ota_web_server.cpp +246 -0
- esphome/components/web_server/ota/ota_web_server.h +26 -0
- esphome/components/web_server/server_index_v2.h +651 -0
- esphome/components/web_server/server_index_v3.h +4055 -0
- esphome/components/web_server/web_server.cpp +2088 -0
- esphome/components/web_server/web_server.h +604 -0
- esphome/components/web_server/web_server_v1.cpp +219 -0
- esphome/components/web_server_base/__init__.py +49 -0
- esphome/components/web_server_base/web_server_base.cpp +35 -0
- esphome/components/web_server_base/web_server_base.h +142 -0
- esphome/components/web_server_idf/__init__.py +14 -0
- esphome/components/web_server_idf/multipart.cpp +254 -0
- esphome/components/web_server_idf/multipart.h +86 -0
- esphome/components/web_server_idf/utils.cpp +125 -0
- esphome/components/web_server_idf/utils.h +27 -0
- esphome/components/web_server_idf/web_server_idf.cpp +895 -0
- esphome/components/web_server_idf/web_server_idf.h +353 -0
- esphome/components/weikai/__init__.py +110 -0
- esphome/components/weikai/weikai.cpp +565 -0
- esphome/components/weikai/weikai.h +445 -0
- esphome/components/weikai/wk_reg_def.h +304 -0
- esphome/components/weikai_i2c/__init__.py +1 -0
- esphome/components/weikai_i2c/weikai_i2c.cpp +181 -0
- esphome/components/weikai_i2c/weikai_i2c.h +61 -0
- esphome/components/weikai_spi/__init__.py +1 -0
- esphome/components/weikai_spi/weikai_spi.cpp +194 -0
- esphome/components/weikai_spi/weikai_spi.h +54 -0
- esphome/components/whirlpool/__init__.py +0 -0
- esphome/components/whirlpool/climate.py +27 -0
- esphome/components/whirlpool/whirlpool.cpp +296 -0
- esphome/components/whirlpool/whirlpool.h +65 -0
- esphome/components/whynter/__init__.py +1 -0
- esphome/components/whynter/climate.py +21 -0
- esphome/components/whynter/whynter.cpp +181 -0
- esphome/components/whynter/whynter.h +53 -0
- esphome/components/wiegand/__init__.py +77 -0
- esphome/components/wiegand/wiegand.cpp +127 -0
- esphome/components/wiegand/wiegand.h +54 -0
- esphome/components/wifi/__init__.py +711 -0
- esphome/components/wifi/automation.h +116 -0
- esphome/components/wifi/wifi_component.cpp +1830 -0
- esphome/components/wifi/wifi_component.h +666 -0
- esphome/components/wifi/wifi_component_esp8266.cpp +920 -0
- esphome/components/wifi/wifi_component_esp_idf.cpp +1124 -0
- esphome/components/wifi/wifi_component_libretiny.cpp +551 -0
- esphome/components/wifi/wifi_component_pico_w.cpp +301 -0
- esphome/components/wifi/wpa2_eap.py +152 -0
- esphome/components/wifi_info/__init__.py +0 -0
- esphome/components/wifi_info/text_sensor.py +109 -0
- esphome/components/wifi_info/wifi_info_text_sensor.cpp +172 -0
- esphome/components/wifi_info/wifi_info_text_sensor.h +89 -0
- esphome/components/wifi_signal/__init__.py +0 -0
- esphome/components/wifi_signal/sensor.py +30 -0
- esphome/components/wifi_signal/wifi_signal_sensor.cpp +12 -0
- esphome/components/wifi_signal/wifi_signal_sensor.h +31 -0
- esphome/components/wireguard/__init__.py +175 -0
- esphome/components/wireguard/binary_sensor.py +35 -0
- esphome/components/wireguard/sensor.py +26 -0
- esphome/components/wireguard/text_sensor.py +23 -0
- esphome/components/wireguard/wireguard.cpp +300 -0
- esphome/components/wireguard/wireguard.h +174 -0
- esphome/components/wk2132_i2c/__init__.py +30 -0
- esphome/components/wk2132_i2c/wk2132_i2c.cpp +4 -0
- esphome/components/wk2132_spi/__init__.py +30 -0
- esphome/components/wk2168_i2c/__init__.py +59 -0
- esphome/components/wk2168_spi/__init__.py +57 -0
- esphome/components/wk2204_i2c/__init__.py +30 -0
- esphome/components/wk2204_spi/__init__.py +30 -0
- esphome/components/wk2212_i2c/__init__.py +59 -0
- esphome/components/wk2212_spi/__init__.py +57 -0
- esphome/components/wl_134/__init__.py +0 -0
- esphome/components/wl_134/text_sensor.py +28 -0
- esphome/components/wl_134/wl_134.cpp +113 -0
- esphome/components/wl_134/wl_134.h +63 -0
- esphome/components/wled/__init__.py +30 -0
- esphome/components/wled/wled_light_effect.cpp +287 -0
- esphome/components/wled/wled_light_effect.h +47 -0
- esphome/components/wts01/__init__.py +0 -0
- esphome/components/wts01/sensor.py +41 -0
- esphome/components/wts01/wts01.cpp +91 -0
- esphome/components/wts01/wts01.h +27 -0
- esphome/components/x9c/__init__.py +0 -0
- esphome/components/x9c/output.py +55 -0
- esphome/components/x9c/x9c.cpp +77 -0
- esphome/components/x9c/x9c.h +34 -0
- esphome/components/xgzp68xx/__init__.py +1 -0
- esphome/components/xgzp68xx/sensor.py +81 -0
- esphome/components/xgzp68xx/xgzp68xx.cpp +122 -0
- esphome/components/xgzp68xx/xgzp68xx.h +47 -0
- esphome/components/xiaomi_ble/__init__.py +22 -0
- esphome/components/xiaomi_ble/xiaomi_ble.cpp +410 -0
- esphome/components/xiaomi_ble/xiaomi_ble.h +84 -0
- esphome/components/xiaomi_cgd1/__init__.py +0 -0
- esphome/components/xiaomi_cgd1/sensor.py +76 -0
- esphome/components/xiaomi_cgd1/xiaomi_cgd1.cpp +75 -0
- esphome/components/xiaomi_cgd1/xiaomi_cgd1.h +35 -0
- esphome/components/xiaomi_cgdk2/__init__.py +0 -0
- esphome/components/xiaomi_cgdk2/sensor.py +76 -0
- esphome/components/xiaomi_cgdk2/xiaomi_cgdk2.cpp +75 -0
- esphome/components/xiaomi_cgdk2/xiaomi_cgdk2.h +35 -0
- esphome/components/xiaomi_cgg1/__init__.py +0 -0
- esphome/components/xiaomi_cgg1/sensor.py +77 -0
- esphome/components/xiaomi_cgg1/xiaomi_cgg1.cpp +75 -0
- esphome/components/xiaomi_cgg1/xiaomi_cgg1.h +36 -0
- esphome/components/xiaomi_cgpr1/__init__.py +0 -0
- esphome/components/xiaomi_cgpr1/binary_sensor.py +77 -0
- esphome/components/xiaomi_cgpr1/xiaomi_cgpr1.cpp +75 -0
- esphome/components/xiaomi_cgpr1/xiaomi_cgpr1.h +39 -0
- esphome/components/xiaomi_gcls002/__init__.py +0 -0
- esphome/components/xiaomi_gcls002/sensor.py +84 -0
- esphome/components/xiaomi_gcls002/xiaomi_gcls002.cpp +62 -0
- esphome/components/xiaomi_gcls002/xiaomi_gcls002.h +36 -0
- esphome/components/xiaomi_hhccjcy01/__init__.py +0 -0
- esphome/components/xiaomi_hhccjcy01/sensor.py +97 -0
- esphome/components/xiaomi_hhccjcy01/xiaomi_hhccjcy01.cpp +65 -0
- esphome/components/xiaomi_hhccjcy01/xiaomi_hhccjcy01.h +38 -0
- esphome/components/xiaomi_hhccjcy10/__init__.py +1 -0
- esphome/components/xiaomi_hhccjcy10/sensor.py +96 -0
- esphome/components/xiaomi_hhccjcy10/xiaomi_hhccjcy10.cpp +68 -0
- esphome/components/xiaomi_hhccjcy10/xiaomi_hhccjcy10.h +37 -0
- esphome/components/xiaomi_hhccpot002/__init__.py +0 -0
- esphome/components/xiaomi_hhccpot002/sensor.py +60 -0
- esphome/components/xiaomi_hhccpot002/xiaomi_hhccpot002.cpp +56 -0
- esphome/components/xiaomi_hhccpot002/xiaomi_hhccpot002.h +32 -0
- esphome/components/xiaomi_jqjcy01ym/__init__.py +0 -0
- esphome/components/xiaomi_jqjcy01ym/sensor.py +85 -0
- esphome/components/xiaomi_jqjcy01ym/xiaomi_jqjcy01ym.cpp +62 -0
- esphome/components/xiaomi_jqjcy01ym/xiaomi_jqjcy01ym.h +36 -0
- esphome/components/xiaomi_lywsd02/__init__.py +0 -0
- esphome/components/xiaomi_lywsd02/sensor.py +73 -0
- esphome/components/xiaomi_lywsd02/xiaomi_lywsd02.cpp +59 -0
- esphome/components/xiaomi_lywsd02/xiaomi_lywsd02.h +34 -0
- esphome/components/xiaomi_lywsd02mmc/__init__.py +0 -0
- esphome/components/xiaomi_lywsd02mmc/sensor.py +77 -0
- esphome/components/xiaomi_lywsd02mmc/xiaomi_lywsd02mmc.cpp +75 -0
- esphome/components/xiaomi_lywsd02mmc/xiaomi_lywsd02mmc.h +36 -0
- esphome/components/xiaomi_lywsd03mmc/__init__.py +0 -0
- esphome/components/xiaomi_lywsd03mmc/sensor.py +78 -0
- esphome/components/xiaomi_lywsd03mmc/xiaomi_lywsd03mmc.cpp +79 -0
- esphome/components/xiaomi_lywsd03mmc/xiaomi_lywsd03mmc.h +35 -0
- esphome/components/xiaomi_lywsdcgq/__init__.py +0 -0
- esphome/components/xiaomi_lywsdcgq/sensor.py +73 -0
- esphome/components/xiaomi_lywsdcgq/xiaomi_lywsdcgq.cpp +59 -0
- esphome/components/xiaomi_lywsdcgq/xiaomi_lywsdcgq.h +34 -0
- esphome/components/xiaomi_mhoc303/__init__.py +1 -0
- esphome/components/xiaomi_mhoc303/sensor.py +73 -0
- esphome/components/xiaomi_mhoc303/xiaomi_mhoc303.cpp +59 -0
- esphome/components/xiaomi_mhoc303/xiaomi_mhoc303.h +34 -0
- esphome/components/xiaomi_mhoc401/__init__.py +0 -0
- esphome/components/xiaomi_mhoc401/sensor.py +77 -0
- esphome/components/xiaomi_mhoc401/xiaomi_mhoc401.cpp +79 -0
- esphome/components/xiaomi_mhoc401/xiaomi_mhoc401.h +35 -0
- esphome/components/xiaomi_miscale/__init__.py +0 -0
- esphome/components/xiaomi_miscale/sensor.py +62 -0
- esphome/components/xiaomi_miscale/xiaomi_miscale.cpp +169 -0
- esphome/components/xiaomi_miscale/xiaomi_miscale.h +46 -0
- esphome/components/xiaomi_miscale2/__init__.py +0 -0
- esphome/components/xiaomi_miscale2/sensor.py +5 -0
- esphome/components/xiaomi_mjyd02yla/__init__.py +0 -0
- esphome/components/xiaomi_mjyd02yla/binary_sensor.py +89 -0
- esphome/components/xiaomi_mjyd02yla/xiaomi_mjyd02yla.cpp +78 -0
- esphome/components/xiaomi_mjyd02yla/xiaomi_mjyd02yla.h +41 -0
- esphome/components/xiaomi_mue4094rt/__init__.py +0 -0
- esphome/components/xiaomi_mue4094rt/binary_sensor.py +40 -0
- esphome/components/xiaomi_mue4094rt/xiaomi_mue4094rt.cpp +55 -0
- esphome/components/xiaomi_mue4094rt/xiaomi_mue4094rt.h +32 -0
- esphome/components/xiaomi_rtcgq02lm/__init__.py +35 -0
- esphome/components/xiaomi_rtcgq02lm/binary_sensor.py +63 -0
- esphome/components/xiaomi_rtcgq02lm/sensor.py +37 -0
- esphome/components/xiaomi_rtcgq02lm/xiaomi_rtcgq02lm.cpp +91 -0
- esphome/components/xiaomi_rtcgq02lm/xiaomi_rtcgq02lm.h +60 -0
- esphome/components/xiaomi_wx08zm/__init__.py +0 -0
- esphome/components/xiaomi_wx08zm/binary_sensor.py +63 -0
- esphome/components/xiaomi_wx08zm/xiaomi_wx08zm.cpp +60 -0
- esphome/components/xiaomi_wx08zm/xiaomi_wx08zm.h +35 -0
- esphome/components/xiaomi_xmwsdj04mmc/__init__.py +0 -0
- esphome/components/xiaomi_xmwsdj04mmc/sensor.py +77 -0
- esphome/components/xiaomi_xmwsdj04mmc/xiaomi_xmwsdj04mmc.cpp +77 -0
- esphome/components/xiaomi_xmwsdj04mmc/xiaomi_xmwsdj04mmc.h +36 -0
- esphome/components/xl9535/__init__.py +79 -0
- esphome/components/xl9535/xl9535.cpp +120 -0
- esphome/components/xl9535/xl9535.h +56 -0
- esphome/components/xpt2046/__init__.py +5 -0
- esphome/components/xpt2046/touchscreen/__init__.py +43 -0
- esphome/components/xpt2046/touchscreen/xpt2046.cpp +113 -0
- esphome/components/xpt2046/touchscreen/xpt2046.h +41 -0
- esphome/components/xxtea/__init__.py +3 -0
- esphome/components/xxtea/xxtea.cpp +46 -0
- esphome/components/xxtea/xxtea.h +26 -0
- esphome/components/yashima/__init__.py +0 -0
- esphome/components/yashima/climate.py +39 -0
- esphome/components/yashima/yashima.cpp +199 -0
- esphome/components/yashima/yashima.h +40 -0
- esphome/components/zephyr/__init__.py +263 -0
- esphome/components/zephyr/const.py +16 -0
- esphome/components/zephyr/core.cpp +98 -0
- esphome/components/zephyr/gpio.cpp +123 -0
- esphome/components/zephyr/gpio.h +38 -0
- esphome/components/zephyr/pre_build.py.script +4 -0
- esphome/components/zephyr/preferences.cpp +156 -0
- esphome/components/zephyr/preferences.h +13 -0
- esphome/components/zephyr_ble_server/__init__.py +34 -0
- esphome/components/zephyr_ble_server/ble_server.cpp +100 -0
- esphome/components/zephyr_ble_server/ble_server.h +19 -0
- esphome/components/zhlt01/__init__.py +0 -0
- esphome/components/zhlt01/climate.py +14 -0
- esphome/components/zhlt01/zhlt01.cpp +238 -0
- esphome/components/zhlt01/zhlt01.h +167 -0
- esphome/components/zio_ultrasonic/__init__.py +0 -0
- esphome/components/zio_ultrasonic/sensor.py +31 -0
- esphome/components/zio_ultrasonic/zio_ultrasonic.cpp +31 -0
- esphome/components/zio_ultrasonic/zio_ultrasonic.h +20 -0
- esphome/components/zwave_proxy/__init__.py +46 -0
- esphome/components/zwave_proxy/zwave_proxy.cpp +346 -0
- esphome/components/zwave_proxy/zwave_proxy.h +91 -0
- esphome/components/zyaura/__init__.py +0 -0
- esphome/components/zyaura/sensor.py +71 -0
- esphome/components/zyaura/zyaura.cpp +125 -0
- esphome/components/zyaura/zyaura.h +85 -0
- esphome/config.py +1356 -0
- esphome/config_helpers.py +155 -0
- esphome/config_validation.py +2220 -0
- esphome/const.py +1378 -0
- esphome/core/__init__.py +974 -0
- esphome/core/application.cpp +714 -0
- esphome/core/application.h +646 -0
- esphome/core/area.h +19 -0
- esphome/core/automation.h +367 -0
- esphome/core/base_automation.h +554 -0
- esphome/core/color.cpp +23 -0
- esphome/core/color.h +188 -0
- esphome/core/component.cpp +506 -0
- esphome/core/component.h +530 -0
- esphome/core/component_iterator.cpp +197 -0
- esphome/core/component_iterator.h +192 -0
- esphome/core/config.py +639 -0
- esphome/core/controller.h +134 -0
- esphome/core/controller_registry.cpp +114 -0
- esphome/core/controller_registry.h +245 -0
- esphome/core/datatypes.h +61 -0
- esphome/core/defines.h +337 -0
- esphome/core/device.h +20 -0
- esphome/core/doxygen.h +13 -0
- esphome/core/entity_base.cpp +109 -0
- esphome/core/entity_base.h +253 -0
- esphome/core/entity_helpers.py +272 -0
- esphome/core/event_pool.h +81 -0
- esphome/core/finite_set_mask.h +171 -0
- esphome/core/gpio.h +106 -0
- esphome/core/hal.h +53 -0
- esphome/core/hash_base.h +56 -0
- esphome/core/helpers.cpp +711 -0
- esphome/core/helpers.h +1253 -0
- esphome/core/lock_free_queue.h +146 -0
- esphome/core/log.cpp +62 -0
- esphome/core/log.h +204 -0
- esphome/core/log_const_en.h +4 -0
- esphome/core/macros.h +12 -0
- esphome/core/optional.h +220 -0
- esphome/core/preferences.h +70 -0
- esphome/core/progmem.h +16 -0
- esphome/core/ring_buffer.cpp +131 -0
- esphome/core/ring_buffer.h +99 -0
- esphome/core/scheduler.cpp +822 -0
- esphome/core/scheduler.h +508 -0
- esphome/core/string_ref.h +147 -0
- esphome/core/template_lambda.h +51 -0
- esphome/core/time.cpp +224 -0
- esphome/core/time.h +126 -0
- esphome/core/util.cpp +37 -0
- esphome/core/util.h +15 -0
- esphome/core/version.h +12 -0
- esphome/coroutine.py +348 -0
- esphome/cpp_generator.py +1041 -0
- esphome/cpp_helpers.py +126 -0
- esphome/cpp_types.py +46 -0
- esphome/dashboard/__init__.py +0 -0
- esphome/dashboard/const.py +29 -0
- esphome/dashboard/core.py +190 -0
- esphome/dashboard/dashboard.py +152 -0
- esphome/dashboard/dns.py +58 -0
- esphome/dashboard/entries.py +458 -0
- esphome/dashboard/models.py +76 -0
- esphome/dashboard/settings.py +98 -0
- esphome/dashboard/status/__init__.py +0 -0
- esphome/dashboard/status/mdns.py +170 -0
- esphome/dashboard/status/mqtt.py +78 -0
- esphome/dashboard/status/ping.py +151 -0
- esphome/dashboard/util/__init__.py +0 -0
- esphome/dashboard/util/itertools.py +22 -0
- esphome/dashboard/util/password.py +11 -0
- esphome/dashboard/util/subprocess.py +31 -0
- esphome/dashboard/util/text.py +9 -0
- esphome/dashboard/web_server.py +1620 -0
- esphome/enum.py +20 -0
- esphome/espota2.py +445 -0
- esphome/external_files.py +106 -0
- esphome/final_validate.py +58 -0
- esphome/git.py +283 -0
- esphome/helpers.py +559 -0
- esphome/loader.py +233 -0
- esphome/log.py +93 -0
- esphome/mqtt.py +305 -0
- esphome/pins.py +340 -0
- esphome/platformio_api.py +422 -0
- esphome/resolver.py +67 -0
- esphome/schema_extractors.py +92 -0
- esphome/storage_json.py +303 -0
- esphome/types.py +58 -0
- esphome/util.py +380 -0
- esphome/voluptuous_schema.py +234 -0
- esphome/vscode.py +146 -0
- esphome/wizard.py +559 -0
- esphome/writer.py +412 -0
- esphome/yaml_util.py +635 -0
- esphome/zeroconf.py +202 -0
- esphome-2025.12.0b2.dist-info/METADATA +86 -0
- esphome-2025.12.0b2.dist-info/RECORD +3896 -0
- esphome-2025.12.0b2.dist-info/WHEEL +5 -0
- esphome-2025.12.0b2.dist-info/entry_points.txt +2 -0
- esphome-2025.12.0b2.dist-info/licenses/LICENSE +709 -0
- esphome-2025.12.0b2.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,3072 @@
|
|
|
1
|
+
// This file was automatically generated with a tool.
|
|
2
|
+
// See script/api_protobuf/api_protobuf.py
|
|
3
|
+
#pragma once
|
|
4
|
+
|
|
5
|
+
#include "esphome/core/defines.h"
|
|
6
|
+
#include "esphome/core/string_ref.h"
|
|
7
|
+
|
|
8
|
+
#include "proto.h"
|
|
9
|
+
#include "api_pb2_includes.h"
|
|
10
|
+
|
|
11
|
+
namespace esphome::api {
|
|
12
|
+
|
|
13
|
+
namespace enums {
|
|
14
|
+
|
|
15
|
+
enum EntityCategory : uint32_t {
|
|
16
|
+
ENTITY_CATEGORY_NONE = 0,
|
|
17
|
+
ENTITY_CATEGORY_CONFIG = 1,
|
|
18
|
+
ENTITY_CATEGORY_DIAGNOSTIC = 2,
|
|
19
|
+
};
|
|
20
|
+
#ifdef USE_COVER
|
|
21
|
+
enum CoverOperation : uint32_t {
|
|
22
|
+
COVER_OPERATION_IDLE = 0,
|
|
23
|
+
COVER_OPERATION_IS_OPENING = 1,
|
|
24
|
+
COVER_OPERATION_IS_CLOSING = 2,
|
|
25
|
+
};
|
|
26
|
+
#endif
|
|
27
|
+
#ifdef USE_FAN
|
|
28
|
+
enum FanDirection : uint32_t {
|
|
29
|
+
FAN_DIRECTION_FORWARD = 0,
|
|
30
|
+
FAN_DIRECTION_REVERSE = 1,
|
|
31
|
+
};
|
|
32
|
+
#endif
|
|
33
|
+
#ifdef USE_LIGHT
|
|
34
|
+
enum ColorMode : uint32_t {
|
|
35
|
+
COLOR_MODE_UNKNOWN = 0,
|
|
36
|
+
COLOR_MODE_ON_OFF = 1,
|
|
37
|
+
COLOR_MODE_LEGACY_BRIGHTNESS = 2,
|
|
38
|
+
COLOR_MODE_BRIGHTNESS = 3,
|
|
39
|
+
COLOR_MODE_WHITE = 7,
|
|
40
|
+
COLOR_MODE_COLOR_TEMPERATURE = 11,
|
|
41
|
+
COLOR_MODE_COLD_WARM_WHITE = 19,
|
|
42
|
+
COLOR_MODE_RGB = 35,
|
|
43
|
+
COLOR_MODE_RGB_WHITE = 39,
|
|
44
|
+
COLOR_MODE_RGB_COLOR_TEMPERATURE = 47,
|
|
45
|
+
COLOR_MODE_RGB_COLD_WARM_WHITE = 51,
|
|
46
|
+
};
|
|
47
|
+
#endif
|
|
48
|
+
#ifdef USE_SENSOR
|
|
49
|
+
enum SensorStateClass : uint32_t {
|
|
50
|
+
STATE_CLASS_NONE = 0,
|
|
51
|
+
STATE_CLASS_MEASUREMENT = 1,
|
|
52
|
+
STATE_CLASS_TOTAL_INCREASING = 2,
|
|
53
|
+
STATE_CLASS_TOTAL = 3,
|
|
54
|
+
STATE_CLASS_MEASUREMENT_ANGLE = 4,
|
|
55
|
+
};
|
|
56
|
+
#endif
|
|
57
|
+
enum LogLevel : uint32_t {
|
|
58
|
+
LOG_LEVEL_NONE = 0,
|
|
59
|
+
LOG_LEVEL_ERROR = 1,
|
|
60
|
+
LOG_LEVEL_WARN = 2,
|
|
61
|
+
LOG_LEVEL_INFO = 3,
|
|
62
|
+
LOG_LEVEL_CONFIG = 4,
|
|
63
|
+
LOG_LEVEL_DEBUG = 5,
|
|
64
|
+
LOG_LEVEL_VERBOSE = 6,
|
|
65
|
+
LOG_LEVEL_VERY_VERBOSE = 7,
|
|
66
|
+
};
|
|
67
|
+
#ifdef USE_API_USER_DEFINED_ACTIONS
|
|
68
|
+
enum ServiceArgType : uint32_t {
|
|
69
|
+
SERVICE_ARG_TYPE_BOOL = 0,
|
|
70
|
+
SERVICE_ARG_TYPE_INT = 1,
|
|
71
|
+
SERVICE_ARG_TYPE_FLOAT = 2,
|
|
72
|
+
SERVICE_ARG_TYPE_STRING = 3,
|
|
73
|
+
SERVICE_ARG_TYPE_BOOL_ARRAY = 4,
|
|
74
|
+
SERVICE_ARG_TYPE_INT_ARRAY = 5,
|
|
75
|
+
SERVICE_ARG_TYPE_FLOAT_ARRAY = 6,
|
|
76
|
+
SERVICE_ARG_TYPE_STRING_ARRAY = 7,
|
|
77
|
+
};
|
|
78
|
+
enum SupportsResponseType : uint32_t {
|
|
79
|
+
SUPPORTS_RESPONSE_NONE = 0,
|
|
80
|
+
SUPPORTS_RESPONSE_OPTIONAL = 1,
|
|
81
|
+
SUPPORTS_RESPONSE_ONLY = 2,
|
|
82
|
+
SUPPORTS_RESPONSE_STATUS = 100,
|
|
83
|
+
};
|
|
84
|
+
#endif
|
|
85
|
+
#ifdef USE_CLIMATE
|
|
86
|
+
enum ClimateMode : uint32_t {
|
|
87
|
+
CLIMATE_MODE_OFF = 0,
|
|
88
|
+
CLIMATE_MODE_HEAT_COOL = 1,
|
|
89
|
+
CLIMATE_MODE_COOL = 2,
|
|
90
|
+
CLIMATE_MODE_HEAT = 3,
|
|
91
|
+
CLIMATE_MODE_FAN_ONLY = 4,
|
|
92
|
+
CLIMATE_MODE_DRY = 5,
|
|
93
|
+
CLIMATE_MODE_AUTO = 6,
|
|
94
|
+
};
|
|
95
|
+
enum ClimateFanMode : uint32_t {
|
|
96
|
+
CLIMATE_FAN_ON = 0,
|
|
97
|
+
CLIMATE_FAN_OFF = 1,
|
|
98
|
+
CLIMATE_FAN_AUTO = 2,
|
|
99
|
+
CLIMATE_FAN_LOW = 3,
|
|
100
|
+
CLIMATE_FAN_MEDIUM = 4,
|
|
101
|
+
CLIMATE_FAN_HIGH = 5,
|
|
102
|
+
CLIMATE_FAN_MIDDLE = 6,
|
|
103
|
+
CLIMATE_FAN_FOCUS = 7,
|
|
104
|
+
CLIMATE_FAN_DIFFUSE = 8,
|
|
105
|
+
CLIMATE_FAN_QUIET = 9,
|
|
106
|
+
};
|
|
107
|
+
enum ClimateSwingMode : uint32_t {
|
|
108
|
+
CLIMATE_SWING_OFF = 0,
|
|
109
|
+
CLIMATE_SWING_BOTH = 1,
|
|
110
|
+
CLIMATE_SWING_VERTICAL = 2,
|
|
111
|
+
CLIMATE_SWING_HORIZONTAL = 3,
|
|
112
|
+
};
|
|
113
|
+
enum ClimateAction : uint32_t {
|
|
114
|
+
CLIMATE_ACTION_OFF = 0,
|
|
115
|
+
CLIMATE_ACTION_COOLING = 2,
|
|
116
|
+
CLIMATE_ACTION_HEATING = 3,
|
|
117
|
+
CLIMATE_ACTION_IDLE = 4,
|
|
118
|
+
CLIMATE_ACTION_DRYING = 5,
|
|
119
|
+
CLIMATE_ACTION_FAN = 6,
|
|
120
|
+
};
|
|
121
|
+
enum ClimatePreset : uint32_t {
|
|
122
|
+
CLIMATE_PRESET_NONE = 0,
|
|
123
|
+
CLIMATE_PRESET_HOME = 1,
|
|
124
|
+
CLIMATE_PRESET_AWAY = 2,
|
|
125
|
+
CLIMATE_PRESET_BOOST = 3,
|
|
126
|
+
CLIMATE_PRESET_COMFORT = 4,
|
|
127
|
+
CLIMATE_PRESET_ECO = 5,
|
|
128
|
+
CLIMATE_PRESET_SLEEP = 6,
|
|
129
|
+
CLIMATE_PRESET_ACTIVITY = 7,
|
|
130
|
+
};
|
|
131
|
+
#endif
|
|
132
|
+
#ifdef USE_NUMBER
|
|
133
|
+
enum NumberMode : uint32_t {
|
|
134
|
+
NUMBER_MODE_AUTO = 0,
|
|
135
|
+
NUMBER_MODE_BOX = 1,
|
|
136
|
+
NUMBER_MODE_SLIDER = 2,
|
|
137
|
+
};
|
|
138
|
+
#endif
|
|
139
|
+
#ifdef USE_LOCK
|
|
140
|
+
enum LockState : uint32_t {
|
|
141
|
+
LOCK_STATE_NONE = 0,
|
|
142
|
+
LOCK_STATE_LOCKED = 1,
|
|
143
|
+
LOCK_STATE_UNLOCKED = 2,
|
|
144
|
+
LOCK_STATE_JAMMED = 3,
|
|
145
|
+
LOCK_STATE_LOCKING = 4,
|
|
146
|
+
LOCK_STATE_UNLOCKING = 5,
|
|
147
|
+
};
|
|
148
|
+
enum LockCommand : uint32_t {
|
|
149
|
+
LOCK_UNLOCK = 0,
|
|
150
|
+
LOCK_LOCK = 1,
|
|
151
|
+
LOCK_OPEN = 2,
|
|
152
|
+
};
|
|
153
|
+
#endif
|
|
154
|
+
#ifdef USE_MEDIA_PLAYER
|
|
155
|
+
enum MediaPlayerState : uint32_t {
|
|
156
|
+
MEDIA_PLAYER_STATE_NONE = 0,
|
|
157
|
+
MEDIA_PLAYER_STATE_IDLE = 1,
|
|
158
|
+
MEDIA_PLAYER_STATE_PLAYING = 2,
|
|
159
|
+
MEDIA_PLAYER_STATE_PAUSED = 3,
|
|
160
|
+
MEDIA_PLAYER_STATE_ANNOUNCING = 4,
|
|
161
|
+
MEDIA_PLAYER_STATE_OFF = 5,
|
|
162
|
+
MEDIA_PLAYER_STATE_ON = 6,
|
|
163
|
+
};
|
|
164
|
+
enum MediaPlayerCommand : uint32_t {
|
|
165
|
+
MEDIA_PLAYER_COMMAND_PLAY = 0,
|
|
166
|
+
MEDIA_PLAYER_COMMAND_PAUSE = 1,
|
|
167
|
+
MEDIA_PLAYER_COMMAND_STOP = 2,
|
|
168
|
+
MEDIA_PLAYER_COMMAND_MUTE = 3,
|
|
169
|
+
MEDIA_PLAYER_COMMAND_UNMUTE = 4,
|
|
170
|
+
MEDIA_PLAYER_COMMAND_TOGGLE = 5,
|
|
171
|
+
MEDIA_PLAYER_COMMAND_VOLUME_UP = 6,
|
|
172
|
+
MEDIA_PLAYER_COMMAND_VOLUME_DOWN = 7,
|
|
173
|
+
MEDIA_PLAYER_COMMAND_ENQUEUE = 8,
|
|
174
|
+
MEDIA_PLAYER_COMMAND_REPEAT_ONE = 9,
|
|
175
|
+
MEDIA_PLAYER_COMMAND_REPEAT_OFF = 10,
|
|
176
|
+
MEDIA_PLAYER_COMMAND_CLEAR_PLAYLIST = 11,
|
|
177
|
+
MEDIA_PLAYER_COMMAND_TURN_ON = 12,
|
|
178
|
+
MEDIA_PLAYER_COMMAND_TURN_OFF = 13,
|
|
179
|
+
};
|
|
180
|
+
enum MediaPlayerFormatPurpose : uint32_t {
|
|
181
|
+
MEDIA_PLAYER_FORMAT_PURPOSE_DEFAULT = 0,
|
|
182
|
+
MEDIA_PLAYER_FORMAT_PURPOSE_ANNOUNCEMENT = 1,
|
|
183
|
+
};
|
|
184
|
+
#endif
|
|
185
|
+
#ifdef USE_BLUETOOTH_PROXY
|
|
186
|
+
enum BluetoothDeviceRequestType : uint32_t {
|
|
187
|
+
BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT = 0,
|
|
188
|
+
BLUETOOTH_DEVICE_REQUEST_TYPE_DISCONNECT = 1,
|
|
189
|
+
BLUETOOTH_DEVICE_REQUEST_TYPE_PAIR = 2,
|
|
190
|
+
BLUETOOTH_DEVICE_REQUEST_TYPE_UNPAIR = 3,
|
|
191
|
+
BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITH_CACHE = 4,
|
|
192
|
+
BLUETOOTH_DEVICE_REQUEST_TYPE_CONNECT_V3_WITHOUT_CACHE = 5,
|
|
193
|
+
BLUETOOTH_DEVICE_REQUEST_TYPE_CLEAR_CACHE = 6,
|
|
194
|
+
};
|
|
195
|
+
enum BluetoothScannerState : uint32_t {
|
|
196
|
+
BLUETOOTH_SCANNER_STATE_IDLE = 0,
|
|
197
|
+
BLUETOOTH_SCANNER_STATE_STARTING = 1,
|
|
198
|
+
BLUETOOTH_SCANNER_STATE_RUNNING = 2,
|
|
199
|
+
BLUETOOTH_SCANNER_STATE_FAILED = 3,
|
|
200
|
+
BLUETOOTH_SCANNER_STATE_STOPPING = 4,
|
|
201
|
+
BLUETOOTH_SCANNER_STATE_STOPPED = 5,
|
|
202
|
+
};
|
|
203
|
+
enum BluetoothScannerMode : uint32_t {
|
|
204
|
+
BLUETOOTH_SCANNER_MODE_PASSIVE = 0,
|
|
205
|
+
BLUETOOTH_SCANNER_MODE_ACTIVE = 1,
|
|
206
|
+
};
|
|
207
|
+
#endif
|
|
208
|
+
enum VoiceAssistantSubscribeFlag : uint32_t {
|
|
209
|
+
VOICE_ASSISTANT_SUBSCRIBE_NONE = 0,
|
|
210
|
+
VOICE_ASSISTANT_SUBSCRIBE_API_AUDIO = 1,
|
|
211
|
+
};
|
|
212
|
+
enum VoiceAssistantRequestFlag : uint32_t {
|
|
213
|
+
VOICE_ASSISTANT_REQUEST_NONE = 0,
|
|
214
|
+
VOICE_ASSISTANT_REQUEST_USE_VAD = 1,
|
|
215
|
+
VOICE_ASSISTANT_REQUEST_USE_WAKE_WORD = 2,
|
|
216
|
+
};
|
|
217
|
+
#ifdef USE_VOICE_ASSISTANT
|
|
218
|
+
enum VoiceAssistantEvent : uint32_t {
|
|
219
|
+
VOICE_ASSISTANT_ERROR = 0,
|
|
220
|
+
VOICE_ASSISTANT_RUN_START = 1,
|
|
221
|
+
VOICE_ASSISTANT_RUN_END = 2,
|
|
222
|
+
VOICE_ASSISTANT_STT_START = 3,
|
|
223
|
+
VOICE_ASSISTANT_STT_END = 4,
|
|
224
|
+
VOICE_ASSISTANT_INTENT_START = 5,
|
|
225
|
+
VOICE_ASSISTANT_INTENT_END = 6,
|
|
226
|
+
VOICE_ASSISTANT_TTS_START = 7,
|
|
227
|
+
VOICE_ASSISTANT_TTS_END = 8,
|
|
228
|
+
VOICE_ASSISTANT_WAKE_WORD_START = 9,
|
|
229
|
+
VOICE_ASSISTANT_WAKE_WORD_END = 10,
|
|
230
|
+
VOICE_ASSISTANT_STT_VAD_START = 11,
|
|
231
|
+
VOICE_ASSISTANT_STT_VAD_END = 12,
|
|
232
|
+
VOICE_ASSISTANT_TTS_STREAM_START = 98,
|
|
233
|
+
VOICE_ASSISTANT_TTS_STREAM_END = 99,
|
|
234
|
+
VOICE_ASSISTANT_INTENT_PROGRESS = 100,
|
|
235
|
+
};
|
|
236
|
+
enum VoiceAssistantTimerEvent : uint32_t {
|
|
237
|
+
VOICE_ASSISTANT_TIMER_STARTED = 0,
|
|
238
|
+
VOICE_ASSISTANT_TIMER_UPDATED = 1,
|
|
239
|
+
VOICE_ASSISTANT_TIMER_CANCELLED = 2,
|
|
240
|
+
VOICE_ASSISTANT_TIMER_FINISHED = 3,
|
|
241
|
+
};
|
|
242
|
+
#endif
|
|
243
|
+
#ifdef USE_ALARM_CONTROL_PANEL
|
|
244
|
+
enum AlarmControlPanelState : uint32_t {
|
|
245
|
+
ALARM_STATE_DISARMED = 0,
|
|
246
|
+
ALARM_STATE_ARMED_HOME = 1,
|
|
247
|
+
ALARM_STATE_ARMED_AWAY = 2,
|
|
248
|
+
ALARM_STATE_ARMED_NIGHT = 3,
|
|
249
|
+
ALARM_STATE_ARMED_VACATION = 4,
|
|
250
|
+
ALARM_STATE_ARMED_CUSTOM_BYPASS = 5,
|
|
251
|
+
ALARM_STATE_PENDING = 6,
|
|
252
|
+
ALARM_STATE_ARMING = 7,
|
|
253
|
+
ALARM_STATE_DISARMING = 8,
|
|
254
|
+
ALARM_STATE_TRIGGERED = 9,
|
|
255
|
+
};
|
|
256
|
+
enum AlarmControlPanelStateCommand : uint32_t {
|
|
257
|
+
ALARM_CONTROL_PANEL_DISARM = 0,
|
|
258
|
+
ALARM_CONTROL_PANEL_ARM_AWAY = 1,
|
|
259
|
+
ALARM_CONTROL_PANEL_ARM_HOME = 2,
|
|
260
|
+
ALARM_CONTROL_PANEL_ARM_NIGHT = 3,
|
|
261
|
+
ALARM_CONTROL_PANEL_ARM_VACATION = 4,
|
|
262
|
+
ALARM_CONTROL_PANEL_ARM_CUSTOM_BYPASS = 5,
|
|
263
|
+
ALARM_CONTROL_PANEL_TRIGGER = 6,
|
|
264
|
+
};
|
|
265
|
+
#endif
|
|
266
|
+
#ifdef USE_TEXT
|
|
267
|
+
enum TextMode : uint32_t {
|
|
268
|
+
TEXT_MODE_TEXT = 0,
|
|
269
|
+
TEXT_MODE_PASSWORD = 1,
|
|
270
|
+
};
|
|
271
|
+
#endif
|
|
272
|
+
#ifdef USE_VALVE
|
|
273
|
+
enum ValveOperation : uint32_t {
|
|
274
|
+
VALVE_OPERATION_IDLE = 0,
|
|
275
|
+
VALVE_OPERATION_IS_OPENING = 1,
|
|
276
|
+
VALVE_OPERATION_IS_CLOSING = 2,
|
|
277
|
+
};
|
|
278
|
+
#endif
|
|
279
|
+
#ifdef USE_UPDATE
|
|
280
|
+
enum UpdateCommand : uint32_t {
|
|
281
|
+
UPDATE_COMMAND_NONE = 0,
|
|
282
|
+
UPDATE_COMMAND_UPDATE = 1,
|
|
283
|
+
UPDATE_COMMAND_CHECK = 2,
|
|
284
|
+
};
|
|
285
|
+
#endif
|
|
286
|
+
#ifdef USE_ZWAVE_PROXY
|
|
287
|
+
enum ZWaveProxyRequestType : uint32_t {
|
|
288
|
+
ZWAVE_PROXY_REQUEST_TYPE_SUBSCRIBE = 0,
|
|
289
|
+
ZWAVE_PROXY_REQUEST_TYPE_UNSUBSCRIBE = 1,
|
|
290
|
+
ZWAVE_PROXY_REQUEST_TYPE_HOME_ID_CHANGE = 2,
|
|
291
|
+
};
|
|
292
|
+
#endif
|
|
293
|
+
|
|
294
|
+
} // namespace enums
|
|
295
|
+
|
|
296
|
+
class InfoResponseProtoMessage : public ProtoMessage {
|
|
297
|
+
public:
|
|
298
|
+
~InfoResponseProtoMessage() override = default;
|
|
299
|
+
StringRef object_id_ref_{};
|
|
300
|
+
void set_object_id(const StringRef &ref) { this->object_id_ref_ = ref; }
|
|
301
|
+
uint32_t key{0};
|
|
302
|
+
StringRef name_ref_{};
|
|
303
|
+
void set_name(const StringRef &ref) { this->name_ref_ = ref; }
|
|
304
|
+
bool disabled_by_default{false};
|
|
305
|
+
#ifdef USE_ENTITY_ICON
|
|
306
|
+
StringRef icon_ref_{};
|
|
307
|
+
void set_icon(const StringRef &ref) { this->icon_ref_ = ref; }
|
|
308
|
+
#endif
|
|
309
|
+
enums::EntityCategory entity_category{};
|
|
310
|
+
#ifdef USE_DEVICES
|
|
311
|
+
uint32_t device_id{0};
|
|
312
|
+
#endif
|
|
313
|
+
|
|
314
|
+
protected:
|
|
315
|
+
};
|
|
316
|
+
|
|
317
|
+
class StateResponseProtoMessage : public ProtoMessage {
|
|
318
|
+
public:
|
|
319
|
+
~StateResponseProtoMessage() override = default;
|
|
320
|
+
uint32_t key{0};
|
|
321
|
+
#ifdef USE_DEVICES
|
|
322
|
+
uint32_t device_id{0};
|
|
323
|
+
#endif
|
|
324
|
+
|
|
325
|
+
protected:
|
|
326
|
+
};
|
|
327
|
+
|
|
328
|
+
class CommandProtoMessage : public ProtoDecodableMessage {
|
|
329
|
+
public:
|
|
330
|
+
~CommandProtoMessage() override = default;
|
|
331
|
+
uint32_t key{0};
|
|
332
|
+
#ifdef USE_DEVICES
|
|
333
|
+
uint32_t device_id{0};
|
|
334
|
+
#endif
|
|
335
|
+
|
|
336
|
+
protected:
|
|
337
|
+
};
|
|
338
|
+
class HelloRequest final : public ProtoDecodableMessage {
|
|
339
|
+
public:
|
|
340
|
+
static constexpr uint8_t MESSAGE_TYPE = 1;
|
|
341
|
+
static constexpr uint8_t ESTIMATED_SIZE = 27;
|
|
342
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
343
|
+
const char *message_name() const override { return "hello_request"; }
|
|
344
|
+
#endif
|
|
345
|
+
const uint8_t *client_info{nullptr};
|
|
346
|
+
uint16_t client_info_len{0};
|
|
347
|
+
uint32_t api_version_major{0};
|
|
348
|
+
uint32_t api_version_minor{0};
|
|
349
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
350
|
+
void dump_to(std::string &out) const override;
|
|
351
|
+
#endif
|
|
352
|
+
|
|
353
|
+
protected:
|
|
354
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
355
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
356
|
+
};
|
|
357
|
+
class HelloResponse final : public ProtoMessage {
|
|
358
|
+
public:
|
|
359
|
+
static constexpr uint8_t MESSAGE_TYPE = 2;
|
|
360
|
+
static constexpr uint8_t ESTIMATED_SIZE = 26;
|
|
361
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
362
|
+
const char *message_name() const override { return "hello_response"; }
|
|
363
|
+
#endif
|
|
364
|
+
uint32_t api_version_major{0};
|
|
365
|
+
uint32_t api_version_minor{0};
|
|
366
|
+
StringRef server_info_ref_{};
|
|
367
|
+
void set_server_info(const StringRef &ref) { this->server_info_ref_ = ref; }
|
|
368
|
+
StringRef name_ref_{};
|
|
369
|
+
void set_name(const StringRef &ref) { this->name_ref_ = ref; }
|
|
370
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
371
|
+
void calculate_size(ProtoSize &size) const override;
|
|
372
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
373
|
+
void dump_to(std::string &out) const override;
|
|
374
|
+
#endif
|
|
375
|
+
|
|
376
|
+
protected:
|
|
377
|
+
};
|
|
378
|
+
#ifdef USE_API_PASSWORD
|
|
379
|
+
class AuthenticationRequest final : public ProtoDecodableMessage {
|
|
380
|
+
public:
|
|
381
|
+
static constexpr uint8_t MESSAGE_TYPE = 3;
|
|
382
|
+
static constexpr uint8_t ESTIMATED_SIZE = 19;
|
|
383
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
384
|
+
const char *message_name() const override { return "authentication_request"; }
|
|
385
|
+
#endif
|
|
386
|
+
const uint8_t *password{nullptr};
|
|
387
|
+
uint16_t password_len{0};
|
|
388
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
389
|
+
void dump_to(std::string &out) const override;
|
|
390
|
+
#endif
|
|
391
|
+
|
|
392
|
+
protected:
|
|
393
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
394
|
+
};
|
|
395
|
+
class AuthenticationResponse final : public ProtoMessage {
|
|
396
|
+
public:
|
|
397
|
+
static constexpr uint8_t MESSAGE_TYPE = 4;
|
|
398
|
+
static constexpr uint8_t ESTIMATED_SIZE = 2;
|
|
399
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
400
|
+
const char *message_name() const override { return "authentication_response"; }
|
|
401
|
+
#endif
|
|
402
|
+
bool invalid_password{false};
|
|
403
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
404
|
+
void calculate_size(ProtoSize &size) const override;
|
|
405
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
406
|
+
void dump_to(std::string &out) const override;
|
|
407
|
+
#endif
|
|
408
|
+
|
|
409
|
+
protected:
|
|
410
|
+
};
|
|
411
|
+
#endif
|
|
412
|
+
class DisconnectRequest final : public ProtoMessage {
|
|
413
|
+
public:
|
|
414
|
+
static constexpr uint8_t MESSAGE_TYPE = 5;
|
|
415
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
416
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
417
|
+
const char *message_name() const override { return "disconnect_request"; }
|
|
418
|
+
#endif
|
|
419
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
420
|
+
void dump_to(std::string &out) const override;
|
|
421
|
+
#endif
|
|
422
|
+
|
|
423
|
+
protected:
|
|
424
|
+
};
|
|
425
|
+
class DisconnectResponse final : public ProtoMessage {
|
|
426
|
+
public:
|
|
427
|
+
static constexpr uint8_t MESSAGE_TYPE = 6;
|
|
428
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
429
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
430
|
+
const char *message_name() const override { return "disconnect_response"; }
|
|
431
|
+
#endif
|
|
432
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
433
|
+
void dump_to(std::string &out) const override;
|
|
434
|
+
#endif
|
|
435
|
+
|
|
436
|
+
protected:
|
|
437
|
+
};
|
|
438
|
+
class PingRequest final : public ProtoMessage {
|
|
439
|
+
public:
|
|
440
|
+
static constexpr uint8_t MESSAGE_TYPE = 7;
|
|
441
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
442
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
443
|
+
const char *message_name() const override { return "ping_request"; }
|
|
444
|
+
#endif
|
|
445
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
446
|
+
void dump_to(std::string &out) const override;
|
|
447
|
+
#endif
|
|
448
|
+
|
|
449
|
+
protected:
|
|
450
|
+
};
|
|
451
|
+
class PingResponse final : public ProtoMessage {
|
|
452
|
+
public:
|
|
453
|
+
static constexpr uint8_t MESSAGE_TYPE = 8;
|
|
454
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
455
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
456
|
+
const char *message_name() const override { return "ping_response"; }
|
|
457
|
+
#endif
|
|
458
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
459
|
+
void dump_to(std::string &out) const override;
|
|
460
|
+
#endif
|
|
461
|
+
|
|
462
|
+
protected:
|
|
463
|
+
};
|
|
464
|
+
class DeviceInfoRequest final : public ProtoMessage {
|
|
465
|
+
public:
|
|
466
|
+
static constexpr uint8_t MESSAGE_TYPE = 9;
|
|
467
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
468
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
469
|
+
const char *message_name() const override { return "device_info_request"; }
|
|
470
|
+
#endif
|
|
471
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
472
|
+
void dump_to(std::string &out) const override;
|
|
473
|
+
#endif
|
|
474
|
+
|
|
475
|
+
protected:
|
|
476
|
+
};
|
|
477
|
+
#ifdef USE_AREAS
|
|
478
|
+
class AreaInfo final : public ProtoMessage {
|
|
479
|
+
public:
|
|
480
|
+
uint32_t area_id{0};
|
|
481
|
+
StringRef name_ref_{};
|
|
482
|
+
void set_name(const StringRef &ref) { this->name_ref_ = ref; }
|
|
483
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
484
|
+
void calculate_size(ProtoSize &size) const override;
|
|
485
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
486
|
+
void dump_to(std::string &out) const override;
|
|
487
|
+
#endif
|
|
488
|
+
|
|
489
|
+
protected:
|
|
490
|
+
};
|
|
491
|
+
#endif
|
|
492
|
+
#ifdef USE_DEVICES
|
|
493
|
+
class DeviceInfo final : public ProtoMessage {
|
|
494
|
+
public:
|
|
495
|
+
uint32_t device_id{0};
|
|
496
|
+
StringRef name_ref_{};
|
|
497
|
+
void set_name(const StringRef &ref) { this->name_ref_ = ref; }
|
|
498
|
+
uint32_t area_id{0};
|
|
499
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
500
|
+
void calculate_size(ProtoSize &size) const override;
|
|
501
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
502
|
+
void dump_to(std::string &out) const override;
|
|
503
|
+
#endif
|
|
504
|
+
|
|
505
|
+
protected:
|
|
506
|
+
};
|
|
507
|
+
#endif
|
|
508
|
+
class DeviceInfoResponse final : public ProtoMessage {
|
|
509
|
+
public:
|
|
510
|
+
static constexpr uint8_t MESSAGE_TYPE = 10;
|
|
511
|
+
static constexpr uint16_t ESTIMATED_SIZE = 257;
|
|
512
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
513
|
+
const char *message_name() const override { return "device_info_response"; }
|
|
514
|
+
#endif
|
|
515
|
+
#ifdef USE_API_PASSWORD
|
|
516
|
+
bool uses_password{false};
|
|
517
|
+
#endif
|
|
518
|
+
StringRef name_ref_{};
|
|
519
|
+
void set_name(const StringRef &ref) { this->name_ref_ = ref; }
|
|
520
|
+
StringRef mac_address_ref_{};
|
|
521
|
+
void set_mac_address(const StringRef &ref) { this->mac_address_ref_ = ref; }
|
|
522
|
+
StringRef esphome_version_ref_{};
|
|
523
|
+
void set_esphome_version(const StringRef &ref) { this->esphome_version_ref_ = ref; }
|
|
524
|
+
StringRef compilation_time_ref_{};
|
|
525
|
+
void set_compilation_time(const StringRef &ref) { this->compilation_time_ref_ = ref; }
|
|
526
|
+
StringRef model_ref_{};
|
|
527
|
+
void set_model(const StringRef &ref) { this->model_ref_ = ref; }
|
|
528
|
+
#ifdef USE_DEEP_SLEEP
|
|
529
|
+
bool has_deep_sleep{false};
|
|
530
|
+
#endif
|
|
531
|
+
#ifdef ESPHOME_PROJECT_NAME
|
|
532
|
+
StringRef project_name_ref_{};
|
|
533
|
+
void set_project_name(const StringRef &ref) { this->project_name_ref_ = ref; }
|
|
534
|
+
#endif
|
|
535
|
+
#ifdef ESPHOME_PROJECT_NAME
|
|
536
|
+
StringRef project_version_ref_{};
|
|
537
|
+
void set_project_version(const StringRef &ref) { this->project_version_ref_ = ref; }
|
|
538
|
+
#endif
|
|
539
|
+
#ifdef USE_WEBSERVER
|
|
540
|
+
uint32_t webserver_port{0};
|
|
541
|
+
#endif
|
|
542
|
+
#ifdef USE_BLUETOOTH_PROXY
|
|
543
|
+
uint32_t bluetooth_proxy_feature_flags{0};
|
|
544
|
+
#endif
|
|
545
|
+
StringRef manufacturer_ref_{};
|
|
546
|
+
void set_manufacturer(const StringRef &ref) { this->manufacturer_ref_ = ref; }
|
|
547
|
+
StringRef friendly_name_ref_{};
|
|
548
|
+
void set_friendly_name(const StringRef &ref) { this->friendly_name_ref_ = ref; }
|
|
549
|
+
#ifdef USE_VOICE_ASSISTANT
|
|
550
|
+
uint32_t voice_assistant_feature_flags{0};
|
|
551
|
+
#endif
|
|
552
|
+
#ifdef USE_AREAS
|
|
553
|
+
StringRef suggested_area_ref_{};
|
|
554
|
+
void set_suggested_area(const StringRef &ref) { this->suggested_area_ref_ = ref; }
|
|
555
|
+
#endif
|
|
556
|
+
#ifdef USE_BLUETOOTH_PROXY
|
|
557
|
+
StringRef bluetooth_mac_address_ref_{};
|
|
558
|
+
void set_bluetooth_mac_address(const StringRef &ref) { this->bluetooth_mac_address_ref_ = ref; }
|
|
559
|
+
#endif
|
|
560
|
+
#ifdef USE_API_NOISE
|
|
561
|
+
bool api_encryption_supported{false};
|
|
562
|
+
#endif
|
|
563
|
+
#ifdef USE_DEVICES
|
|
564
|
+
std::array<DeviceInfo, ESPHOME_DEVICE_COUNT> devices{};
|
|
565
|
+
#endif
|
|
566
|
+
#ifdef USE_AREAS
|
|
567
|
+
std::array<AreaInfo, ESPHOME_AREA_COUNT> areas{};
|
|
568
|
+
#endif
|
|
569
|
+
#ifdef USE_AREAS
|
|
570
|
+
AreaInfo area{};
|
|
571
|
+
#endif
|
|
572
|
+
#ifdef USE_ZWAVE_PROXY
|
|
573
|
+
uint32_t zwave_proxy_feature_flags{0};
|
|
574
|
+
#endif
|
|
575
|
+
#ifdef USE_ZWAVE_PROXY
|
|
576
|
+
uint32_t zwave_home_id{0};
|
|
577
|
+
#endif
|
|
578
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
579
|
+
void calculate_size(ProtoSize &size) const override;
|
|
580
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
581
|
+
void dump_to(std::string &out) const override;
|
|
582
|
+
#endif
|
|
583
|
+
|
|
584
|
+
protected:
|
|
585
|
+
};
|
|
586
|
+
class ListEntitiesRequest final : public ProtoMessage {
|
|
587
|
+
public:
|
|
588
|
+
static constexpr uint8_t MESSAGE_TYPE = 11;
|
|
589
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
590
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
591
|
+
const char *message_name() const override { return "list_entities_request"; }
|
|
592
|
+
#endif
|
|
593
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
594
|
+
void dump_to(std::string &out) const override;
|
|
595
|
+
#endif
|
|
596
|
+
|
|
597
|
+
protected:
|
|
598
|
+
};
|
|
599
|
+
class ListEntitiesDoneResponse final : public ProtoMessage {
|
|
600
|
+
public:
|
|
601
|
+
static constexpr uint8_t MESSAGE_TYPE = 19;
|
|
602
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
603
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
604
|
+
const char *message_name() const override { return "list_entities_done_response"; }
|
|
605
|
+
#endif
|
|
606
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
607
|
+
void dump_to(std::string &out) const override;
|
|
608
|
+
#endif
|
|
609
|
+
|
|
610
|
+
protected:
|
|
611
|
+
};
|
|
612
|
+
class SubscribeStatesRequest final : public ProtoMessage {
|
|
613
|
+
public:
|
|
614
|
+
static constexpr uint8_t MESSAGE_TYPE = 20;
|
|
615
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
616
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
617
|
+
const char *message_name() const override { return "subscribe_states_request"; }
|
|
618
|
+
#endif
|
|
619
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
620
|
+
void dump_to(std::string &out) const override;
|
|
621
|
+
#endif
|
|
622
|
+
|
|
623
|
+
protected:
|
|
624
|
+
};
|
|
625
|
+
#ifdef USE_BINARY_SENSOR
|
|
626
|
+
class ListEntitiesBinarySensorResponse final : public InfoResponseProtoMessage {
|
|
627
|
+
public:
|
|
628
|
+
static constexpr uint8_t MESSAGE_TYPE = 12;
|
|
629
|
+
static constexpr uint8_t ESTIMATED_SIZE = 51;
|
|
630
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
631
|
+
const char *message_name() const override { return "list_entities_binary_sensor_response"; }
|
|
632
|
+
#endif
|
|
633
|
+
StringRef device_class_ref_{};
|
|
634
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
635
|
+
bool is_status_binary_sensor{false};
|
|
636
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
637
|
+
void calculate_size(ProtoSize &size) const override;
|
|
638
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
639
|
+
void dump_to(std::string &out) const override;
|
|
640
|
+
#endif
|
|
641
|
+
|
|
642
|
+
protected:
|
|
643
|
+
};
|
|
644
|
+
class BinarySensorStateResponse final : public StateResponseProtoMessage {
|
|
645
|
+
public:
|
|
646
|
+
static constexpr uint8_t MESSAGE_TYPE = 21;
|
|
647
|
+
static constexpr uint8_t ESTIMATED_SIZE = 13;
|
|
648
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
649
|
+
const char *message_name() const override { return "binary_sensor_state_response"; }
|
|
650
|
+
#endif
|
|
651
|
+
bool state{false};
|
|
652
|
+
bool missing_state{false};
|
|
653
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
654
|
+
void calculate_size(ProtoSize &size) const override;
|
|
655
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
656
|
+
void dump_to(std::string &out) const override;
|
|
657
|
+
#endif
|
|
658
|
+
|
|
659
|
+
protected:
|
|
660
|
+
};
|
|
661
|
+
#endif
|
|
662
|
+
#ifdef USE_COVER
|
|
663
|
+
class ListEntitiesCoverResponse final : public InfoResponseProtoMessage {
|
|
664
|
+
public:
|
|
665
|
+
static constexpr uint8_t MESSAGE_TYPE = 13;
|
|
666
|
+
static constexpr uint8_t ESTIMATED_SIZE = 57;
|
|
667
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
668
|
+
const char *message_name() const override { return "list_entities_cover_response"; }
|
|
669
|
+
#endif
|
|
670
|
+
bool assumed_state{false};
|
|
671
|
+
bool supports_position{false};
|
|
672
|
+
bool supports_tilt{false};
|
|
673
|
+
StringRef device_class_ref_{};
|
|
674
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
675
|
+
bool supports_stop{false};
|
|
676
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
677
|
+
void calculate_size(ProtoSize &size) const override;
|
|
678
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
679
|
+
void dump_to(std::string &out) const override;
|
|
680
|
+
#endif
|
|
681
|
+
|
|
682
|
+
protected:
|
|
683
|
+
};
|
|
684
|
+
class CoverStateResponse final : public StateResponseProtoMessage {
|
|
685
|
+
public:
|
|
686
|
+
static constexpr uint8_t MESSAGE_TYPE = 22;
|
|
687
|
+
static constexpr uint8_t ESTIMATED_SIZE = 21;
|
|
688
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
689
|
+
const char *message_name() const override { return "cover_state_response"; }
|
|
690
|
+
#endif
|
|
691
|
+
float position{0.0f};
|
|
692
|
+
float tilt{0.0f};
|
|
693
|
+
enums::CoverOperation current_operation{};
|
|
694
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
695
|
+
void calculate_size(ProtoSize &size) const override;
|
|
696
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
697
|
+
void dump_to(std::string &out) const override;
|
|
698
|
+
#endif
|
|
699
|
+
|
|
700
|
+
protected:
|
|
701
|
+
};
|
|
702
|
+
class CoverCommandRequest final : public CommandProtoMessage {
|
|
703
|
+
public:
|
|
704
|
+
static constexpr uint8_t MESSAGE_TYPE = 30;
|
|
705
|
+
static constexpr uint8_t ESTIMATED_SIZE = 25;
|
|
706
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
707
|
+
const char *message_name() const override { return "cover_command_request"; }
|
|
708
|
+
#endif
|
|
709
|
+
bool has_position{false};
|
|
710
|
+
float position{0.0f};
|
|
711
|
+
bool has_tilt{false};
|
|
712
|
+
float tilt{0.0f};
|
|
713
|
+
bool stop{false};
|
|
714
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
715
|
+
void dump_to(std::string &out) const override;
|
|
716
|
+
#endif
|
|
717
|
+
|
|
718
|
+
protected:
|
|
719
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
720
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
721
|
+
};
|
|
722
|
+
#endif
|
|
723
|
+
#ifdef USE_FAN
|
|
724
|
+
class ListEntitiesFanResponse final : public InfoResponseProtoMessage {
|
|
725
|
+
public:
|
|
726
|
+
static constexpr uint8_t MESSAGE_TYPE = 14;
|
|
727
|
+
static constexpr uint8_t ESTIMATED_SIZE = 68;
|
|
728
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
729
|
+
const char *message_name() const override { return "list_entities_fan_response"; }
|
|
730
|
+
#endif
|
|
731
|
+
bool supports_oscillation{false};
|
|
732
|
+
bool supports_speed{false};
|
|
733
|
+
bool supports_direction{false};
|
|
734
|
+
int32_t supported_speed_count{0};
|
|
735
|
+
const std::vector<const char *> *supported_preset_modes{};
|
|
736
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
737
|
+
void calculate_size(ProtoSize &size) const override;
|
|
738
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
739
|
+
void dump_to(std::string &out) const override;
|
|
740
|
+
#endif
|
|
741
|
+
|
|
742
|
+
protected:
|
|
743
|
+
};
|
|
744
|
+
class FanStateResponse final : public StateResponseProtoMessage {
|
|
745
|
+
public:
|
|
746
|
+
static constexpr uint8_t MESSAGE_TYPE = 23;
|
|
747
|
+
static constexpr uint8_t ESTIMATED_SIZE = 28;
|
|
748
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
749
|
+
const char *message_name() const override { return "fan_state_response"; }
|
|
750
|
+
#endif
|
|
751
|
+
bool state{false};
|
|
752
|
+
bool oscillating{false};
|
|
753
|
+
enums::FanDirection direction{};
|
|
754
|
+
int32_t speed_level{0};
|
|
755
|
+
StringRef preset_mode_ref_{};
|
|
756
|
+
void set_preset_mode(const StringRef &ref) { this->preset_mode_ref_ = ref; }
|
|
757
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
758
|
+
void calculate_size(ProtoSize &size) const override;
|
|
759
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
760
|
+
void dump_to(std::string &out) const override;
|
|
761
|
+
#endif
|
|
762
|
+
|
|
763
|
+
protected:
|
|
764
|
+
};
|
|
765
|
+
class FanCommandRequest final : public CommandProtoMessage {
|
|
766
|
+
public:
|
|
767
|
+
static constexpr uint8_t MESSAGE_TYPE = 31;
|
|
768
|
+
static constexpr uint8_t ESTIMATED_SIZE = 38;
|
|
769
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
770
|
+
const char *message_name() const override { return "fan_command_request"; }
|
|
771
|
+
#endif
|
|
772
|
+
bool has_state{false};
|
|
773
|
+
bool state{false};
|
|
774
|
+
bool has_oscillating{false};
|
|
775
|
+
bool oscillating{false};
|
|
776
|
+
bool has_direction{false};
|
|
777
|
+
enums::FanDirection direction{};
|
|
778
|
+
bool has_speed_level{false};
|
|
779
|
+
int32_t speed_level{0};
|
|
780
|
+
bool has_preset_mode{false};
|
|
781
|
+
std::string preset_mode{};
|
|
782
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
783
|
+
void dump_to(std::string &out) const override;
|
|
784
|
+
#endif
|
|
785
|
+
|
|
786
|
+
protected:
|
|
787
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
788
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
789
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
790
|
+
};
|
|
791
|
+
#endif
|
|
792
|
+
#ifdef USE_LIGHT
|
|
793
|
+
class ListEntitiesLightResponse final : public InfoResponseProtoMessage {
|
|
794
|
+
public:
|
|
795
|
+
static constexpr uint8_t MESSAGE_TYPE = 15;
|
|
796
|
+
static constexpr uint8_t ESTIMATED_SIZE = 73;
|
|
797
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
798
|
+
const char *message_name() const override { return "list_entities_light_response"; }
|
|
799
|
+
#endif
|
|
800
|
+
const light::ColorModeMask *supported_color_modes{};
|
|
801
|
+
float min_mireds{0.0f};
|
|
802
|
+
float max_mireds{0.0f};
|
|
803
|
+
const FixedVector<const char *> *effects{};
|
|
804
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
805
|
+
void calculate_size(ProtoSize &size) const override;
|
|
806
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
807
|
+
void dump_to(std::string &out) const override;
|
|
808
|
+
#endif
|
|
809
|
+
|
|
810
|
+
protected:
|
|
811
|
+
};
|
|
812
|
+
class LightStateResponse final : public StateResponseProtoMessage {
|
|
813
|
+
public:
|
|
814
|
+
static constexpr uint8_t MESSAGE_TYPE = 24;
|
|
815
|
+
static constexpr uint8_t ESTIMATED_SIZE = 67;
|
|
816
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
817
|
+
const char *message_name() const override { return "light_state_response"; }
|
|
818
|
+
#endif
|
|
819
|
+
bool state{false};
|
|
820
|
+
float brightness{0.0f};
|
|
821
|
+
enums::ColorMode color_mode{};
|
|
822
|
+
float color_brightness{0.0f};
|
|
823
|
+
float red{0.0f};
|
|
824
|
+
float green{0.0f};
|
|
825
|
+
float blue{0.0f};
|
|
826
|
+
float white{0.0f};
|
|
827
|
+
float color_temperature{0.0f};
|
|
828
|
+
float cold_white{0.0f};
|
|
829
|
+
float warm_white{0.0f};
|
|
830
|
+
StringRef effect_ref_{};
|
|
831
|
+
void set_effect(const StringRef &ref) { this->effect_ref_ = ref; }
|
|
832
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
833
|
+
void calculate_size(ProtoSize &size) const override;
|
|
834
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
835
|
+
void dump_to(std::string &out) const override;
|
|
836
|
+
#endif
|
|
837
|
+
|
|
838
|
+
protected:
|
|
839
|
+
};
|
|
840
|
+
class LightCommandRequest final : public CommandProtoMessage {
|
|
841
|
+
public:
|
|
842
|
+
static constexpr uint8_t MESSAGE_TYPE = 32;
|
|
843
|
+
static constexpr uint8_t ESTIMATED_SIZE = 122;
|
|
844
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
845
|
+
const char *message_name() const override { return "light_command_request"; }
|
|
846
|
+
#endif
|
|
847
|
+
bool has_state{false};
|
|
848
|
+
bool state{false};
|
|
849
|
+
bool has_brightness{false};
|
|
850
|
+
float brightness{0.0f};
|
|
851
|
+
bool has_color_mode{false};
|
|
852
|
+
enums::ColorMode color_mode{};
|
|
853
|
+
bool has_color_brightness{false};
|
|
854
|
+
float color_brightness{0.0f};
|
|
855
|
+
bool has_rgb{false};
|
|
856
|
+
float red{0.0f};
|
|
857
|
+
float green{0.0f};
|
|
858
|
+
float blue{0.0f};
|
|
859
|
+
bool has_white{false};
|
|
860
|
+
float white{0.0f};
|
|
861
|
+
bool has_color_temperature{false};
|
|
862
|
+
float color_temperature{0.0f};
|
|
863
|
+
bool has_cold_white{false};
|
|
864
|
+
float cold_white{0.0f};
|
|
865
|
+
bool has_warm_white{false};
|
|
866
|
+
float warm_white{0.0f};
|
|
867
|
+
bool has_transition_length{false};
|
|
868
|
+
uint32_t transition_length{0};
|
|
869
|
+
bool has_flash_length{false};
|
|
870
|
+
uint32_t flash_length{0};
|
|
871
|
+
bool has_effect{false};
|
|
872
|
+
const uint8_t *effect{nullptr};
|
|
873
|
+
uint16_t effect_len{0};
|
|
874
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
875
|
+
void dump_to(std::string &out) const override;
|
|
876
|
+
#endif
|
|
877
|
+
|
|
878
|
+
protected:
|
|
879
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
880
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
881
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
882
|
+
};
|
|
883
|
+
#endif
|
|
884
|
+
#ifdef USE_SENSOR
|
|
885
|
+
class ListEntitiesSensorResponse final : public InfoResponseProtoMessage {
|
|
886
|
+
public:
|
|
887
|
+
static constexpr uint8_t MESSAGE_TYPE = 16;
|
|
888
|
+
static constexpr uint8_t ESTIMATED_SIZE = 66;
|
|
889
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
890
|
+
const char *message_name() const override { return "list_entities_sensor_response"; }
|
|
891
|
+
#endif
|
|
892
|
+
StringRef unit_of_measurement_ref_{};
|
|
893
|
+
void set_unit_of_measurement(const StringRef &ref) { this->unit_of_measurement_ref_ = ref; }
|
|
894
|
+
int32_t accuracy_decimals{0};
|
|
895
|
+
bool force_update{false};
|
|
896
|
+
StringRef device_class_ref_{};
|
|
897
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
898
|
+
enums::SensorStateClass state_class{};
|
|
899
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
900
|
+
void calculate_size(ProtoSize &size) const override;
|
|
901
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
902
|
+
void dump_to(std::string &out) const override;
|
|
903
|
+
#endif
|
|
904
|
+
|
|
905
|
+
protected:
|
|
906
|
+
};
|
|
907
|
+
class SensorStateResponse final : public StateResponseProtoMessage {
|
|
908
|
+
public:
|
|
909
|
+
static constexpr uint8_t MESSAGE_TYPE = 25;
|
|
910
|
+
static constexpr uint8_t ESTIMATED_SIZE = 16;
|
|
911
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
912
|
+
const char *message_name() const override { return "sensor_state_response"; }
|
|
913
|
+
#endif
|
|
914
|
+
float state{0.0f};
|
|
915
|
+
bool missing_state{false};
|
|
916
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
917
|
+
void calculate_size(ProtoSize &size) const override;
|
|
918
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
919
|
+
void dump_to(std::string &out) const override;
|
|
920
|
+
#endif
|
|
921
|
+
|
|
922
|
+
protected:
|
|
923
|
+
};
|
|
924
|
+
#endif
|
|
925
|
+
#ifdef USE_SWITCH
|
|
926
|
+
class ListEntitiesSwitchResponse final : public InfoResponseProtoMessage {
|
|
927
|
+
public:
|
|
928
|
+
static constexpr uint8_t MESSAGE_TYPE = 17;
|
|
929
|
+
static constexpr uint8_t ESTIMATED_SIZE = 51;
|
|
930
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
931
|
+
const char *message_name() const override { return "list_entities_switch_response"; }
|
|
932
|
+
#endif
|
|
933
|
+
bool assumed_state{false};
|
|
934
|
+
StringRef device_class_ref_{};
|
|
935
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
936
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
937
|
+
void calculate_size(ProtoSize &size) const override;
|
|
938
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
939
|
+
void dump_to(std::string &out) const override;
|
|
940
|
+
#endif
|
|
941
|
+
|
|
942
|
+
protected:
|
|
943
|
+
};
|
|
944
|
+
class SwitchStateResponse final : public StateResponseProtoMessage {
|
|
945
|
+
public:
|
|
946
|
+
static constexpr uint8_t MESSAGE_TYPE = 26;
|
|
947
|
+
static constexpr uint8_t ESTIMATED_SIZE = 11;
|
|
948
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
949
|
+
const char *message_name() const override { return "switch_state_response"; }
|
|
950
|
+
#endif
|
|
951
|
+
bool state{false};
|
|
952
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
953
|
+
void calculate_size(ProtoSize &size) const override;
|
|
954
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
955
|
+
void dump_to(std::string &out) const override;
|
|
956
|
+
#endif
|
|
957
|
+
|
|
958
|
+
protected:
|
|
959
|
+
};
|
|
960
|
+
class SwitchCommandRequest final : public CommandProtoMessage {
|
|
961
|
+
public:
|
|
962
|
+
static constexpr uint8_t MESSAGE_TYPE = 33;
|
|
963
|
+
static constexpr uint8_t ESTIMATED_SIZE = 11;
|
|
964
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
965
|
+
const char *message_name() const override { return "switch_command_request"; }
|
|
966
|
+
#endif
|
|
967
|
+
bool state{false};
|
|
968
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
969
|
+
void dump_to(std::string &out) const override;
|
|
970
|
+
#endif
|
|
971
|
+
|
|
972
|
+
protected:
|
|
973
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
974
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
975
|
+
};
|
|
976
|
+
#endif
|
|
977
|
+
#ifdef USE_TEXT_SENSOR
|
|
978
|
+
class ListEntitiesTextSensorResponse final : public InfoResponseProtoMessage {
|
|
979
|
+
public:
|
|
980
|
+
static constexpr uint8_t MESSAGE_TYPE = 18;
|
|
981
|
+
static constexpr uint8_t ESTIMATED_SIZE = 49;
|
|
982
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
983
|
+
const char *message_name() const override { return "list_entities_text_sensor_response"; }
|
|
984
|
+
#endif
|
|
985
|
+
StringRef device_class_ref_{};
|
|
986
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
987
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
988
|
+
void calculate_size(ProtoSize &size) const override;
|
|
989
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
990
|
+
void dump_to(std::string &out) const override;
|
|
991
|
+
#endif
|
|
992
|
+
|
|
993
|
+
protected:
|
|
994
|
+
};
|
|
995
|
+
class TextSensorStateResponse final : public StateResponseProtoMessage {
|
|
996
|
+
public:
|
|
997
|
+
static constexpr uint8_t MESSAGE_TYPE = 27;
|
|
998
|
+
static constexpr uint8_t ESTIMATED_SIZE = 20;
|
|
999
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1000
|
+
const char *message_name() const override { return "text_sensor_state_response"; }
|
|
1001
|
+
#endif
|
|
1002
|
+
StringRef state_ref_{};
|
|
1003
|
+
void set_state(const StringRef &ref) { this->state_ref_ = ref; }
|
|
1004
|
+
bool missing_state{false};
|
|
1005
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1006
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1007
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1008
|
+
void dump_to(std::string &out) const override;
|
|
1009
|
+
#endif
|
|
1010
|
+
|
|
1011
|
+
protected:
|
|
1012
|
+
};
|
|
1013
|
+
#endif
|
|
1014
|
+
class SubscribeLogsRequest final : public ProtoDecodableMessage {
|
|
1015
|
+
public:
|
|
1016
|
+
static constexpr uint8_t MESSAGE_TYPE = 28;
|
|
1017
|
+
static constexpr uint8_t ESTIMATED_SIZE = 4;
|
|
1018
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1019
|
+
const char *message_name() const override { return "subscribe_logs_request"; }
|
|
1020
|
+
#endif
|
|
1021
|
+
enums::LogLevel level{};
|
|
1022
|
+
bool dump_config{false};
|
|
1023
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1024
|
+
void dump_to(std::string &out) const override;
|
|
1025
|
+
#endif
|
|
1026
|
+
|
|
1027
|
+
protected:
|
|
1028
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1029
|
+
};
|
|
1030
|
+
class SubscribeLogsResponse final : public ProtoMessage {
|
|
1031
|
+
public:
|
|
1032
|
+
static constexpr uint8_t MESSAGE_TYPE = 29;
|
|
1033
|
+
static constexpr uint8_t ESTIMATED_SIZE = 11;
|
|
1034
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1035
|
+
const char *message_name() const override { return "subscribe_logs_response"; }
|
|
1036
|
+
#endif
|
|
1037
|
+
enums::LogLevel level{};
|
|
1038
|
+
const uint8_t *message_ptr_{nullptr};
|
|
1039
|
+
size_t message_len_{0};
|
|
1040
|
+
void set_message(const uint8_t *data, size_t len) {
|
|
1041
|
+
this->message_ptr_ = data;
|
|
1042
|
+
this->message_len_ = len;
|
|
1043
|
+
}
|
|
1044
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1045
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1046
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1047
|
+
void dump_to(std::string &out) const override;
|
|
1048
|
+
#endif
|
|
1049
|
+
|
|
1050
|
+
protected:
|
|
1051
|
+
};
|
|
1052
|
+
#ifdef USE_API_NOISE
|
|
1053
|
+
class NoiseEncryptionSetKeyRequest final : public ProtoDecodableMessage {
|
|
1054
|
+
public:
|
|
1055
|
+
static constexpr uint8_t MESSAGE_TYPE = 124;
|
|
1056
|
+
static constexpr uint8_t ESTIMATED_SIZE = 9;
|
|
1057
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1058
|
+
const char *message_name() const override { return "noise_encryption_set_key_request"; }
|
|
1059
|
+
#endif
|
|
1060
|
+
std::string key{};
|
|
1061
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1062
|
+
void dump_to(std::string &out) const override;
|
|
1063
|
+
#endif
|
|
1064
|
+
|
|
1065
|
+
protected:
|
|
1066
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1067
|
+
};
|
|
1068
|
+
class NoiseEncryptionSetKeyResponse final : public ProtoMessage {
|
|
1069
|
+
public:
|
|
1070
|
+
static constexpr uint8_t MESSAGE_TYPE = 125;
|
|
1071
|
+
static constexpr uint8_t ESTIMATED_SIZE = 2;
|
|
1072
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1073
|
+
const char *message_name() const override { return "noise_encryption_set_key_response"; }
|
|
1074
|
+
#endif
|
|
1075
|
+
bool success{false};
|
|
1076
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1077
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1078
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1079
|
+
void dump_to(std::string &out) const override;
|
|
1080
|
+
#endif
|
|
1081
|
+
|
|
1082
|
+
protected:
|
|
1083
|
+
};
|
|
1084
|
+
#endif
|
|
1085
|
+
#ifdef USE_API_HOMEASSISTANT_SERVICES
|
|
1086
|
+
class SubscribeHomeassistantServicesRequest final : public ProtoMessage {
|
|
1087
|
+
public:
|
|
1088
|
+
static constexpr uint8_t MESSAGE_TYPE = 34;
|
|
1089
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
1090
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1091
|
+
const char *message_name() const override { return "subscribe_homeassistant_services_request"; }
|
|
1092
|
+
#endif
|
|
1093
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1094
|
+
void dump_to(std::string &out) const override;
|
|
1095
|
+
#endif
|
|
1096
|
+
|
|
1097
|
+
protected:
|
|
1098
|
+
};
|
|
1099
|
+
class HomeassistantServiceMap final : public ProtoMessage {
|
|
1100
|
+
public:
|
|
1101
|
+
StringRef key_ref_{};
|
|
1102
|
+
void set_key(const StringRef &ref) { this->key_ref_ = ref; }
|
|
1103
|
+
std::string value{};
|
|
1104
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1105
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1106
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1107
|
+
void dump_to(std::string &out) const override;
|
|
1108
|
+
#endif
|
|
1109
|
+
|
|
1110
|
+
protected:
|
|
1111
|
+
};
|
|
1112
|
+
class HomeassistantActionRequest final : public ProtoMessage {
|
|
1113
|
+
public:
|
|
1114
|
+
static constexpr uint8_t MESSAGE_TYPE = 35;
|
|
1115
|
+
static constexpr uint8_t ESTIMATED_SIZE = 128;
|
|
1116
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1117
|
+
const char *message_name() const override { return "homeassistant_action_request"; }
|
|
1118
|
+
#endif
|
|
1119
|
+
StringRef service_ref_{};
|
|
1120
|
+
void set_service(const StringRef &ref) { this->service_ref_ = ref; }
|
|
1121
|
+
FixedVector<HomeassistantServiceMap> data{};
|
|
1122
|
+
FixedVector<HomeassistantServiceMap> data_template{};
|
|
1123
|
+
FixedVector<HomeassistantServiceMap> variables{};
|
|
1124
|
+
bool is_event{false};
|
|
1125
|
+
#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
|
|
1126
|
+
uint32_t call_id{0};
|
|
1127
|
+
#endif
|
|
1128
|
+
#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
|
|
1129
|
+
bool wants_response{false};
|
|
1130
|
+
#endif
|
|
1131
|
+
#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
|
|
1132
|
+
std::string response_template{};
|
|
1133
|
+
#endif
|
|
1134
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1135
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1136
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1137
|
+
void dump_to(std::string &out) const override;
|
|
1138
|
+
#endif
|
|
1139
|
+
|
|
1140
|
+
protected:
|
|
1141
|
+
};
|
|
1142
|
+
#endif
|
|
1143
|
+
#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES
|
|
1144
|
+
class HomeassistantActionResponse final : public ProtoDecodableMessage {
|
|
1145
|
+
public:
|
|
1146
|
+
static constexpr uint8_t MESSAGE_TYPE = 130;
|
|
1147
|
+
static constexpr uint8_t ESTIMATED_SIZE = 34;
|
|
1148
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1149
|
+
const char *message_name() const override { return "homeassistant_action_response"; }
|
|
1150
|
+
#endif
|
|
1151
|
+
uint32_t call_id{0};
|
|
1152
|
+
bool success{false};
|
|
1153
|
+
std::string error_message{};
|
|
1154
|
+
#ifdef USE_API_HOMEASSISTANT_ACTION_RESPONSES_JSON
|
|
1155
|
+
const uint8_t *response_data{nullptr};
|
|
1156
|
+
uint16_t response_data_len{0};
|
|
1157
|
+
#endif
|
|
1158
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1159
|
+
void dump_to(std::string &out) const override;
|
|
1160
|
+
#endif
|
|
1161
|
+
|
|
1162
|
+
protected:
|
|
1163
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1164
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1165
|
+
};
|
|
1166
|
+
#endif
|
|
1167
|
+
#ifdef USE_API_HOMEASSISTANT_STATES
|
|
1168
|
+
class SubscribeHomeAssistantStatesRequest final : public ProtoMessage {
|
|
1169
|
+
public:
|
|
1170
|
+
static constexpr uint8_t MESSAGE_TYPE = 38;
|
|
1171
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
1172
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1173
|
+
const char *message_name() const override { return "subscribe_home_assistant_states_request"; }
|
|
1174
|
+
#endif
|
|
1175
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1176
|
+
void dump_to(std::string &out) const override;
|
|
1177
|
+
#endif
|
|
1178
|
+
|
|
1179
|
+
protected:
|
|
1180
|
+
};
|
|
1181
|
+
class SubscribeHomeAssistantStateResponse final : public ProtoMessage {
|
|
1182
|
+
public:
|
|
1183
|
+
static constexpr uint8_t MESSAGE_TYPE = 39;
|
|
1184
|
+
static constexpr uint8_t ESTIMATED_SIZE = 20;
|
|
1185
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1186
|
+
const char *message_name() const override { return "subscribe_home_assistant_state_response"; }
|
|
1187
|
+
#endif
|
|
1188
|
+
StringRef entity_id_ref_{};
|
|
1189
|
+
void set_entity_id(const StringRef &ref) { this->entity_id_ref_ = ref; }
|
|
1190
|
+
StringRef attribute_ref_{};
|
|
1191
|
+
void set_attribute(const StringRef &ref) { this->attribute_ref_ = ref; }
|
|
1192
|
+
bool once{false};
|
|
1193
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1194
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1195
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1196
|
+
void dump_to(std::string &out) const override;
|
|
1197
|
+
#endif
|
|
1198
|
+
|
|
1199
|
+
protected:
|
|
1200
|
+
};
|
|
1201
|
+
class HomeAssistantStateResponse final : public ProtoDecodableMessage {
|
|
1202
|
+
public:
|
|
1203
|
+
static constexpr uint8_t MESSAGE_TYPE = 40;
|
|
1204
|
+
static constexpr uint8_t ESTIMATED_SIZE = 27;
|
|
1205
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1206
|
+
const char *message_name() const override { return "home_assistant_state_response"; }
|
|
1207
|
+
#endif
|
|
1208
|
+
std::string entity_id{};
|
|
1209
|
+
std::string state{};
|
|
1210
|
+
std::string attribute{};
|
|
1211
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1212
|
+
void dump_to(std::string &out) const override;
|
|
1213
|
+
#endif
|
|
1214
|
+
|
|
1215
|
+
protected:
|
|
1216
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1217
|
+
};
|
|
1218
|
+
#endif
|
|
1219
|
+
class GetTimeRequest final : public ProtoMessage {
|
|
1220
|
+
public:
|
|
1221
|
+
static constexpr uint8_t MESSAGE_TYPE = 36;
|
|
1222
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
1223
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1224
|
+
const char *message_name() const override { return "get_time_request"; }
|
|
1225
|
+
#endif
|
|
1226
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1227
|
+
void dump_to(std::string &out) const override;
|
|
1228
|
+
#endif
|
|
1229
|
+
|
|
1230
|
+
protected:
|
|
1231
|
+
};
|
|
1232
|
+
class GetTimeResponse final : public ProtoDecodableMessage {
|
|
1233
|
+
public:
|
|
1234
|
+
static constexpr uint8_t MESSAGE_TYPE = 37;
|
|
1235
|
+
static constexpr uint8_t ESTIMATED_SIZE = 24;
|
|
1236
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1237
|
+
const char *message_name() const override { return "get_time_response"; }
|
|
1238
|
+
#endif
|
|
1239
|
+
uint32_t epoch_seconds{0};
|
|
1240
|
+
const uint8_t *timezone{nullptr};
|
|
1241
|
+
uint16_t timezone_len{0};
|
|
1242
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1243
|
+
void dump_to(std::string &out) const override;
|
|
1244
|
+
#endif
|
|
1245
|
+
|
|
1246
|
+
protected:
|
|
1247
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1248
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1249
|
+
};
|
|
1250
|
+
#ifdef USE_API_USER_DEFINED_ACTIONS
|
|
1251
|
+
class ListEntitiesServicesArgument final : public ProtoMessage {
|
|
1252
|
+
public:
|
|
1253
|
+
StringRef name_ref_{};
|
|
1254
|
+
void set_name(const StringRef &ref) { this->name_ref_ = ref; }
|
|
1255
|
+
enums::ServiceArgType type{};
|
|
1256
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1257
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1258
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1259
|
+
void dump_to(std::string &out) const override;
|
|
1260
|
+
#endif
|
|
1261
|
+
|
|
1262
|
+
protected:
|
|
1263
|
+
};
|
|
1264
|
+
class ListEntitiesServicesResponse final : public ProtoMessage {
|
|
1265
|
+
public:
|
|
1266
|
+
static constexpr uint8_t MESSAGE_TYPE = 41;
|
|
1267
|
+
static constexpr uint8_t ESTIMATED_SIZE = 50;
|
|
1268
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1269
|
+
const char *message_name() const override { return "list_entities_services_response"; }
|
|
1270
|
+
#endif
|
|
1271
|
+
StringRef name_ref_{};
|
|
1272
|
+
void set_name(const StringRef &ref) { this->name_ref_ = ref; }
|
|
1273
|
+
uint32_t key{0};
|
|
1274
|
+
FixedVector<ListEntitiesServicesArgument> args{};
|
|
1275
|
+
enums::SupportsResponseType supports_response{};
|
|
1276
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1277
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1278
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1279
|
+
void dump_to(std::string &out) const override;
|
|
1280
|
+
#endif
|
|
1281
|
+
|
|
1282
|
+
protected:
|
|
1283
|
+
};
|
|
1284
|
+
class ExecuteServiceArgument final : public ProtoDecodableMessage {
|
|
1285
|
+
public:
|
|
1286
|
+
bool bool_{false};
|
|
1287
|
+
int32_t legacy_int{0};
|
|
1288
|
+
float float_{0.0f};
|
|
1289
|
+
std::string string_{};
|
|
1290
|
+
int32_t int_{0};
|
|
1291
|
+
FixedVector<bool> bool_array{};
|
|
1292
|
+
FixedVector<int32_t> int_array{};
|
|
1293
|
+
FixedVector<float> float_array{};
|
|
1294
|
+
FixedVector<std::string> string_array{};
|
|
1295
|
+
void decode(const uint8_t *buffer, size_t length) override;
|
|
1296
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1297
|
+
void dump_to(std::string &out) const override;
|
|
1298
|
+
#endif
|
|
1299
|
+
|
|
1300
|
+
protected:
|
|
1301
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1302
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1303
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1304
|
+
};
|
|
1305
|
+
class ExecuteServiceRequest final : public ProtoDecodableMessage {
|
|
1306
|
+
public:
|
|
1307
|
+
static constexpr uint8_t MESSAGE_TYPE = 42;
|
|
1308
|
+
static constexpr uint8_t ESTIMATED_SIZE = 45;
|
|
1309
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1310
|
+
const char *message_name() const override { return "execute_service_request"; }
|
|
1311
|
+
#endif
|
|
1312
|
+
uint32_t key{0};
|
|
1313
|
+
FixedVector<ExecuteServiceArgument> args{};
|
|
1314
|
+
#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
|
|
1315
|
+
uint32_t call_id{0};
|
|
1316
|
+
#endif
|
|
1317
|
+
#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
|
|
1318
|
+
bool return_response{false};
|
|
1319
|
+
#endif
|
|
1320
|
+
void decode(const uint8_t *buffer, size_t length) override;
|
|
1321
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1322
|
+
void dump_to(std::string &out) const override;
|
|
1323
|
+
#endif
|
|
1324
|
+
|
|
1325
|
+
protected:
|
|
1326
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1327
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1328
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1329
|
+
};
|
|
1330
|
+
#endif
|
|
1331
|
+
#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES
|
|
1332
|
+
class ExecuteServiceResponse final : public ProtoMessage {
|
|
1333
|
+
public:
|
|
1334
|
+
static constexpr uint8_t MESSAGE_TYPE = 131;
|
|
1335
|
+
static constexpr uint8_t ESTIMATED_SIZE = 34;
|
|
1336
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1337
|
+
const char *message_name() const override { return "execute_service_response"; }
|
|
1338
|
+
#endif
|
|
1339
|
+
uint32_t call_id{0};
|
|
1340
|
+
bool success{false};
|
|
1341
|
+
StringRef error_message_ref_{};
|
|
1342
|
+
void set_error_message(const StringRef &ref) { this->error_message_ref_ = ref; }
|
|
1343
|
+
#ifdef USE_API_USER_DEFINED_ACTION_RESPONSES_JSON
|
|
1344
|
+
const uint8_t *response_data{nullptr};
|
|
1345
|
+
uint16_t response_data_len{0};
|
|
1346
|
+
#endif
|
|
1347
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1348
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1349
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1350
|
+
void dump_to(std::string &out) const override;
|
|
1351
|
+
#endif
|
|
1352
|
+
|
|
1353
|
+
protected:
|
|
1354
|
+
};
|
|
1355
|
+
#endif
|
|
1356
|
+
#ifdef USE_CAMERA
|
|
1357
|
+
class ListEntitiesCameraResponse final : public InfoResponseProtoMessage {
|
|
1358
|
+
public:
|
|
1359
|
+
static constexpr uint8_t MESSAGE_TYPE = 43;
|
|
1360
|
+
static constexpr uint8_t ESTIMATED_SIZE = 40;
|
|
1361
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1362
|
+
const char *message_name() const override { return "list_entities_camera_response"; }
|
|
1363
|
+
#endif
|
|
1364
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1365
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1366
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1367
|
+
void dump_to(std::string &out) const override;
|
|
1368
|
+
#endif
|
|
1369
|
+
|
|
1370
|
+
protected:
|
|
1371
|
+
};
|
|
1372
|
+
class CameraImageResponse final : public StateResponseProtoMessage {
|
|
1373
|
+
public:
|
|
1374
|
+
static constexpr uint8_t MESSAGE_TYPE = 44;
|
|
1375
|
+
static constexpr uint8_t ESTIMATED_SIZE = 20;
|
|
1376
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1377
|
+
const char *message_name() const override { return "camera_image_response"; }
|
|
1378
|
+
#endif
|
|
1379
|
+
const uint8_t *data_ptr_{nullptr};
|
|
1380
|
+
size_t data_len_{0};
|
|
1381
|
+
void set_data(const uint8_t *data, size_t len) {
|
|
1382
|
+
this->data_ptr_ = data;
|
|
1383
|
+
this->data_len_ = len;
|
|
1384
|
+
}
|
|
1385
|
+
bool done{false};
|
|
1386
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1387
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1388
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1389
|
+
void dump_to(std::string &out) const override;
|
|
1390
|
+
#endif
|
|
1391
|
+
|
|
1392
|
+
protected:
|
|
1393
|
+
};
|
|
1394
|
+
class CameraImageRequest final : public ProtoDecodableMessage {
|
|
1395
|
+
public:
|
|
1396
|
+
static constexpr uint8_t MESSAGE_TYPE = 45;
|
|
1397
|
+
static constexpr uint8_t ESTIMATED_SIZE = 4;
|
|
1398
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1399
|
+
const char *message_name() const override { return "camera_image_request"; }
|
|
1400
|
+
#endif
|
|
1401
|
+
bool single{false};
|
|
1402
|
+
bool stream{false};
|
|
1403
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1404
|
+
void dump_to(std::string &out) const override;
|
|
1405
|
+
#endif
|
|
1406
|
+
|
|
1407
|
+
protected:
|
|
1408
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1409
|
+
};
|
|
1410
|
+
#endif
|
|
1411
|
+
#ifdef USE_CLIMATE
|
|
1412
|
+
class ListEntitiesClimateResponse final : public InfoResponseProtoMessage {
|
|
1413
|
+
public:
|
|
1414
|
+
static constexpr uint8_t MESSAGE_TYPE = 46;
|
|
1415
|
+
static constexpr uint8_t ESTIMATED_SIZE = 150;
|
|
1416
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1417
|
+
const char *message_name() const override { return "list_entities_climate_response"; }
|
|
1418
|
+
#endif
|
|
1419
|
+
bool supports_current_temperature{false};
|
|
1420
|
+
bool supports_two_point_target_temperature{false};
|
|
1421
|
+
const climate::ClimateModeMask *supported_modes{};
|
|
1422
|
+
float visual_min_temperature{0.0f};
|
|
1423
|
+
float visual_max_temperature{0.0f};
|
|
1424
|
+
float visual_target_temperature_step{0.0f};
|
|
1425
|
+
bool supports_action{false};
|
|
1426
|
+
const climate::ClimateFanModeMask *supported_fan_modes{};
|
|
1427
|
+
const climate::ClimateSwingModeMask *supported_swing_modes{};
|
|
1428
|
+
const std::vector<const char *> *supported_custom_fan_modes{};
|
|
1429
|
+
const climate::ClimatePresetMask *supported_presets{};
|
|
1430
|
+
const std::vector<const char *> *supported_custom_presets{};
|
|
1431
|
+
float visual_current_temperature_step{0.0f};
|
|
1432
|
+
bool supports_current_humidity{false};
|
|
1433
|
+
bool supports_target_humidity{false};
|
|
1434
|
+
float visual_min_humidity{0.0f};
|
|
1435
|
+
float visual_max_humidity{0.0f};
|
|
1436
|
+
uint32_t feature_flags{0};
|
|
1437
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1438
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1439
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1440
|
+
void dump_to(std::string &out) const override;
|
|
1441
|
+
#endif
|
|
1442
|
+
|
|
1443
|
+
protected:
|
|
1444
|
+
};
|
|
1445
|
+
class ClimateStateResponse final : public StateResponseProtoMessage {
|
|
1446
|
+
public:
|
|
1447
|
+
static constexpr uint8_t MESSAGE_TYPE = 47;
|
|
1448
|
+
static constexpr uint8_t ESTIMATED_SIZE = 68;
|
|
1449
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1450
|
+
const char *message_name() const override { return "climate_state_response"; }
|
|
1451
|
+
#endif
|
|
1452
|
+
enums::ClimateMode mode{};
|
|
1453
|
+
float current_temperature{0.0f};
|
|
1454
|
+
float target_temperature{0.0f};
|
|
1455
|
+
float target_temperature_low{0.0f};
|
|
1456
|
+
float target_temperature_high{0.0f};
|
|
1457
|
+
enums::ClimateAction action{};
|
|
1458
|
+
enums::ClimateFanMode fan_mode{};
|
|
1459
|
+
enums::ClimateSwingMode swing_mode{};
|
|
1460
|
+
StringRef custom_fan_mode_ref_{};
|
|
1461
|
+
void set_custom_fan_mode(const StringRef &ref) { this->custom_fan_mode_ref_ = ref; }
|
|
1462
|
+
enums::ClimatePreset preset{};
|
|
1463
|
+
StringRef custom_preset_ref_{};
|
|
1464
|
+
void set_custom_preset(const StringRef &ref) { this->custom_preset_ref_ = ref; }
|
|
1465
|
+
float current_humidity{0.0f};
|
|
1466
|
+
float target_humidity{0.0f};
|
|
1467
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1468
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1469
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1470
|
+
void dump_to(std::string &out) const override;
|
|
1471
|
+
#endif
|
|
1472
|
+
|
|
1473
|
+
protected:
|
|
1474
|
+
};
|
|
1475
|
+
class ClimateCommandRequest final : public CommandProtoMessage {
|
|
1476
|
+
public:
|
|
1477
|
+
static constexpr uint8_t MESSAGE_TYPE = 48;
|
|
1478
|
+
static constexpr uint8_t ESTIMATED_SIZE = 84;
|
|
1479
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1480
|
+
const char *message_name() const override { return "climate_command_request"; }
|
|
1481
|
+
#endif
|
|
1482
|
+
bool has_mode{false};
|
|
1483
|
+
enums::ClimateMode mode{};
|
|
1484
|
+
bool has_target_temperature{false};
|
|
1485
|
+
float target_temperature{0.0f};
|
|
1486
|
+
bool has_target_temperature_low{false};
|
|
1487
|
+
float target_temperature_low{0.0f};
|
|
1488
|
+
bool has_target_temperature_high{false};
|
|
1489
|
+
float target_temperature_high{0.0f};
|
|
1490
|
+
bool has_fan_mode{false};
|
|
1491
|
+
enums::ClimateFanMode fan_mode{};
|
|
1492
|
+
bool has_swing_mode{false};
|
|
1493
|
+
enums::ClimateSwingMode swing_mode{};
|
|
1494
|
+
bool has_custom_fan_mode{false};
|
|
1495
|
+
std::string custom_fan_mode{};
|
|
1496
|
+
bool has_preset{false};
|
|
1497
|
+
enums::ClimatePreset preset{};
|
|
1498
|
+
bool has_custom_preset{false};
|
|
1499
|
+
std::string custom_preset{};
|
|
1500
|
+
bool has_target_humidity{false};
|
|
1501
|
+
float target_humidity{0.0f};
|
|
1502
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1503
|
+
void dump_to(std::string &out) const override;
|
|
1504
|
+
#endif
|
|
1505
|
+
|
|
1506
|
+
protected:
|
|
1507
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1508
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1509
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1510
|
+
};
|
|
1511
|
+
#endif
|
|
1512
|
+
#ifdef USE_NUMBER
|
|
1513
|
+
class ListEntitiesNumberResponse final : public InfoResponseProtoMessage {
|
|
1514
|
+
public:
|
|
1515
|
+
static constexpr uint8_t MESSAGE_TYPE = 49;
|
|
1516
|
+
static constexpr uint8_t ESTIMATED_SIZE = 75;
|
|
1517
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1518
|
+
const char *message_name() const override { return "list_entities_number_response"; }
|
|
1519
|
+
#endif
|
|
1520
|
+
float min_value{0.0f};
|
|
1521
|
+
float max_value{0.0f};
|
|
1522
|
+
float step{0.0f};
|
|
1523
|
+
StringRef unit_of_measurement_ref_{};
|
|
1524
|
+
void set_unit_of_measurement(const StringRef &ref) { this->unit_of_measurement_ref_ = ref; }
|
|
1525
|
+
enums::NumberMode mode{};
|
|
1526
|
+
StringRef device_class_ref_{};
|
|
1527
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
1528
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1529
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1530
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1531
|
+
void dump_to(std::string &out) const override;
|
|
1532
|
+
#endif
|
|
1533
|
+
|
|
1534
|
+
protected:
|
|
1535
|
+
};
|
|
1536
|
+
class NumberStateResponse final : public StateResponseProtoMessage {
|
|
1537
|
+
public:
|
|
1538
|
+
static constexpr uint8_t MESSAGE_TYPE = 50;
|
|
1539
|
+
static constexpr uint8_t ESTIMATED_SIZE = 16;
|
|
1540
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1541
|
+
const char *message_name() const override { return "number_state_response"; }
|
|
1542
|
+
#endif
|
|
1543
|
+
float state{0.0f};
|
|
1544
|
+
bool missing_state{false};
|
|
1545
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1546
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1547
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1548
|
+
void dump_to(std::string &out) const override;
|
|
1549
|
+
#endif
|
|
1550
|
+
|
|
1551
|
+
protected:
|
|
1552
|
+
};
|
|
1553
|
+
class NumberCommandRequest final : public CommandProtoMessage {
|
|
1554
|
+
public:
|
|
1555
|
+
static constexpr uint8_t MESSAGE_TYPE = 51;
|
|
1556
|
+
static constexpr uint8_t ESTIMATED_SIZE = 14;
|
|
1557
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1558
|
+
const char *message_name() const override { return "number_command_request"; }
|
|
1559
|
+
#endif
|
|
1560
|
+
float state{0.0f};
|
|
1561
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1562
|
+
void dump_to(std::string &out) const override;
|
|
1563
|
+
#endif
|
|
1564
|
+
|
|
1565
|
+
protected:
|
|
1566
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1567
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1568
|
+
};
|
|
1569
|
+
#endif
|
|
1570
|
+
#ifdef USE_SELECT
|
|
1571
|
+
class ListEntitiesSelectResponse final : public InfoResponseProtoMessage {
|
|
1572
|
+
public:
|
|
1573
|
+
static constexpr uint8_t MESSAGE_TYPE = 52;
|
|
1574
|
+
static constexpr uint8_t ESTIMATED_SIZE = 58;
|
|
1575
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1576
|
+
const char *message_name() const override { return "list_entities_select_response"; }
|
|
1577
|
+
#endif
|
|
1578
|
+
const FixedVector<const char *> *options{};
|
|
1579
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1580
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1581
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1582
|
+
void dump_to(std::string &out) const override;
|
|
1583
|
+
#endif
|
|
1584
|
+
|
|
1585
|
+
protected:
|
|
1586
|
+
};
|
|
1587
|
+
class SelectStateResponse final : public StateResponseProtoMessage {
|
|
1588
|
+
public:
|
|
1589
|
+
static constexpr uint8_t MESSAGE_TYPE = 53;
|
|
1590
|
+
static constexpr uint8_t ESTIMATED_SIZE = 20;
|
|
1591
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1592
|
+
const char *message_name() const override { return "select_state_response"; }
|
|
1593
|
+
#endif
|
|
1594
|
+
StringRef state_ref_{};
|
|
1595
|
+
void set_state(const StringRef &ref) { this->state_ref_ = ref; }
|
|
1596
|
+
bool missing_state{false};
|
|
1597
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1598
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1599
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1600
|
+
void dump_to(std::string &out) const override;
|
|
1601
|
+
#endif
|
|
1602
|
+
|
|
1603
|
+
protected:
|
|
1604
|
+
};
|
|
1605
|
+
class SelectCommandRequest final : public CommandProtoMessage {
|
|
1606
|
+
public:
|
|
1607
|
+
static constexpr uint8_t MESSAGE_TYPE = 54;
|
|
1608
|
+
static constexpr uint8_t ESTIMATED_SIZE = 28;
|
|
1609
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1610
|
+
const char *message_name() const override { return "select_command_request"; }
|
|
1611
|
+
#endif
|
|
1612
|
+
const uint8_t *state{nullptr};
|
|
1613
|
+
uint16_t state_len{0};
|
|
1614
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1615
|
+
void dump_to(std::string &out) const override;
|
|
1616
|
+
#endif
|
|
1617
|
+
|
|
1618
|
+
protected:
|
|
1619
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1620
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1621
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1622
|
+
};
|
|
1623
|
+
#endif
|
|
1624
|
+
#ifdef USE_SIREN
|
|
1625
|
+
class ListEntitiesSirenResponse final : public InfoResponseProtoMessage {
|
|
1626
|
+
public:
|
|
1627
|
+
static constexpr uint8_t MESSAGE_TYPE = 55;
|
|
1628
|
+
static constexpr uint8_t ESTIMATED_SIZE = 62;
|
|
1629
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1630
|
+
const char *message_name() const override { return "list_entities_siren_response"; }
|
|
1631
|
+
#endif
|
|
1632
|
+
std::vector<std::string> tones{};
|
|
1633
|
+
bool supports_duration{false};
|
|
1634
|
+
bool supports_volume{false};
|
|
1635
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1636
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1637
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1638
|
+
void dump_to(std::string &out) const override;
|
|
1639
|
+
#endif
|
|
1640
|
+
|
|
1641
|
+
protected:
|
|
1642
|
+
};
|
|
1643
|
+
class SirenStateResponse final : public StateResponseProtoMessage {
|
|
1644
|
+
public:
|
|
1645
|
+
static constexpr uint8_t MESSAGE_TYPE = 56;
|
|
1646
|
+
static constexpr uint8_t ESTIMATED_SIZE = 11;
|
|
1647
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1648
|
+
const char *message_name() const override { return "siren_state_response"; }
|
|
1649
|
+
#endif
|
|
1650
|
+
bool state{false};
|
|
1651
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1652
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1653
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1654
|
+
void dump_to(std::string &out) const override;
|
|
1655
|
+
#endif
|
|
1656
|
+
|
|
1657
|
+
protected:
|
|
1658
|
+
};
|
|
1659
|
+
class SirenCommandRequest final : public CommandProtoMessage {
|
|
1660
|
+
public:
|
|
1661
|
+
static constexpr uint8_t MESSAGE_TYPE = 57;
|
|
1662
|
+
static constexpr uint8_t ESTIMATED_SIZE = 37;
|
|
1663
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1664
|
+
const char *message_name() const override { return "siren_command_request"; }
|
|
1665
|
+
#endif
|
|
1666
|
+
bool has_state{false};
|
|
1667
|
+
bool state{false};
|
|
1668
|
+
bool has_tone{false};
|
|
1669
|
+
std::string tone{};
|
|
1670
|
+
bool has_duration{false};
|
|
1671
|
+
uint32_t duration{0};
|
|
1672
|
+
bool has_volume{false};
|
|
1673
|
+
float volume{0.0f};
|
|
1674
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1675
|
+
void dump_to(std::string &out) const override;
|
|
1676
|
+
#endif
|
|
1677
|
+
|
|
1678
|
+
protected:
|
|
1679
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1680
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1681
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1682
|
+
};
|
|
1683
|
+
#endif
|
|
1684
|
+
#ifdef USE_LOCK
|
|
1685
|
+
class ListEntitiesLockResponse final : public InfoResponseProtoMessage {
|
|
1686
|
+
public:
|
|
1687
|
+
static constexpr uint8_t MESSAGE_TYPE = 58;
|
|
1688
|
+
static constexpr uint8_t ESTIMATED_SIZE = 55;
|
|
1689
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1690
|
+
const char *message_name() const override { return "list_entities_lock_response"; }
|
|
1691
|
+
#endif
|
|
1692
|
+
bool assumed_state{false};
|
|
1693
|
+
bool supports_open{false};
|
|
1694
|
+
bool requires_code{false};
|
|
1695
|
+
StringRef code_format_ref_{};
|
|
1696
|
+
void set_code_format(const StringRef &ref) { this->code_format_ref_ = ref; }
|
|
1697
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1698
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1699
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1700
|
+
void dump_to(std::string &out) const override;
|
|
1701
|
+
#endif
|
|
1702
|
+
|
|
1703
|
+
protected:
|
|
1704
|
+
};
|
|
1705
|
+
class LockStateResponse final : public StateResponseProtoMessage {
|
|
1706
|
+
public:
|
|
1707
|
+
static constexpr uint8_t MESSAGE_TYPE = 59;
|
|
1708
|
+
static constexpr uint8_t ESTIMATED_SIZE = 11;
|
|
1709
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1710
|
+
const char *message_name() const override { return "lock_state_response"; }
|
|
1711
|
+
#endif
|
|
1712
|
+
enums::LockState state{};
|
|
1713
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1714
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1715
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1716
|
+
void dump_to(std::string &out) const override;
|
|
1717
|
+
#endif
|
|
1718
|
+
|
|
1719
|
+
protected:
|
|
1720
|
+
};
|
|
1721
|
+
class LockCommandRequest final : public CommandProtoMessage {
|
|
1722
|
+
public:
|
|
1723
|
+
static constexpr uint8_t MESSAGE_TYPE = 60;
|
|
1724
|
+
static constexpr uint8_t ESTIMATED_SIZE = 22;
|
|
1725
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1726
|
+
const char *message_name() const override { return "lock_command_request"; }
|
|
1727
|
+
#endif
|
|
1728
|
+
enums::LockCommand command{};
|
|
1729
|
+
bool has_code{false};
|
|
1730
|
+
std::string code{};
|
|
1731
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1732
|
+
void dump_to(std::string &out) const override;
|
|
1733
|
+
#endif
|
|
1734
|
+
|
|
1735
|
+
protected:
|
|
1736
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1737
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1738
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1739
|
+
};
|
|
1740
|
+
#endif
|
|
1741
|
+
#ifdef USE_BUTTON
|
|
1742
|
+
class ListEntitiesButtonResponse final : public InfoResponseProtoMessage {
|
|
1743
|
+
public:
|
|
1744
|
+
static constexpr uint8_t MESSAGE_TYPE = 61;
|
|
1745
|
+
static constexpr uint8_t ESTIMATED_SIZE = 49;
|
|
1746
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1747
|
+
const char *message_name() const override { return "list_entities_button_response"; }
|
|
1748
|
+
#endif
|
|
1749
|
+
StringRef device_class_ref_{};
|
|
1750
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
1751
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1752
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1753
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1754
|
+
void dump_to(std::string &out) const override;
|
|
1755
|
+
#endif
|
|
1756
|
+
|
|
1757
|
+
protected:
|
|
1758
|
+
};
|
|
1759
|
+
class ButtonCommandRequest final : public CommandProtoMessage {
|
|
1760
|
+
public:
|
|
1761
|
+
static constexpr uint8_t MESSAGE_TYPE = 62;
|
|
1762
|
+
static constexpr uint8_t ESTIMATED_SIZE = 9;
|
|
1763
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1764
|
+
const char *message_name() const override { return "button_command_request"; }
|
|
1765
|
+
#endif
|
|
1766
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1767
|
+
void dump_to(std::string &out) const override;
|
|
1768
|
+
#endif
|
|
1769
|
+
|
|
1770
|
+
protected:
|
|
1771
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1772
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1773
|
+
};
|
|
1774
|
+
#endif
|
|
1775
|
+
#ifdef USE_MEDIA_PLAYER
|
|
1776
|
+
class MediaPlayerSupportedFormat final : public ProtoMessage {
|
|
1777
|
+
public:
|
|
1778
|
+
StringRef format_ref_{};
|
|
1779
|
+
void set_format(const StringRef &ref) { this->format_ref_ = ref; }
|
|
1780
|
+
uint32_t sample_rate{0};
|
|
1781
|
+
uint32_t num_channels{0};
|
|
1782
|
+
enums::MediaPlayerFormatPurpose purpose{};
|
|
1783
|
+
uint32_t sample_bytes{0};
|
|
1784
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1785
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1786
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1787
|
+
void dump_to(std::string &out) const override;
|
|
1788
|
+
#endif
|
|
1789
|
+
|
|
1790
|
+
protected:
|
|
1791
|
+
};
|
|
1792
|
+
class ListEntitiesMediaPlayerResponse final : public InfoResponseProtoMessage {
|
|
1793
|
+
public:
|
|
1794
|
+
static constexpr uint8_t MESSAGE_TYPE = 63;
|
|
1795
|
+
static constexpr uint8_t ESTIMATED_SIZE = 80;
|
|
1796
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1797
|
+
const char *message_name() const override { return "list_entities_media_player_response"; }
|
|
1798
|
+
#endif
|
|
1799
|
+
bool supports_pause{false};
|
|
1800
|
+
std::vector<MediaPlayerSupportedFormat> supported_formats{};
|
|
1801
|
+
uint32_t feature_flags{0};
|
|
1802
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1803
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1804
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1805
|
+
void dump_to(std::string &out) const override;
|
|
1806
|
+
#endif
|
|
1807
|
+
|
|
1808
|
+
protected:
|
|
1809
|
+
};
|
|
1810
|
+
class MediaPlayerStateResponse final : public StateResponseProtoMessage {
|
|
1811
|
+
public:
|
|
1812
|
+
static constexpr uint8_t MESSAGE_TYPE = 64;
|
|
1813
|
+
static constexpr uint8_t ESTIMATED_SIZE = 18;
|
|
1814
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1815
|
+
const char *message_name() const override { return "media_player_state_response"; }
|
|
1816
|
+
#endif
|
|
1817
|
+
enums::MediaPlayerState state{};
|
|
1818
|
+
float volume{0.0f};
|
|
1819
|
+
bool muted{false};
|
|
1820
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1821
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1822
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1823
|
+
void dump_to(std::string &out) const override;
|
|
1824
|
+
#endif
|
|
1825
|
+
|
|
1826
|
+
protected:
|
|
1827
|
+
};
|
|
1828
|
+
class MediaPlayerCommandRequest final : public CommandProtoMessage {
|
|
1829
|
+
public:
|
|
1830
|
+
static constexpr uint8_t MESSAGE_TYPE = 65;
|
|
1831
|
+
static constexpr uint8_t ESTIMATED_SIZE = 35;
|
|
1832
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1833
|
+
const char *message_name() const override { return "media_player_command_request"; }
|
|
1834
|
+
#endif
|
|
1835
|
+
bool has_command{false};
|
|
1836
|
+
enums::MediaPlayerCommand command{};
|
|
1837
|
+
bool has_volume{false};
|
|
1838
|
+
float volume{0.0f};
|
|
1839
|
+
bool has_media_url{false};
|
|
1840
|
+
std::string media_url{};
|
|
1841
|
+
bool has_announcement{false};
|
|
1842
|
+
bool announcement{false};
|
|
1843
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1844
|
+
void dump_to(std::string &out) const override;
|
|
1845
|
+
#endif
|
|
1846
|
+
|
|
1847
|
+
protected:
|
|
1848
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
1849
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
1850
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1851
|
+
};
|
|
1852
|
+
#endif
|
|
1853
|
+
#ifdef USE_BLUETOOTH_PROXY
|
|
1854
|
+
class SubscribeBluetoothLEAdvertisementsRequest final : public ProtoDecodableMessage {
|
|
1855
|
+
public:
|
|
1856
|
+
static constexpr uint8_t MESSAGE_TYPE = 66;
|
|
1857
|
+
static constexpr uint8_t ESTIMATED_SIZE = 4;
|
|
1858
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1859
|
+
const char *message_name() const override { return "subscribe_bluetooth_le_advertisements_request"; }
|
|
1860
|
+
#endif
|
|
1861
|
+
uint32_t flags{0};
|
|
1862
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1863
|
+
void dump_to(std::string &out) const override;
|
|
1864
|
+
#endif
|
|
1865
|
+
|
|
1866
|
+
protected:
|
|
1867
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1868
|
+
};
|
|
1869
|
+
class BluetoothLERawAdvertisement final : public ProtoMessage {
|
|
1870
|
+
public:
|
|
1871
|
+
uint64_t address{0};
|
|
1872
|
+
int32_t rssi{0};
|
|
1873
|
+
uint32_t address_type{0};
|
|
1874
|
+
uint8_t data[62]{};
|
|
1875
|
+
uint8_t data_len{0};
|
|
1876
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1877
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1878
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1879
|
+
void dump_to(std::string &out) const override;
|
|
1880
|
+
#endif
|
|
1881
|
+
|
|
1882
|
+
protected:
|
|
1883
|
+
};
|
|
1884
|
+
class BluetoothLERawAdvertisementsResponse final : public ProtoMessage {
|
|
1885
|
+
public:
|
|
1886
|
+
static constexpr uint8_t MESSAGE_TYPE = 93;
|
|
1887
|
+
static constexpr uint8_t ESTIMATED_SIZE = 136;
|
|
1888
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1889
|
+
const char *message_name() const override { return "bluetooth_le_raw_advertisements_response"; }
|
|
1890
|
+
#endif
|
|
1891
|
+
std::array<BluetoothLERawAdvertisement, BLUETOOTH_PROXY_ADVERTISEMENT_BATCH_SIZE> advertisements{};
|
|
1892
|
+
uint16_t advertisements_len{0};
|
|
1893
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1894
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1895
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1896
|
+
void dump_to(std::string &out) const override;
|
|
1897
|
+
#endif
|
|
1898
|
+
|
|
1899
|
+
protected:
|
|
1900
|
+
};
|
|
1901
|
+
class BluetoothDeviceRequest final : public ProtoDecodableMessage {
|
|
1902
|
+
public:
|
|
1903
|
+
static constexpr uint8_t MESSAGE_TYPE = 68;
|
|
1904
|
+
static constexpr uint8_t ESTIMATED_SIZE = 12;
|
|
1905
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1906
|
+
const char *message_name() const override { return "bluetooth_device_request"; }
|
|
1907
|
+
#endif
|
|
1908
|
+
uint64_t address{0};
|
|
1909
|
+
enums::BluetoothDeviceRequestType request_type{};
|
|
1910
|
+
bool has_address_type{false};
|
|
1911
|
+
uint32_t address_type{0};
|
|
1912
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1913
|
+
void dump_to(std::string &out) const override;
|
|
1914
|
+
#endif
|
|
1915
|
+
|
|
1916
|
+
protected:
|
|
1917
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1918
|
+
};
|
|
1919
|
+
class BluetoothDeviceConnectionResponse final : public ProtoMessage {
|
|
1920
|
+
public:
|
|
1921
|
+
static constexpr uint8_t MESSAGE_TYPE = 69;
|
|
1922
|
+
static constexpr uint8_t ESTIMATED_SIZE = 14;
|
|
1923
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1924
|
+
const char *message_name() const override { return "bluetooth_device_connection_response"; }
|
|
1925
|
+
#endif
|
|
1926
|
+
uint64_t address{0};
|
|
1927
|
+
bool connected{false};
|
|
1928
|
+
uint32_t mtu{0};
|
|
1929
|
+
int32_t error{0};
|
|
1930
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1931
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1932
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1933
|
+
void dump_to(std::string &out) const override;
|
|
1934
|
+
#endif
|
|
1935
|
+
|
|
1936
|
+
protected:
|
|
1937
|
+
};
|
|
1938
|
+
class BluetoothGATTGetServicesRequest final : public ProtoDecodableMessage {
|
|
1939
|
+
public:
|
|
1940
|
+
static constexpr uint8_t MESSAGE_TYPE = 70;
|
|
1941
|
+
static constexpr uint8_t ESTIMATED_SIZE = 4;
|
|
1942
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1943
|
+
const char *message_name() const override { return "bluetooth_gatt_get_services_request"; }
|
|
1944
|
+
#endif
|
|
1945
|
+
uint64_t address{0};
|
|
1946
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1947
|
+
void dump_to(std::string &out) const override;
|
|
1948
|
+
#endif
|
|
1949
|
+
|
|
1950
|
+
protected:
|
|
1951
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
1952
|
+
};
|
|
1953
|
+
class BluetoothGATTDescriptor final : public ProtoMessage {
|
|
1954
|
+
public:
|
|
1955
|
+
std::array<uint64_t, 2> uuid{};
|
|
1956
|
+
uint32_t handle{0};
|
|
1957
|
+
uint32_t short_uuid{0};
|
|
1958
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1959
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1960
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1961
|
+
void dump_to(std::string &out) const override;
|
|
1962
|
+
#endif
|
|
1963
|
+
|
|
1964
|
+
protected:
|
|
1965
|
+
};
|
|
1966
|
+
class BluetoothGATTCharacteristic final : public ProtoMessage {
|
|
1967
|
+
public:
|
|
1968
|
+
std::array<uint64_t, 2> uuid{};
|
|
1969
|
+
uint32_t handle{0};
|
|
1970
|
+
uint32_t properties{0};
|
|
1971
|
+
FixedVector<BluetoothGATTDescriptor> descriptors{};
|
|
1972
|
+
uint32_t short_uuid{0};
|
|
1973
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1974
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1975
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1976
|
+
void dump_to(std::string &out) const override;
|
|
1977
|
+
#endif
|
|
1978
|
+
|
|
1979
|
+
protected:
|
|
1980
|
+
};
|
|
1981
|
+
class BluetoothGATTService final : public ProtoMessage {
|
|
1982
|
+
public:
|
|
1983
|
+
std::array<uint64_t, 2> uuid{};
|
|
1984
|
+
uint32_t handle{0};
|
|
1985
|
+
FixedVector<BluetoothGATTCharacteristic> characteristics{};
|
|
1986
|
+
uint32_t short_uuid{0};
|
|
1987
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
1988
|
+
void calculate_size(ProtoSize &size) const override;
|
|
1989
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
1990
|
+
void dump_to(std::string &out) const override;
|
|
1991
|
+
#endif
|
|
1992
|
+
|
|
1993
|
+
protected:
|
|
1994
|
+
};
|
|
1995
|
+
class BluetoothGATTGetServicesResponse final : public ProtoMessage {
|
|
1996
|
+
public:
|
|
1997
|
+
static constexpr uint8_t MESSAGE_TYPE = 71;
|
|
1998
|
+
static constexpr uint8_t ESTIMATED_SIZE = 38;
|
|
1999
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2000
|
+
const char *message_name() const override { return "bluetooth_gatt_get_services_response"; }
|
|
2001
|
+
#endif
|
|
2002
|
+
uint64_t address{0};
|
|
2003
|
+
std::vector<BluetoothGATTService> services{};
|
|
2004
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2005
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2006
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2007
|
+
void dump_to(std::string &out) const override;
|
|
2008
|
+
#endif
|
|
2009
|
+
|
|
2010
|
+
protected:
|
|
2011
|
+
};
|
|
2012
|
+
class BluetoothGATTGetServicesDoneResponse final : public ProtoMessage {
|
|
2013
|
+
public:
|
|
2014
|
+
static constexpr uint8_t MESSAGE_TYPE = 72;
|
|
2015
|
+
static constexpr uint8_t ESTIMATED_SIZE = 4;
|
|
2016
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2017
|
+
const char *message_name() const override { return "bluetooth_gatt_get_services_done_response"; }
|
|
2018
|
+
#endif
|
|
2019
|
+
uint64_t address{0};
|
|
2020
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2021
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2022
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2023
|
+
void dump_to(std::string &out) const override;
|
|
2024
|
+
#endif
|
|
2025
|
+
|
|
2026
|
+
protected:
|
|
2027
|
+
};
|
|
2028
|
+
class BluetoothGATTReadRequest final : public ProtoDecodableMessage {
|
|
2029
|
+
public:
|
|
2030
|
+
static constexpr uint8_t MESSAGE_TYPE = 73;
|
|
2031
|
+
static constexpr uint8_t ESTIMATED_SIZE = 8;
|
|
2032
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2033
|
+
const char *message_name() const override { return "bluetooth_gatt_read_request"; }
|
|
2034
|
+
#endif
|
|
2035
|
+
uint64_t address{0};
|
|
2036
|
+
uint32_t handle{0};
|
|
2037
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2038
|
+
void dump_to(std::string &out) const override;
|
|
2039
|
+
#endif
|
|
2040
|
+
|
|
2041
|
+
protected:
|
|
2042
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2043
|
+
};
|
|
2044
|
+
class BluetoothGATTReadResponse final : public ProtoMessage {
|
|
2045
|
+
public:
|
|
2046
|
+
static constexpr uint8_t MESSAGE_TYPE = 74;
|
|
2047
|
+
static constexpr uint8_t ESTIMATED_SIZE = 17;
|
|
2048
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2049
|
+
const char *message_name() const override { return "bluetooth_gatt_read_response"; }
|
|
2050
|
+
#endif
|
|
2051
|
+
uint64_t address{0};
|
|
2052
|
+
uint32_t handle{0};
|
|
2053
|
+
const uint8_t *data_ptr_{nullptr};
|
|
2054
|
+
size_t data_len_{0};
|
|
2055
|
+
void set_data(const uint8_t *data, size_t len) {
|
|
2056
|
+
this->data_ptr_ = data;
|
|
2057
|
+
this->data_len_ = len;
|
|
2058
|
+
}
|
|
2059
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2060
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2061
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2062
|
+
void dump_to(std::string &out) const override;
|
|
2063
|
+
#endif
|
|
2064
|
+
|
|
2065
|
+
protected:
|
|
2066
|
+
};
|
|
2067
|
+
class BluetoothGATTWriteRequest final : public ProtoDecodableMessage {
|
|
2068
|
+
public:
|
|
2069
|
+
static constexpr uint8_t MESSAGE_TYPE = 75;
|
|
2070
|
+
static constexpr uint8_t ESTIMATED_SIZE = 29;
|
|
2071
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2072
|
+
const char *message_name() const override { return "bluetooth_gatt_write_request"; }
|
|
2073
|
+
#endif
|
|
2074
|
+
uint64_t address{0};
|
|
2075
|
+
uint32_t handle{0};
|
|
2076
|
+
bool response{false};
|
|
2077
|
+
const uint8_t *data{nullptr};
|
|
2078
|
+
uint16_t data_len{0};
|
|
2079
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2080
|
+
void dump_to(std::string &out) const override;
|
|
2081
|
+
#endif
|
|
2082
|
+
|
|
2083
|
+
protected:
|
|
2084
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2085
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2086
|
+
};
|
|
2087
|
+
class BluetoothGATTReadDescriptorRequest final : public ProtoDecodableMessage {
|
|
2088
|
+
public:
|
|
2089
|
+
static constexpr uint8_t MESSAGE_TYPE = 76;
|
|
2090
|
+
static constexpr uint8_t ESTIMATED_SIZE = 8;
|
|
2091
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2092
|
+
const char *message_name() const override { return "bluetooth_gatt_read_descriptor_request"; }
|
|
2093
|
+
#endif
|
|
2094
|
+
uint64_t address{0};
|
|
2095
|
+
uint32_t handle{0};
|
|
2096
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2097
|
+
void dump_to(std::string &out) const override;
|
|
2098
|
+
#endif
|
|
2099
|
+
|
|
2100
|
+
protected:
|
|
2101
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2102
|
+
};
|
|
2103
|
+
class BluetoothGATTWriteDescriptorRequest final : public ProtoDecodableMessage {
|
|
2104
|
+
public:
|
|
2105
|
+
static constexpr uint8_t MESSAGE_TYPE = 77;
|
|
2106
|
+
static constexpr uint8_t ESTIMATED_SIZE = 27;
|
|
2107
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2108
|
+
const char *message_name() const override { return "bluetooth_gatt_write_descriptor_request"; }
|
|
2109
|
+
#endif
|
|
2110
|
+
uint64_t address{0};
|
|
2111
|
+
uint32_t handle{0};
|
|
2112
|
+
const uint8_t *data{nullptr};
|
|
2113
|
+
uint16_t data_len{0};
|
|
2114
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2115
|
+
void dump_to(std::string &out) const override;
|
|
2116
|
+
#endif
|
|
2117
|
+
|
|
2118
|
+
protected:
|
|
2119
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2120
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2121
|
+
};
|
|
2122
|
+
class BluetoothGATTNotifyRequest final : public ProtoDecodableMessage {
|
|
2123
|
+
public:
|
|
2124
|
+
static constexpr uint8_t MESSAGE_TYPE = 78;
|
|
2125
|
+
static constexpr uint8_t ESTIMATED_SIZE = 10;
|
|
2126
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2127
|
+
const char *message_name() const override { return "bluetooth_gatt_notify_request"; }
|
|
2128
|
+
#endif
|
|
2129
|
+
uint64_t address{0};
|
|
2130
|
+
uint32_t handle{0};
|
|
2131
|
+
bool enable{false};
|
|
2132
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2133
|
+
void dump_to(std::string &out) const override;
|
|
2134
|
+
#endif
|
|
2135
|
+
|
|
2136
|
+
protected:
|
|
2137
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2138
|
+
};
|
|
2139
|
+
class BluetoothGATTNotifyDataResponse final : public ProtoMessage {
|
|
2140
|
+
public:
|
|
2141
|
+
static constexpr uint8_t MESSAGE_TYPE = 79;
|
|
2142
|
+
static constexpr uint8_t ESTIMATED_SIZE = 17;
|
|
2143
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2144
|
+
const char *message_name() const override { return "bluetooth_gatt_notify_data_response"; }
|
|
2145
|
+
#endif
|
|
2146
|
+
uint64_t address{0};
|
|
2147
|
+
uint32_t handle{0};
|
|
2148
|
+
const uint8_t *data_ptr_{nullptr};
|
|
2149
|
+
size_t data_len_{0};
|
|
2150
|
+
void set_data(const uint8_t *data, size_t len) {
|
|
2151
|
+
this->data_ptr_ = data;
|
|
2152
|
+
this->data_len_ = len;
|
|
2153
|
+
}
|
|
2154
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2155
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2156
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2157
|
+
void dump_to(std::string &out) const override;
|
|
2158
|
+
#endif
|
|
2159
|
+
|
|
2160
|
+
protected:
|
|
2161
|
+
};
|
|
2162
|
+
class SubscribeBluetoothConnectionsFreeRequest final : public ProtoMessage {
|
|
2163
|
+
public:
|
|
2164
|
+
static constexpr uint8_t MESSAGE_TYPE = 80;
|
|
2165
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
2166
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2167
|
+
const char *message_name() const override { return "subscribe_bluetooth_connections_free_request"; }
|
|
2168
|
+
#endif
|
|
2169
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2170
|
+
void dump_to(std::string &out) const override;
|
|
2171
|
+
#endif
|
|
2172
|
+
|
|
2173
|
+
protected:
|
|
2174
|
+
};
|
|
2175
|
+
class BluetoothConnectionsFreeResponse final : public ProtoMessage {
|
|
2176
|
+
public:
|
|
2177
|
+
static constexpr uint8_t MESSAGE_TYPE = 81;
|
|
2178
|
+
static constexpr uint8_t ESTIMATED_SIZE = 20;
|
|
2179
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2180
|
+
const char *message_name() const override { return "bluetooth_connections_free_response"; }
|
|
2181
|
+
#endif
|
|
2182
|
+
uint32_t free{0};
|
|
2183
|
+
uint32_t limit{0};
|
|
2184
|
+
std::array<uint64_t, BLUETOOTH_PROXY_MAX_CONNECTIONS> allocated{};
|
|
2185
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2186
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2187
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2188
|
+
void dump_to(std::string &out) const override;
|
|
2189
|
+
#endif
|
|
2190
|
+
|
|
2191
|
+
protected:
|
|
2192
|
+
};
|
|
2193
|
+
class BluetoothGATTErrorResponse final : public ProtoMessage {
|
|
2194
|
+
public:
|
|
2195
|
+
static constexpr uint8_t MESSAGE_TYPE = 82;
|
|
2196
|
+
static constexpr uint8_t ESTIMATED_SIZE = 12;
|
|
2197
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2198
|
+
const char *message_name() const override { return "bluetooth_gatt_error_response"; }
|
|
2199
|
+
#endif
|
|
2200
|
+
uint64_t address{0};
|
|
2201
|
+
uint32_t handle{0};
|
|
2202
|
+
int32_t error{0};
|
|
2203
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2204
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2205
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2206
|
+
void dump_to(std::string &out) const override;
|
|
2207
|
+
#endif
|
|
2208
|
+
|
|
2209
|
+
protected:
|
|
2210
|
+
};
|
|
2211
|
+
class BluetoothGATTWriteResponse final : public ProtoMessage {
|
|
2212
|
+
public:
|
|
2213
|
+
static constexpr uint8_t MESSAGE_TYPE = 83;
|
|
2214
|
+
static constexpr uint8_t ESTIMATED_SIZE = 8;
|
|
2215
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2216
|
+
const char *message_name() const override { return "bluetooth_gatt_write_response"; }
|
|
2217
|
+
#endif
|
|
2218
|
+
uint64_t address{0};
|
|
2219
|
+
uint32_t handle{0};
|
|
2220
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2221
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2222
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2223
|
+
void dump_to(std::string &out) const override;
|
|
2224
|
+
#endif
|
|
2225
|
+
|
|
2226
|
+
protected:
|
|
2227
|
+
};
|
|
2228
|
+
class BluetoothGATTNotifyResponse final : public ProtoMessage {
|
|
2229
|
+
public:
|
|
2230
|
+
static constexpr uint8_t MESSAGE_TYPE = 84;
|
|
2231
|
+
static constexpr uint8_t ESTIMATED_SIZE = 8;
|
|
2232
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2233
|
+
const char *message_name() const override { return "bluetooth_gatt_notify_response"; }
|
|
2234
|
+
#endif
|
|
2235
|
+
uint64_t address{0};
|
|
2236
|
+
uint32_t handle{0};
|
|
2237
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2238
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2239
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2240
|
+
void dump_to(std::string &out) const override;
|
|
2241
|
+
#endif
|
|
2242
|
+
|
|
2243
|
+
protected:
|
|
2244
|
+
};
|
|
2245
|
+
class BluetoothDevicePairingResponse final : public ProtoMessage {
|
|
2246
|
+
public:
|
|
2247
|
+
static constexpr uint8_t MESSAGE_TYPE = 85;
|
|
2248
|
+
static constexpr uint8_t ESTIMATED_SIZE = 10;
|
|
2249
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2250
|
+
const char *message_name() const override { return "bluetooth_device_pairing_response"; }
|
|
2251
|
+
#endif
|
|
2252
|
+
uint64_t address{0};
|
|
2253
|
+
bool paired{false};
|
|
2254
|
+
int32_t error{0};
|
|
2255
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2256
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2257
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2258
|
+
void dump_to(std::string &out) const override;
|
|
2259
|
+
#endif
|
|
2260
|
+
|
|
2261
|
+
protected:
|
|
2262
|
+
};
|
|
2263
|
+
class BluetoothDeviceUnpairingResponse final : public ProtoMessage {
|
|
2264
|
+
public:
|
|
2265
|
+
static constexpr uint8_t MESSAGE_TYPE = 86;
|
|
2266
|
+
static constexpr uint8_t ESTIMATED_SIZE = 10;
|
|
2267
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2268
|
+
const char *message_name() const override { return "bluetooth_device_unpairing_response"; }
|
|
2269
|
+
#endif
|
|
2270
|
+
uint64_t address{0};
|
|
2271
|
+
bool success{false};
|
|
2272
|
+
int32_t error{0};
|
|
2273
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2274
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2275
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2276
|
+
void dump_to(std::string &out) const override;
|
|
2277
|
+
#endif
|
|
2278
|
+
|
|
2279
|
+
protected:
|
|
2280
|
+
};
|
|
2281
|
+
class UnsubscribeBluetoothLEAdvertisementsRequest final : public ProtoMessage {
|
|
2282
|
+
public:
|
|
2283
|
+
static constexpr uint8_t MESSAGE_TYPE = 87;
|
|
2284
|
+
static constexpr uint8_t ESTIMATED_SIZE = 0;
|
|
2285
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2286
|
+
const char *message_name() const override { return "unsubscribe_bluetooth_le_advertisements_request"; }
|
|
2287
|
+
#endif
|
|
2288
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2289
|
+
void dump_to(std::string &out) const override;
|
|
2290
|
+
#endif
|
|
2291
|
+
|
|
2292
|
+
protected:
|
|
2293
|
+
};
|
|
2294
|
+
class BluetoothDeviceClearCacheResponse final : public ProtoMessage {
|
|
2295
|
+
public:
|
|
2296
|
+
static constexpr uint8_t MESSAGE_TYPE = 88;
|
|
2297
|
+
static constexpr uint8_t ESTIMATED_SIZE = 10;
|
|
2298
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2299
|
+
const char *message_name() const override { return "bluetooth_device_clear_cache_response"; }
|
|
2300
|
+
#endif
|
|
2301
|
+
uint64_t address{0};
|
|
2302
|
+
bool success{false};
|
|
2303
|
+
int32_t error{0};
|
|
2304
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2305
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2306
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2307
|
+
void dump_to(std::string &out) const override;
|
|
2308
|
+
#endif
|
|
2309
|
+
|
|
2310
|
+
protected:
|
|
2311
|
+
};
|
|
2312
|
+
class BluetoothScannerStateResponse final : public ProtoMessage {
|
|
2313
|
+
public:
|
|
2314
|
+
static constexpr uint8_t MESSAGE_TYPE = 126;
|
|
2315
|
+
static constexpr uint8_t ESTIMATED_SIZE = 6;
|
|
2316
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2317
|
+
const char *message_name() const override { return "bluetooth_scanner_state_response"; }
|
|
2318
|
+
#endif
|
|
2319
|
+
enums::BluetoothScannerState state{};
|
|
2320
|
+
enums::BluetoothScannerMode mode{};
|
|
2321
|
+
enums::BluetoothScannerMode configured_mode{};
|
|
2322
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2323
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2324
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2325
|
+
void dump_to(std::string &out) const override;
|
|
2326
|
+
#endif
|
|
2327
|
+
|
|
2328
|
+
protected:
|
|
2329
|
+
};
|
|
2330
|
+
class BluetoothScannerSetModeRequest final : public ProtoDecodableMessage {
|
|
2331
|
+
public:
|
|
2332
|
+
static constexpr uint8_t MESSAGE_TYPE = 127;
|
|
2333
|
+
static constexpr uint8_t ESTIMATED_SIZE = 2;
|
|
2334
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2335
|
+
const char *message_name() const override { return "bluetooth_scanner_set_mode_request"; }
|
|
2336
|
+
#endif
|
|
2337
|
+
enums::BluetoothScannerMode mode{};
|
|
2338
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2339
|
+
void dump_to(std::string &out) const override;
|
|
2340
|
+
#endif
|
|
2341
|
+
|
|
2342
|
+
protected:
|
|
2343
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2344
|
+
};
|
|
2345
|
+
#endif
|
|
2346
|
+
#ifdef USE_VOICE_ASSISTANT
|
|
2347
|
+
class SubscribeVoiceAssistantRequest final : public ProtoDecodableMessage {
|
|
2348
|
+
public:
|
|
2349
|
+
static constexpr uint8_t MESSAGE_TYPE = 89;
|
|
2350
|
+
static constexpr uint8_t ESTIMATED_SIZE = 6;
|
|
2351
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2352
|
+
const char *message_name() const override { return "subscribe_voice_assistant_request"; }
|
|
2353
|
+
#endif
|
|
2354
|
+
bool subscribe{false};
|
|
2355
|
+
uint32_t flags{0};
|
|
2356
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2357
|
+
void dump_to(std::string &out) const override;
|
|
2358
|
+
#endif
|
|
2359
|
+
|
|
2360
|
+
protected:
|
|
2361
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2362
|
+
};
|
|
2363
|
+
class VoiceAssistantAudioSettings final : public ProtoMessage {
|
|
2364
|
+
public:
|
|
2365
|
+
uint32_t noise_suppression_level{0};
|
|
2366
|
+
uint32_t auto_gain{0};
|
|
2367
|
+
float volume_multiplier{0.0f};
|
|
2368
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2369
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2370
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2371
|
+
void dump_to(std::string &out) const override;
|
|
2372
|
+
#endif
|
|
2373
|
+
|
|
2374
|
+
protected:
|
|
2375
|
+
};
|
|
2376
|
+
class VoiceAssistantRequest final : public ProtoMessage {
|
|
2377
|
+
public:
|
|
2378
|
+
static constexpr uint8_t MESSAGE_TYPE = 90;
|
|
2379
|
+
static constexpr uint8_t ESTIMATED_SIZE = 41;
|
|
2380
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2381
|
+
const char *message_name() const override { return "voice_assistant_request"; }
|
|
2382
|
+
#endif
|
|
2383
|
+
bool start{false};
|
|
2384
|
+
StringRef conversation_id_ref_{};
|
|
2385
|
+
void set_conversation_id(const StringRef &ref) { this->conversation_id_ref_ = ref; }
|
|
2386
|
+
uint32_t flags{0};
|
|
2387
|
+
VoiceAssistantAudioSettings audio_settings{};
|
|
2388
|
+
StringRef wake_word_phrase_ref_{};
|
|
2389
|
+
void set_wake_word_phrase(const StringRef &ref) { this->wake_word_phrase_ref_ = ref; }
|
|
2390
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2391
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2392
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2393
|
+
void dump_to(std::string &out) const override;
|
|
2394
|
+
#endif
|
|
2395
|
+
|
|
2396
|
+
protected:
|
|
2397
|
+
};
|
|
2398
|
+
class VoiceAssistantResponse final : public ProtoDecodableMessage {
|
|
2399
|
+
public:
|
|
2400
|
+
static constexpr uint8_t MESSAGE_TYPE = 91;
|
|
2401
|
+
static constexpr uint8_t ESTIMATED_SIZE = 6;
|
|
2402
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2403
|
+
const char *message_name() const override { return "voice_assistant_response"; }
|
|
2404
|
+
#endif
|
|
2405
|
+
uint32_t port{0};
|
|
2406
|
+
bool error{false};
|
|
2407
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2408
|
+
void dump_to(std::string &out) const override;
|
|
2409
|
+
#endif
|
|
2410
|
+
|
|
2411
|
+
protected:
|
|
2412
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2413
|
+
};
|
|
2414
|
+
class VoiceAssistantEventData final : public ProtoDecodableMessage {
|
|
2415
|
+
public:
|
|
2416
|
+
std::string name{};
|
|
2417
|
+
std::string value{};
|
|
2418
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2419
|
+
void dump_to(std::string &out) const override;
|
|
2420
|
+
#endif
|
|
2421
|
+
|
|
2422
|
+
protected:
|
|
2423
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2424
|
+
};
|
|
2425
|
+
class VoiceAssistantEventResponse final : public ProtoDecodableMessage {
|
|
2426
|
+
public:
|
|
2427
|
+
static constexpr uint8_t MESSAGE_TYPE = 92;
|
|
2428
|
+
static constexpr uint8_t ESTIMATED_SIZE = 36;
|
|
2429
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2430
|
+
const char *message_name() const override { return "voice_assistant_event_response"; }
|
|
2431
|
+
#endif
|
|
2432
|
+
enums::VoiceAssistantEvent event_type{};
|
|
2433
|
+
std::vector<VoiceAssistantEventData> data{};
|
|
2434
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2435
|
+
void dump_to(std::string &out) const override;
|
|
2436
|
+
#endif
|
|
2437
|
+
|
|
2438
|
+
protected:
|
|
2439
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2440
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2441
|
+
};
|
|
2442
|
+
class VoiceAssistantAudio final : public ProtoDecodableMessage {
|
|
2443
|
+
public:
|
|
2444
|
+
static constexpr uint8_t MESSAGE_TYPE = 106;
|
|
2445
|
+
static constexpr uint8_t ESTIMATED_SIZE = 11;
|
|
2446
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2447
|
+
const char *message_name() const override { return "voice_assistant_audio"; }
|
|
2448
|
+
#endif
|
|
2449
|
+
std::string data{};
|
|
2450
|
+
const uint8_t *data_ptr_{nullptr};
|
|
2451
|
+
size_t data_len_{0};
|
|
2452
|
+
void set_data(const uint8_t *data, size_t len) {
|
|
2453
|
+
this->data_ptr_ = data;
|
|
2454
|
+
this->data_len_ = len;
|
|
2455
|
+
}
|
|
2456
|
+
bool end{false};
|
|
2457
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2458
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2459
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2460
|
+
void dump_to(std::string &out) const override;
|
|
2461
|
+
#endif
|
|
2462
|
+
|
|
2463
|
+
protected:
|
|
2464
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2465
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2466
|
+
};
|
|
2467
|
+
class VoiceAssistantTimerEventResponse final : public ProtoDecodableMessage {
|
|
2468
|
+
public:
|
|
2469
|
+
static constexpr uint8_t MESSAGE_TYPE = 115;
|
|
2470
|
+
static constexpr uint8_t ESTIMATED_SIZE = 30;
|
|
2471
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2472
|
+
const char *message_name() const override { return "voice_assistant_timer_event_response"; }
|
|
2473
|
+
#endif
|
|
2474
|
+
enums::VoiceAssistantTimerEvent event_type{};
|
|
2475
|
+
std::string timer_id{};
|
|
2476
|
+
std::string name{};
|
|
2477
|
+
uint32_t total_seconds{0};
|
|
2478
|
+
uint32_t seconds_left{0};
|
|
2479
|
+
bool is_active{false};
|
|
2480
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2481
|
+
void dump_to(std::string &out) const override;
|
|
2482
|
+
#endif
|
|
2483
|
+
|
|
2484
|
+
protected:
|
|
2485
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2486
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2487
|
+
};
|
|
2488
|
+
class VoiceAssistantAnnounceRequest final : public ProtoDecodableMessage {
|
|
2489
|
+
public:
|
|
2490
|
+
static constexpr uint8_t MESSAGE_TYPE = 119;
|
|
2491
|
+
static constexpr uint8_t ESTIMATED_SIZE = 29;
|
|
2492
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2493
|
+
const char *message_name() const override { return "voice_assistant_announce_request"; }
|
|
2494
|
+
#endif
|
|
2495
|
+
std::string media_id{};
|
|
2496
|
+
std::string text{};
|
|
2497
|
+
std::string preannounce_media_id{};
|
|
2498
|
+
bool start_conversation{false};
|
|
2499
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2500
|
+
void dump_to(std::string &out) const override;
|
|
2501
|
+
#endif
|
|
2502
|
+
|
|
2503
|
+
protected:
|
|
2504
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2505
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2506
|
+
};
|
|
2507
|
+
class VoiceAssistantAnnounceFinished final : public ProtoMessage {
|
|
2508
|
+
public:
|
|
2509
|
+
static constexpr uint8_t MESSAGE_TYPE = 120;
|
|
2510
|
+
static constexpr uint8_t ESTIMATED_SIZE = 2;
|
|
2511
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2512
|
+
const char *message_name() const override { return "voice_assistant_announce_finished"; }
|
|
2513
|
+
#endif
|
|
2514
|
+
bool success{false};
|
|
2515
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2516
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2517
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2518
|
+
void dump_to(std::string &out) const override;
|
|
2519
|
+
#endif
|
|
2520
|
+
|
|
2521
|
+
protected:
|
|
2522
|
+
};
|
|
2523
|
+
class VoiceAssistantWakeWord final : public ProtoMessage {
|
|
2524
|
+
public:
|
|
2525
|
+
StringRef id_ref_{};
|
|
2526
|
+
void set_id(const StringRef &ref) { this->id_ref_ = ref; }
|
|
2527
|
+
StringRef wake_word_ref_{};
|
|
2528
|
+
void set_wake_word(const StringRef &ref) { this->wake_word_ref_ = ref; }
|
|
2529
|
+
std::vector<std::string> trained_languages{};
|
|
2530
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2531
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2532
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2533
|
+
void dump_to(std::string &out) const override;
|
|
2534
|
+
#endif
|
|
2535
|
+
|
|
2536
|
+
protected:
|
|
2537
|
+
};
|
|
2538
|
+
class VoiceAssistantExternalWakeWord final : public ProtoDecodableMessage {
|
|
2539
|
+
public:
|
|
2540
|
+
std::string id{};
|
|
2541
|
+
std::string wake_word{};
|
|
2542
|
+
std::vector<std::string> trained_languages{};
|
|
2543
|
+
std::string model_type{};
|
|
2544
|
+
uint32_t model_size{0};
|
|
2545
|
+
std::string model_hash{};
|
|
2546
|
+
std::string url{};
|
|
2547
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2548
|
+
void dump_to(std::string &out) const override;
|
|
2549
|
+
#endif
|
|
2550
|
+
|
|
2551
|
+
protected:
|
|
2552
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2553
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2554
|
+
};
|
|
2555
|
+
class VoiceAssistantConfigurationRequest final : public ProtoDecodableMessage {
|
|
2556
|
+
public:
|
|
2557
|
+
static constexpr uint8_t MESSAGE_TYPE = 121;
|
|
2558
|
+
static constexpr uint8_t ESTIMATED_SIZE = 34;
|
|
2559
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2560
|
+
const char *message_name() const override { return "voice_assistant_configuration_request"; }
|
|
2561
|
+
#endif
|
|
2562
|
+
std::vector<VoiceAssistantExternalWakeWord> external_wake_words{};
|
|
2563
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2564
|
+
void dump_to(std::string &out) const override;
|
|
2565
|
+
#endif
|
|
2566
|
+
|
|
2567
|
+
protected:
|
|
2568
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2569
|
+
};
|
|
2570
|
+
class VoiceAssistantConfigurationResponse final : public ProtoMessage {
|
|
2571
|
+
public:
|
|
2572
|
+
static constexpr uint8_t MESSAGE_TYPE = 122;
|
|
2573
|
+
static constexpr uint8_t ESTIMATED_SIZE = 56;
|
|
2574
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2575
|
+
const char *message_name() const override { return "voice_assistant_configuration_response"; }
|
|
2576
|
+
#endif
|
|
2577
|
+
std::vector<VoiceAssistantWakeWord> available_wake_words{};
|
|
2578
|
+
const std::vector<std::string> *active_wake_words{};
|
|
2579
|
+
uint32_t max_active_wake_words{0};
|
|
2580
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2581
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2582
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2583
|
+
void dump_to(std::string &out) const override;
|
|
2584
|
+
#endif
|
|
2585
|
+
|
|
2586
|
+
protected:
|
|
2587
|
+
};
|
|
2588
|
+
class VoiceAssistantSetConfiguration final : public ProtoDecodableMessage {
|
|
2589
|
+
public:
|
|
2590
|
+
static constexpr uint8_t MESSAGE_TYPE = 123;
|
|
2591
|
+
static constexpr uint8_t ESTIMATED_SIZE = 18;
|
|
2592
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2593
|
+
const char *message_name() const override { return "voice_assistant_set_configuration"; }
|
|
2594
|
+
#endif
|
|
2595
|
+
std::vector<std::string> active_wake_words{};
|
|
2596
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2597
|
+
void dump_to(std::string &out) const override;
|
|
2598
|
+
#endif
|
|
2599
|
+
|
|
2600
|
+
protected:
|
|
2601
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2602
|
+
};
|
|
2603
|
+
#endif
|
|
2604
|
+
#ifdef USE_ALARM_CONTROL_PANEL
|
|
2605
|
+
class ListEntitiesAlarmControlPanelResponse final : public InfoResponseProtoMessage {
|
|
2606
|
+
public:
|
|
2607
|
+
static constexpr uint8_t MESSAGE_TYPE = 94;
|
|
2608
|
+
static constexpr uint8_t ESTIMATED_SIZE = 48;
|
|
2609
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2610
|
+
const char *message_name() const override { return "list_entities_alarm_control_panel_response"; }
|
|
2611
|
+
#endif
|
|
2612
|
+
uint32_t supported_features{0};
|
|
2613
|
+
bool requires_code{false};
|
|
2614
|
+
bool requires_code_to_arm{false};
|
|
2615
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2616
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2617
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2618
|
+
void dump_to(std::string &out) const override;
|
|
2619
|
+
#endif
|
|
2620
|
+
|
|
2621
|
+
protected:
|
|
2622
|
+
};
|
|
2623
|
+
class AlarmControlPanelStateResponse final : public StateResponseProtoMessage {
|
|
2624
|
+
public:
|
|
2625
|
+
static constexpr uint8_t MESSAGE_TYPE = 95;
|
|
2626
|
+
static constexpr uint8_t ESTIMATED_SIZE = 11;
|
|
2627
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2628
|
+
const char *message_name() const override { return "alarm_control_panel_state_response"; }
|
|
2629
|
+
#endif
|
|
2630
|
+
enums::AlarmControlPanelState state{};
|
|
2631
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2632
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2633
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2634
|
+
void dump_to(std::string &out) const override;
|
|
2635
|
+
#endif
|
|
2636
|
+
|
|
2637
|
+
protected:
|
|
2638
|
+
};
|
|
2639
|
+
class AlarmControlPanelCommandRequest final : public CommandProtoMessage {
|
|
2640
|
+
public:
|
|
2641
|
+
static constexpr uint8_t MESSAGE_TYPE = 96;
|
|
2642
|
+
static constexpr uint8_t ESTIMATED_SIZE = 20;
|
|
2643
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2644
|
+
const char *message_name() const override { return "alarm_control_panel_command_request"; }
|
|
2645
|
+
#endif
|
|
2646
|
+
enums::AlarmControlPanelStateCommand command{};
|
|
2647
|
+
std::string code{};
|
|
2648
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2649
|
+
void dump_to(std::string &out) const override;
|
|
2650
|
+
#endif
|
|
2651
|
+
|
|
2652
|
+
protected:
|
|
2653
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
2654
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2655
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2656
|
+
};
|
|
2657
|
+
#endif
|
|
2658
|
+
#ifdef USE_TEXT
|
|
2659
|
+
class ListEntitiesTextResponse final : public InfoResponseProtoMessage {
|
|
2660
|
+
public:
|
|
2661
|
+
static constexpr uint8_t MESSAGE_TYPE = 97;
|
|
2662
|
+
static constexpr uint8_t ESTIMATED_SIZE = 59;
|
|
2663
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2664
|
+
const char *message_name() const override { return "list_entities_text_response"; }
|
|
2665
|
+
#endif
|
|
2666
|
+
uint32_t min_length{0};
|
|
2667
|
+
uint32_t max_length{0};
|
|
2668
|
+
StringRef pattern_ref_{};
|
|
2669
|
+
void set_pattern(const StringRef &ref) { this->pattern_ref_ = ref; }
|
|
2670
|
+
enums::TextMode mode{};
|
|
2671
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2672
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2673
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2674
|
+
void dump_to(std::string &out) const override;
|
|
2675
|
+
#endif
|
|
2676
|
+
|
|
2677
|
+
protected:
|
|
2678
|
+
};
|
|
2679
|
+
class TextStateResponse final : public StateResponseProtoMessage {
|
|
2680
|
+
public:
|
|
2681
|
+
static constexpr uint8_t MESSAGE_TYPE = 98;
|
|
2682
|
+
static constexpr uint8_t ESTIMATED_SIZE = 20;
|
|
2683
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2684
|
+
const char *message_name() const override { return "text_state_response"; }
|
|
2685
|
+
#endif
|
|
2686
|
+
StringRef state_ref_{};
|
|
2687
|
+
void set_state(const StringRef &ref) { this->state_ref_ = ref; }
|
|
2688
|
+
bool missing_state{false};
|
|
2689
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2690
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2691
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2692
|
+
void dump_to(std::string &out) const override;
|
|
2693
|
+
#endif
|
|
2694
|
+
|
|
2695
|
+
protected:
|
|
2696
|
+
};
|
|
2697
|
+
class TextCommandRequest final : public CommandProtoMessage {
|
|
2698
|
+
public:
|
|
2699
|
+
static constexpr uint8_t MESSAGE_TYPE = 99;
|
|
2700
|
+
static constexpr uint8_t ESTIMATED_SIZE = 18;
|
|
2701
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2702
|
+
const char *message_name() const override { return "text_command_request"; }
|
|
2703
|
+
#endif
|
|
2704
|
+
std::string state{};
|
|
2705
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2706
|
+
void dump_to(std::string &out) const override;
|
|
2707
|
+
#endif
|
|
2708
|
+
|
|
2709
|
+
protected:
|
|
2710
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
2711
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
2712
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2713
|
+
};
|
|
2714
|
+
#endif
|
|
2715
|
+
#ifdef USE_DATETIME_DATE
|
|
2716
|
+
class ListEntitiesDateResponse final : public InfoResponseProtoMessage {
|
|
2717
|
+
public:
|
|
2718
|
+
static constexpr uint8_t MESSAGE_TYPE = 100;
|
|
2719
|
+
static constexpr uint8_t ESTIMATED_SIZE = 40;
|
|
2720
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2721
|
+
const char *message_name() const override { return "list_entities_date_response"; }
|
|
2722
|
+
#endif
|
|
2723
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2724
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2725
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2726
|
+
void dump_to(std::string &out) const override;
|
|
2727
|
+
#endif
|
|
2728
|
+
|
|
2729
|
+
protected:
|
|
2730
|
+
};
|
|
2731
|
+
class DateStateResponse final : public StateResponseProtoMessage {
|
|
2732
|
+
public:
|
|
2733
|
+
static constexpr uint8_t MESSAGE_TYPE = 101;
|
|
2734
|
+
static constexpr uint8_t ESTIMATED_SIZE = 23;
|
|
2735
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2736
|
+
const char *message_name() const override { return "date_state_response"; }
|
|
2737
|
+
#endif
|
|
2738
|
+
bool missing_state{false};
|
|
2739
|
+
uint32_t year{0};
|
|
2740
|
+
uint32_t month{0};
|
|
2741
|
+
uint32_t day{0};
|
|
2742
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2743
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2744
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2745
|
+
void dump_to(std::string &out) const override;
|
|
2746
|
+
#endif
|
|
2747
|
+
|
|
2748
|
+
protected:
|
|
2749
|
+
};
|
|
2750
|
+
class DateCommandRequest final : public CommandProtoMessage {
|
|
2751
|
+
public:
|
|
2752
|
+
static constexpr uint8_t MESSAGE_TYPE = 102;
|
|
2753
|
+
static constexpr uint8_t ESTIMATED_SIZE = 21;
|
|
2754
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2755
|
+
const char *message_name() const override { return "date_command_request"; }
|
|
2756
|
+
#endif
|
|
2757
|
+
uint32_t year{0};
|
|
2758
|
+
uint32_t month{0};
|
|
2759
|
+
uint32_t day{0};
|
|
2760
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2761
|
+
void dump_to(std::string &out) const override;
|
|
2762
|
+
#endif
|
|
2763
|
+
|
|
2764
|
+
protected:
|
|
2765
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
2766
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2767
|
+
};
|
|
2768
|
+
#endif
|
|
2769
|
+
#ifdef USE_DATETIME_TIME
|
|
2770
|
+
class ListEntitiesTimeResponse final : public InfoResponseProtoMessage {
|
|
2771
|
+
public:
|
|
2772
|
+
static constexpr uint8_t MESSAGE_TYPE = 103;
|
|
2773
|
+
static constexpr uint8_t ESTIMATED_SIZE = 40;
|
|
2774
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2775
|
+
const char *message_name() const override { return "list_entities_time_response"; }
|
|
2776
|
+
#endif
|
|
2777
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2778
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2779
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2780
|
+
void dump_to(std::string &out) const override;
|
|
2781
|
+
#endif
|
|
2782
|
+
|
|
2783
|
+
protected:
|
|
2784
|
+
};
|
|
2785
|
+
class TimeStateResponse final : public StateResponseProtoMessage {
|
|
2786
|
+
public:
|
|
2787
|
+
static constexpr uint8_t MESSAGE_TYPE = 104;
|
|
2788
|
+
static constexpr uint8_t ESTIMATED_SIZE = 23;
|
|
2789
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2790
|
+
const char *message_name() const override { return "time_state_response"; }
|
|
2791
|
+
#endif
|
|
2792
|
+
bool missing_state{false};
|
|
2793
|
+
uint32_t hour{0};
|
|
2794
|
+
uint32_t minute{0};
|
|
2795
|
+
uint32_t second{0};
|
|
2796
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2797
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2798
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2799
|
+
void dump_to(std::string &out) const override;
|
|
2800
|
+
#endif
|
|
2801
|
+
|
|
2802
|
+
protected:
|
|
2803
|
+
};
|
|
2804
|
+
class TimeCommandRequest final : public CommandProtoMessage {
|
|
2805
|
+
public:
|
|
2806
|
+
static constexpr uint8_t MESSAGE_TYPE = 105;
|
|
2807
|
+
static constexpr uint8_t ESTIMATED_SIZE = 21;
|
|
2808
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2809
|
+
const char *message_name() const override { return "time_command_request"; }
|
|
2810
|
+
#endif
|
|
2811
|
+
uint32_t hour{0};
|
|
2812
|
+
uint32_t minute{0};
|
|
2813
|
+
uint32_t second{0};
|
|
2814
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2815
|
+
void dump_to(std::string &out) const override;
|
|
2816
|
+
#endif
|
|
2817
|
+
|
|
2818
|
+
protected:
|
|
2819
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
2820
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2821
|
+
};
|
|
2822
|
+
#endif
|
|
2823
|
+
#ifdef USE_EVENT
|
|
2824
|
+
class ListEntitiesEventResponse final : public InfoResponseProtoMessage {
|
|
2825
|
+
public:
|
|
2826
|
+
static constexpr uint8_t MESSAGE_TYPE = 107;
|
|
2827
|
+
static constexpr uint8_t ESTIMATED_SIZE = 67;
|
|
2828
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2829
|
+
const char *message_name() const override { return "list_entities_event_response"; }
|
|
2830
|
+
#endif
|
|
2831
|
+
StringRef device_class_ref_{};
|
|
2832
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
2833
|
+
const FixedVector<const char *> *event_types{};
|
|
2834
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2835
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2836
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2837
|
+
void dump_to(std::string &out) const override;
|
|
2838
|
+
#endif
|
|
2839
|
+
|
|
2840
|
+
protected:
|
|
2841
|
+
};
|
|
2842
|
+
class EventResponse final : public StateResponseProtoMessage {
|
|
2843
|
+
public:
|
|
2844
|
+
static constexpr uint8_t MESSAGE_TYPE = 108;
|
|
2845
|
+
static constexpr uint8_t ESTIMATED_SIZE = 18;
|
|
2846
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2847
|
+
const char *message_name() const override { return "event_response"; }
|
|
2848
|
+
#endif
|
|
2849
|
+
StringRef event_type_ref_{};
|
|
2850
|
+
void set_event_type(const StringRef &ref) { this->event_type_ref_ = ref; }
|
|
2851
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2852
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2853
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2854
|
+
void dump_to(std::string &out) const override;
|
|
2855
|
+
#endif
|
|
2856
|
+
|
|
2857
|
+
protected:
|
|
2858
|
+
};
|
|
2859
|
+
#endif
|
|
2860
|
+
#ifdef USE_VALVE
|
|
2861
|
+
class ListEntitiesValveResponse final : public InfoResponseProtoMessage {
|
|
2862
|
+
public:
|
|
2863
|
+
static constexpr uint8_t MESSAGE_TYPE = 109;
|
|
2864
|
+
static constexpr uint8_t ESTIMATED_SIZE = 55;
|
|
2865
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2866
|
+
const char *message_name() const override { return "list_entities_valve_response"; }
|
|
2867
|
+
#endif
|
|
2868
|
+
StringRef device_class_ref_{};
|
|
2869
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
2870
|
+
bool assumed_state{false};
|
|
2871
|
+
bool supports_position{false};
|
|
2872
|
+
bool supports_stop{false};
|
|
2873
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2874
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2875
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2876
|
+
void dump_to(std::string &out) const override;
|
|
2877
|
+
#endif
|
|
2878
|
+
|
|
2879
|
+
protected:
|
|
2880
|
+
};
|
|
2881
|
+
class ValveStateResponse final : public StateResponseProtoMessage {
|
|
2882
|
+
public:
|
|
2883
|
+
static constexpr uint8_t MESSAGE_TYPE = 110;
|
|
2884
|
+
static constexpr uint8_t ESTIMATED_SIZE = 16;
|
|
2885
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2886
|
+
const char *message_name() const override { return "valve_state_response"; }
|
|
2887
|
+
#endif
|
|
2888
|
+
float position{0.0f};
|
|
2889
|
+
enums::ValveOperation current_operation{};
|
|
2890
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2891
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2892
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2893
|
+
void dump_to(std::string &out) const override;
|
|
2894
|
+
#endif
|
|
2895
|
+
|
|
2896
|
+
protected:
|
|
2897
|
+
};
|
|
2898
|
+
class ValveCommandRequest final : public CommandProtoMessage {
|
|
2899
|
+
public:
|
|
2900
|
+
static constexpr uint8_t MESSAGE_TYPE = 111;
|
|
2901
|
+
static constexpr uint8_t ESTIMATED_SIZE = 18;
|
|
2902
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2903
|
+
const char *message_name() const override { return "valve_command_request"; }
|
|
2904
|
+
#endif
|
|
2905
|
+
bool has_position{false};
|
|
2906
|
+
float position{0.0f};
|
|
2907
|
+
bool stop{false};
|
|
2908
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2909
|
+
void dump_to(std::string &out) const override;
|
|
2910
|
+
#endif
|
|
2911
|
+
|
|
2912
|
+
protected:
|
|
2913
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
2914
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2915
|
+
};
|
|
2916
|
+
#endif
|
|
2917
|
+
#ifdef USE_DATETIME_DATETIME
|
|
2918
|
+
class ListEntitiesDateTimeResponse final : public InfoResponseProtoMessage {
|
|
2919
|
+
public:
|
|
2920
|
+
static constexpr uint8_t MESSAGE_TYPE = 112;
|
|
2921
|
+
static constexpr uint8_t ESTIMATED_SIZE = 40;
|
|
2922
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2923
|
+
const char *message_name() const override { return "list_entities_date_time_response"; }
|
|
2924
|
+
#endif
|
|
2925
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2926
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2927
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2928
|
+
void dump_to(std::string &out) const override;
|
|
2929
|
+
#endif
|
|
2930
|
+
|
|
2931
|
+
protected:
|
|
2932
|
+
};
|
|
2933
|
+
class DateTimeStateResponse final : public StateResponseProtoMessage {
|
|
2934
|
+
public:
|
|
2935
|
+
static constexpr uint8_t MESSAGE_TYPE = 113;
|
|
2936
|
+
static constexpr uint8_t ESTIMATED_SIZE = 16;
|
|
2937
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2938
|
+
const char *message_name() const override { return "date_time_state_response"; }
|
|
2939
|
+
#endif
|
|
2940
|
+
bool missing_state{false};
|
|
2941
|
+
uint32_t epoch_seconds{0};
|
|
2942
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2943
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2944
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2945
|
+
void dump_to(std::string &out) const override;
|
|
2946
|
+
#endif
|
|
2947
|
+
|
|
2948
|
+
protected:
|
|
2949
|
+
};
|
|
2950
|
+
class DateTimeCommandRequest final : public CommandProtoMessage {
|
|
2951
|
+
public:
|
|
2952
|
+
static constexpr uint8_t MESSAGE_TYPE = 114;
|
|
2953
|
+
static constexpr uint8_t ESTIMATED_SIZE = 14;
|
|
2954
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2955
|
+
const char *message_name() const override { return "date_time_command_request"; }
|
|
2956
|
+
#endif
|
|
2957
|
+
uint32_t epoch_seconds{0};
|
|
2958
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2959
|
+
void dump_to(std::string &out) const override;
|
|
2960
|
+
#endif
|
|
2961
|
+
|
|
2962
|
+
protected:
|
|
2963
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
2964
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
2965
|
+
};
|
|
2966
|
+
#endif
|
|
2967
|
+
#ifdef USE_UPDATE
|
|
2968
|
+
class ListEntitiesUpdateResponse final : public InfoResponseProtoMessage {
|
|
2969
|
+
public:
|
|
2970
|
+
static constexpr uint8_t MESSAGE_TYPE = 116;
|
|
2971
|
+
static constexpr uint8_t ESTIMATED_SIZE = 49;
|
|
2972
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2973
|
+
const char *message_name() const override { return "list_entities_update_response"; }
|
|
2974
|
+
#endif
|
|
2975
|
+
StringRef device_class_ref_{};
|
|
2976
|
+
void set_device_class(const StringRef &ref) { this->device_class_ref_ = ref; }
|
|
2977
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
2978
|
+
void calculate_size(ProtoSize &size) const override;
|
|
2979
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2980
|
+
void dump_to(std::string &out) const override;
|
|
2981
|
+
#endif
|
|
2982
|
+
|
|
2983
|
+
protected:
|
|
2984
|
+
};
|
|
2985
|
+
class UpdateStateResponse final : public StateResponseProtoMessage {
|
|
2986
|
+
public:
|
|
2987
|
+
static constexpr uint8_t MESSAGE_TYPE = 117;
|
|
2988
|
+
static constexpr uint8_t ESTIMATED_SIZE = 65;
|
|
2989
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
2990
|
+
const char *message_name() const override { return "update_state_response"; }
|
|
2991
|
+
#endif
|
|
2992
|
+
bool missing_state{false};
|
|
2993
|
+
bool in_progress{false};
|
|
2994
|
+
bool has_progress{false};
|
|
2995
|
+
float progress{0.0f};
|
|
2996
|
+
StringRef current_version_ref_{};
|
|
2997
|
+
void set_current_version(const StringRef &ref) { this->current_version_ref_ = ref; }
|
|
2998
|
+
StringRef latest_version_ref_{};
|
|
2999
|
+
void set_latest_version(const StringRef &ref) { this->latest_version_ref_ = ref; }
|
|
3000
|
+
StringRef title_ref_{};
|
|
3001
|
+
void set_title(const StringRef &ref) { this->title_ref_ = ref; }
|
|
3002
|
+
StringRef release_summary_ref_{};
|
|
3003
|
+
void set_release_summary(const StringRef &ref) { this->release_summary_ref_ = ref; }
|
|
3004
|
+
StringRef release_url_ref_{};
|
|
3005
|
+
void set_release_url(const StringRef &ref) { this->release_url_ref_ = ref; }
|
|
3006
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
3007
|
+
void calculate_size(ProtoSize &size) const override;
|
|
3008
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
3009
|
+
void dump_to(std::string &out) const override;
|
|
3010
|
+
#endif
|
|
3011
|
+
|
|
3012
|
+
protected:
|
|
3013
|
+
};
|
|
3014
|
+
class UpdateCommandRequest final : public CommandProtoMessage {
|
|
3015
|
+
public:
|
|
3016
|
+
static constexpr uint8_t MESSAGE_TYPE = 118;
|
|
3017
|
+
static constexpr uint8_t ESTIMATED_SIZE = 11;
|
|
3018
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
3019
|
+
const char *message_name() const override { return "update_command_request"; }
|
|
3020
|
+
#endif
|
|
3021
|
+
enums::UpdateCommand command{};
|
|
3022
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
3023
|
+
void dump_to(std::string &out) const override;
|
|
3024
|
+
#endif
|
|
3025
|
+
|
|
3026
|
+
protected:
|
|
3027
|
+
bool decode_32bit(uint32_t field_id, Proto32Bit value) override;
|
|
3028
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
3029
|
+
};
|
|
3030
|
+
#endif
|
|
3031
|
+
#ifdef USE_ZWAVE_PROXY
|
|
3032
|
+
class ZWaveProxyFrame final : public ProtoDecodableMessage {
|
|
3033
|
+
public:
|
|
3034
|
+
static constexpr uint8_t MESSAGE_TYPE = 128;
|
|
3035
|
+
static constexpr uint8_t ESTIMATED_SIZE = 19;
|
|
3036
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
3037
|
+
const char *message_name() const override { return "z_wave_proxy_frame"; }
|
|
3038
|
+
#endif
|
|
3039
|
+
const uint8_t *data{nullptr};
|
|
3040
|
+
uint16_t data_len{0};
|
|
3041
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
3042
|
+
void calculate_size(ProtoSize &size) const override;
|
|
3043
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
3044
|
+
void dump_to(std::string &out) const override;
|
|
3045
|
+
#endif
|
|
3046
|
+
|
|
3047
|
+
protected:
|
|
3048
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
3049
|
+
};
|
|
3050
|
+
class ZWaveProxyRequest final : public ProtoDecodableMessage {
|
|
3051
|
+
public:
|
|
3052
|
+
static constexpr uint8_t MESSAGE_TYPE = 129;
|
|
3053
|
+
static constexpr uint8_t ESTIMATED_SIZE = 21;
|
|
3054
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
3055
|
+
const char *message_name() const override { return "z_wave_proxy_request"; }
|
|
3056
|
+
#endif
|
|
3057
|
+
enums::ZWaveProxyRequestType type{};
|
|
3058
|
+
const uint8_t *data{nullptr};
|
|
3059
|
+
uint16_t data_len{0};
|
|
3060
|
+
void encode(ProtoWriteBuffer buffer) const override;
|
|
3061
|
+
void calculate_size(ProtoSize &size) const override;
|
|
3062
|
+
#ifdef HAS_PROTO_MESSAGE_DUMP
|
|
3063
|
+
void dump_to(std::string &out) const override;
|
|
3064
|
+
#endif
|
|
3065
|
+
|
|
3066
|
+
protected:
|
|
3067
|
+
bool decode_length(uint32_t field_id, ProtoLengthDelimited value) override;
|
|
3068
|
+
bool decode_varint(uint32_t field_id, ProtoVarInt value) override;
|
|
3069
|
+
};
|
|
3070
|
+
#endif
|
|
3071
|
+
|
|
3072
|
+
} // namespace esphome::api
|