├── esphome ├── __init__.py ├── components │ ├── __init__.py │ ├── a4988 │ │ └── __init__.py │ ├── aht10 │ │ └── __init__.py │ ├── am2320 │ │ └── __init__.py │ ├── anova │ │ └── __init__.py │ ├── as7341 │ │ └── __init__.py │ ├── ballu │ │ └── __init__.py │ ├── bh1750 │ │ └── __init__.py │ ├── bme680 │ │ └── __init__.py │ ├── bmp085 │ │ └── __init__.py │ ├── bmp280 │ │ └── __init__.py │ ├── bmp3xx │ │ └── __init__.py │ ├── bmp581 │ │ └── __init__.py │ ├── ccs811 │ │ └── __init__.py │ ├── coolix │ │ └── __init__.py │ ├── cs5460a │ │ └── __init__.py │ ├── cse7761 │ │ └── __init__.py │ ├── cse7766 │ │ └── __init__.py │ ├── cwww │ │ └── __init__.py │ ├── daikin │ │ └── __init__.py │ ├── dht12 │ │ └── __init__.py │ ├── dps310 │ │ └── __init__.py │ ├── ds1307 │ │ └── __init__.py │ ├── ee895 │ │ └── __init__.py │ ├── emmeti │ │ └── __init__.py │ ├── endstop │ │ └── __init__.py │ ├── ens210 │ │ └── __init__.py │ ├── ezo │ │ └── __init__.py │ ├── fs3000 │ │ └── __init__.py │ ├── gree │ │ └── __init__.py │ ├── haier │ │ └── __init__.py │ ├── hdc1080 │ │ └── __init__.py │ ├── hlw8012 │ │ └── __init__.py │ ├── hm3301 │ │ └── __init__.py │ ├── hte501 │ │ └── __init__.py │ ├── htu21d │ │ └── __init__.py │ ├── hx711 │ │ └── __init__.py │ ├── iaqcore │ │ └── __init__.py │ ├── ili9341 │ │ ├── __init__.py │ │ └── display.py │ ├── ili9xxx │ │ └── __init__.py │ ├── ina219 │ │ └── __init__.py │ ├── ina260 │ │ └── __init__.py │ ├── ina3221 │ │ └── __init__.py │ ├── kuntze │ │ └── __init__.py │ ├── ltr390 │ │ └── __init__.py │ ├── max6675 │ │ └── __init__.py │ ├── max7219 │ │ └── __init__.py │ ├── mcp2515 │ │ └── __init__.py │ ├── mcp4725 │ │ └── __init__.py │ ├── mcp47a1 │ │ └── __init__.py │ ├── mcp9600 │ │ └── __init__.py │ ├── mcp9808 │ │ └── __init__.py │ ├── mhz19 │ │ └── __init__.py │ ├── midea │ │ └── __init__.py │ ├── mpu6050 │ │ └── __init__.py │ ├── ms5611 │ │ └── __init__.py │ ├── ntc │ │ └── __init__.py │ ├── pcd8544 │ │ └── __init__.py │ ├── pcf8563 │ │ └── __init__.py │ ├── pm1006 │ │ └── __init__.py │ ├── pmsx003 │ │ └── __init__.py │ ├── pzemac │ │ └── __init__.py │ ├── pzemdc │ │ └── __init__.py │ ├── rgb │ │ └── __init__.py │ ├── rgbct │ │ └── __init__.py │ ├── rgbw │ │ └── __init__.py │ ├── rgbww │ │ └── __init__.py │ ├── scd30 │ │ └── __init__.py │ ├── scd4x │ │ └── __init__.py │ ├── sdp3x │ │ └── __init__.py │ ├── sds011 │ │ └── __init__.py │ ├── sen5x │ │ └── __init__.py │ ├── sgp30 │ │ └── __init__.py │ ├── sgp40 │ │ └── __init__.py │ ├── sgp4x │ │ └── __init__.py │ ├── sht3xd │ │ └── __init__.py │ ├── sht4x │ │ └── __init__.py │ ├── shtcx │ │ └── __init__.py │ ├── sm300d2 │ │ └── __init__.py │ ├── sntp │ │ └── __init__.py │ ├── sps30 │ │ └── __init__.py │ ├── st7920 │ │ └── __init__.py │ ├── status │ │ └── __init__.py │ ├── sts3x │ │ └── __init__.py │ ├── t6615 │ │ └── __init__.py │ ├── tcl112 │ │ └── __init__.py │ ├── tee501 │ │ └── __init__.py │ ├── tm1637 │ │ └── __init__.py │ ├── tm1638 │ │ └── __init__.py │ ├── tmp117 │ │ └── __init__.py │ ├── toshiba │ │ └── __init__.py │ ├── tsl2561 │ │ └── __init__.py │ ├── tx20 │ │ └── __init__.py │ ├── uln2003 │ │ └── __init__.py │ ├── uptime │ │ └── __init__.py │ ├── vl53l0x │ │ └── __init__.py │ ├── wl_134 │ │ └── __init__.py │ ├── x9c │ │ └── __init__.py │ ├── yashima │ │ └── __init__.py │ ├── zhlt01 │ │ └── __init__.py │ ├── zyaura │ │ └── __init__.py │ ├── ac_dimmer │ │ └── __init__.py │ ├── atm90e32 │ │ └── __init__.py │ ├── b_parasite │ │ └── __init__.py │ ├── ble_presence │ │ └── __init__.py │ ├── ble_rssi │ │ └── __init__.py │ ├── ble_scanner │ │ └── __init__.py │ ├── bme280_i2c │ │ └── __init__.py │ ├── combination │ │ └── __init__.py │ ├── ct_clamp │ │ └── __init__.py │ ├── duty_cycle │ │ └── __init__.py │ ├── ektf2232 │ │ └── __init__.py │ ├── esp32_can │ │ └── __init__.py │ ├── esp32_dac │ │ └── __init__.py │ ├── esp32_hall │ │ └── __init__.py │ ├── esp8266_pwm │ │ └── __init__.py │ ├── fastled_spi │ │ └── __init__.py │ ├── heatpumpir │ │ └── __init__.py │ ├── hmc5883l │ │ └── __init__.py │ ├── kamstrup_kmp │ │ └── __init__.py │ ├── kmeteriso │ │ └── __init__.py │ ├── lcd_gpio │ │ └── __init__.py │ ├── lcd_pcf8574 │ │ └── __init__.py │ ├── max31855 │ │ └── __init__.py │ ├── max31856 │ │ └── __init__.py │ ├── max31865 │ │ └── __init__.py │ ├── max44009 │ │ └── __init__.py │ ├── max7219digit │ │ └── __init__.py │ ├── mics_4514 │ │ └── __init__.py │ ├── midea_ac │ │ ├── __init__.py │ │ └── climate.py │ ├── midea_ir │ │ └── __init__.py │ ├── mitsubishi │ │ └── __init__.py │ ├── mlx90614 │ │ └── __init__.py │ ├── mpl3115a2 │ │ └── __init__.py │ ├── neopixelbus │ │ └── __init__.py │ ├── partition │ │ ├── __init__.py │ │ └── light_partition.cpp │ ├── pcf85063 │ │ └── __init__.py │ ├── pmsa003i │ │ └── __init__.py │ ├── pulse_meter │ │ └── __init__.py │ ├── pulse_width │ │ └── __init__.py │ ├── pzem004t │ │ └── __init__.py │ ├── qmc5883l │ │ └── __init__.py │ ├── qwiic_pir │ │ └── __init__.py │ ├── resistance │ │ └── __init__.py │ ├── rp2040_pwm │ │ └── __init__.py │ ├── ruuvitag │ │ └── __init__.py │ ├── sdm_meter │ │ └── __init__.py │ ├── selec_meter │ │ └── __init__.py │ ├── sen21231 │ │ └── __init__.py │ ├── senseair │ │ └── __init__.py │ ├── slow_pwm │ │ └── __init__.py │ ├── ssd1306_i2c │ │ └── __init__.py │ ├── ssd1306_spi │ │ └── __init__.py │ ├── ssd1322_spi │ │ └── __init__.py │ ├── ssd1325_spi │ │ └── __init__.py │ ├── ssd1327_i2c │ │ └── __init__.py │ ├── ssd1327_spi │ │ └── __init__.py │ ├── ssd1331_spi │ │ └── __init__.py │ ├── ssd1351_spi │ │ └── __init__.py │ ├── tcs34725 │ │ └── __init__.py │ ├── thermostat │ │ └── __init__.py │ ├── time_based │ │ └── __init__.py │ ├── tof10120 │ │ └── __init__.py │ ├── veml3235 │ │ └── __init__.py │ ├── whirlpool │ │ └── __init__.py │ ├── wifi_info │ │ └── __init__.py │ ├── wifi_signal │ │ └── __init__.py │ ├── xiaomi_cgd1 │ │ └── __init__.py │ ├── xiaomi_cgdk2 │ │ └── __init__.py │ ├── xiaomi_cgg1 │ │ └── __init__.py │ ├── xiaomi_cgpr1 │ │ └── __init__.py │ ├── addressable_light │ │ └── __init__.py │ ├── atc_mithermometer │ │ └── __init__.py │ ├── binary_sensor_map │ │ └── __init__.py │ ├── climate_ir_lg │ │ └── __init__.py │ ├── color_temperature │ │ └── __init__.py │ ├── fastled_clockless │ │ └── __init__.py │ ├── fujitsu_general │ │ └── __init__.py │ ├── growatt_solar │ │ └── __init__.py │ ├── havells_solar │ │ └── __init__.py │ ├── hitachi_ac344 │ │ └── __init__.py │ ├── hrxl_maxsonar_wr │ │ └── __init__.py │ ├── kalman_combinator │ │ └── __init__.py │ ├── monochromatic │ │ └── __init__.py │ ├── pulse_counter │ │ └── __init__.py │ ├── rotary_encoder │ │ └── __init__.py │ ├── xiaomi_gcls002 │ │ └── __init__.py │ ├── xiaomi_hhccjcy01 │ │ └── __init__.py │ ├── xiaomi_hhccpot002 │ │ └── __init__.py │ ├── xiaomi_jqjcy01ym │ │ └── __init__.py │ ├── xiaomi_lywsd02 │ │ └── __init__.py │ ├── xiaomi_lywsd03mmc │ │ └── __init__.py │ ├── xiaomi_lywsdcgq │ │ └── __init__.py │ ├── xiaomi_mhoc401 │ │ └── __init__.py │ ├── xiaomi_miscale │ │ └── __init__.py │ ├── xiaomi_miscale2 │ │ ├── __init__.py │ │ └── sensor.py │ ├── xiaomi_mjyd02yla │ │ └── __init__.py │ ├── xiaomi_mue4094rt │ │ └── __init__.py │ ├── xiaomi_wx08zm │ │ └── __init__.py │ ├── zio_ultrasonic │ │ └── __init__.py │ ├── esp32_rmt_led_strip │ │ └── __init__.py │ ├── inkbird_ibsth1_mini │ │ └── __init__.py │ ├── pvvx_mithermometer │ │ └── __init__.py │ ├── total_daily_energy │ │ └── __init__.py │ ├── ade7953 │ │ ├── __init__.py │ │ └── sensor.py │ ├── ags10 │ │ └── __init__.py │ ├── am43 │ │ └── __init__.py │ ├── bl0939 │ │ └── __init__.py │ ├── bl0940 │ │ └── __init__.py │ ├── bl0942 │ │ └── __init__.py │ ├── bmi160 │ │ └── __init__.py │ ├── dht │ │ └── __init__.py │ ├── feedback │ │ └── __init__.py │ ├── gcja5 │ │ └── __init__.py │ ├── ledc │ │ └── __init__.py │ ├── mmc5603 │ │ └── __init__.py │ ├── mmc5983 │ │ └── __init__.py │ ├── ms8607 │ │ └── __init__.py │ ├── noblex │ │ └── __init__.py │ ├── pid │ │ └── __init__.py │ ├── sen0321 │ │ └── __init__.py │ ├── sfa30 │ │ └── __init__.py │ ├── smt100 │ │ └── __init__.py │ ├── a02yyuw │ │ └── __init__.py │ ├── ade7880 │ │ └── __init__.py │ ├── ade7953_i2c │ │ └── __init__.py │ ├── ade7953_spi │ │ └── __init__.py │ ├── alpha3 │ │ └── __init__.py │ ├── am2315c │ │ └── __init__.py │ ├── bang_bang │ │ └── __init__.py │ ├── bme280_spi │ │ └── __init__.py │ ├── daikin_arc │ │ └── __init__.py │ ├── daikin_brc │ │ └── __init__.py │ ├── delonghi │ │ └── __init__.py │ ├── duty_time │ │ └── __init__.py │ ├── ens160 │ │ └── __init__.py │ ├── ft63x6 │ │ └── __init__.py │ ├── he60r │ │ └── __init__.py │ ├── hyt271 │ │ └── __init__.py │ ├── inkplate6 │ │ └── __init__.py │ ├── jsn_sr04t │ │ └── __init__.py │ ├── max9611 │ │ └── __init__.py │ ├── md5 │ │ └── __init__.py │ ├── mpu6886 │ │ └── __init__.py │ ├── pmwcs3 │ │ └── __init__.py │ ├── qmp6988 │ │ └── __init__.py │ ├── restart │ │ └── __init__.py │ ├── st7567_i2c │ │ └── __init__.py │ ├── st7567_spi │ │ └── __init__.py │ ├── st7701s │ │ └── __init__.py │ ├── tm1621 │ │ └── __init__.py │ ├── tmp1075 │ │ └── __init__.py │ ├── tsl2591 │ │ └── __init__.py │ ├── ufire_ec │ │ └── __init__.py │ ├── ufire_ise │ │ └── __init__.py │ ├── veml7700 │ │ └── __init__.py │ ├── version │ │ └── __init__.py │ ├── whynter │ │ └── __init__.py │ ├── xgzp68xx │ │ └── __init__.py │ ├── a01nyub │ │ └── __init__.py │ ├── analog_threshold │ │ └── __init__.py │ ├── atm90e26 │ │ └── __init__.py │ ├── bme280_base │ │ └── __init__.py │ ├── current_based │ │ └── __init__.py │ ├── htu31d │ │ └── __init__.py │ ├── integration │ │ └── __init__.py │ ├── libretiny_pwm │ │ └── __init__.py │ ├── mlx90393 │ │ └── __init__.py │ ├── mopeka_pro_check │ │ └── __init__.py │ ├── qspi_amoled │ │ └── __init__.py │ ├── radon_eye_rd200 │ │ └── __init__.py │ ├── rpi_dpi_rgb │ │ └── __init__.py │ ├── ultrasonic │ │ └── __init__.py │ ├── xiaomi_mhoc303 │ │ └── __init__.py │ ├── absolute_humidity │ │ └── __init__.py │ ├── airthings_wave_mini │ │ └── __init__.py │ ├── ethernet_info │ │ └── __init__.py │ ├── hitachi_ac424 │ │ └── __init__.py │ ├── honeywellabp │ │ └── __init__.py │ ├── ina226 │ │ └── __init__.py │ ├── internal_temperature │ │ └── __init__.py │ ├── rp2040_pio_led_strip │ │ └── __init__.py │ ├── sigma_delta_output │ │ └── __init__.py │ ├── sonoff_d1 │ │ └── __init__.py │ ├── wake_on_lan │ │ └── __init__.py │ ├── waveshare_epaper │ │ └── __init__.py │ ├── airthings_wave_plus │ │ └── __init__.py │ ├── mopeka_std_check │ │ └── __init__.py │ ├── shelly_dimmer │ │ └── __init__.py │ ├── shutdown │ │ └── __init__.py │ ├── spi_led_strip │ │ └── __init__.py │ ├── honeywellabp2_i2c │ │ └── __init__.py │ ├── speed │ │ └── __init__.py │ ├── binary │ │ └── __init__.py │ ├── custom │ │ └── __init__.py │ ├── hbridge │ │ └── __init__.py │ ├── st7735 │ │ └── __init__.py │ ├── st7789v │ │ └── __init__.py │ ├── honeywell_hih_i2c │ │ └── __init__.py │ ├── template │ │ └── __init__.py │ ├── host │ │ └── const.py │ ├── lilygo_t5_47 │ │ └── __init__.py │ ├── mqtt_subscribe │ │ └── __init__.py │ ├── copy │ │ └── __init__.py │ ├── gpio │ │ └── __init__.py │ ├── tt21100 │ │ └── __init__.py │ ├── safe_mode │ │ └── __init__.py │ ├── cst226 │ │ └── __init__.py │ ├── cst816 │ │ └── __init__.py │ ├── factory_reset │ │ └── __init__.py │ ├── ft5x06 │ │ └── __init__.py │ ├── gt911 │ │ └── __init__.py │ ├── rp2040 │ │ └── const.py │ ├── xpt2046 │ │ └── __init__.py │ ├── voltage_sampler │ │ └── __init__.py │ ├── nfc │ │ ├── nfc_tag.cpp │ │ └── automation.cpp │ ├── key_provider │ │ └── __init__.py │ ├── esp32 │ │ └── preferences.h │ ├── libretiny │ │ ├── core.h │ │ └── preferences.h │ ├── resistance_sampler │ │ └── __init__.py │ ├── ld2410 │ │ └── button │ │ │ ├── query_button.cpp │ │ │ ├── reset_button.cpp │ │ │ └── restart_button.cpp │ ├── number │ │ └── number_traits.cpp │ ├── output │ │ └── automation.cpp │ ├── sensor │ │ └── automation.cpp │ ├── switch │ │ └── automation.cpp │ ├── emc2101 │ │ └── output │ │ │ └── emc2101_output.cpp │ └── seeed_mr24hpc1 │ │ └── button │ │ └── restart_button.cpp ├── dashboard │ ├── __init__.py │ ├── status │ │ └── __init__.py │ └── util │ │ └── __init__.py └── core │ └── macros.h ├── tests ├── dashboard │ ├── __init__.py │ ├── util │ │ └── __init__.py │ └── common.py ├── components │ ├── debug │ │ ├── test.host.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── datetime │ │ └── date.all.yaml │ ├── htu31d │ │ ├── test.esp32.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── common.yaml │ ├── xiaomi_ble │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── esp32_ble │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── adc │ │ ├── test.rp2040.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-s2.yaml │ │ └── test.esp32-s3.yaml │ ├── uptime │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── esp32_hall │ │ ├── test.esp32.yaml │ │ └── test.esp32-idf.yaml │ ├── version │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── esp32_dac │ │ ├── test.esp32.yaml │ │ └── test.esp32-idf.yaml │ ├── captive_portal │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── duty_cycle │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── esp32_ble_server │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── factory_reset │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── network │ │ ├── test.esp32.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── ble_scanner │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── esp32_ble_beacon │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── uponor_smatrix │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── veml7700 │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── ble_client │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── kamstrup_kmp │ │ ├── test.esp32.yaml │ │ ├── test.esp32-idf.yaml │ │ └── test.esp8266.yaml │ ├── esp32_ble_client │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── logger │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── seeed_mr24hpc1 │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── web_server │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── emmeti │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-idf.yaml │ ├── x9c │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── button │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── coolix │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── whynter │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── yashima │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── zhlt01 │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── delonghi │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── ac_dimmer │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.rp2040.yaml │ ├── climate_ir_lg │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── daikin_brc │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── gree │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── whirlpool │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── qwiic_pir │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── wifi │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── ade7880 │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── ds1307 │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── esp8266_pwm │ │ └── test.esp8266.yaml │ ├── fujitsu_general │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── wifi_signal │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── ultrasonic │ │ ├── test.esp32.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── ezo │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── xiaomi_mue4094rt │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── fs3000 │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── zio_ultrasonic │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── bh1750 │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── external_components │ │ ├── test.esp32.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── wl_134 │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── aht10 │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── am2320 │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── wake_on_lan │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.rp2040.yaml │ ├── am2315c │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── deep_sleep │ │ └── test.esp8266.yaml │ ├── color │ │ ├── test.esp32.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── cap1188 │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── ct_clamp │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── ledc │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── ads1115 │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── ags10 │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── ili9xxx │ │ └── test.esp32.yaml │ ├── zyaura │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── dallas │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32-idf.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ └── test.esp32-c3-idf.yaml │ ├── dht12 │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── dps310 │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── vl53l0x │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── anova │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── ens210 │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── gps │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.rp2040.yaml │ ├── xiaomi_miscale │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── ccs811 │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── xiaomi_hhccpot002 │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── xiaomi_miscale copy │ │ ├── test.esp32.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ ├── test.esp32-c3.yaml │ │ └── test.esp32-idf.yaml │ ├── gpio │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ ├── xgzp68xx │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ ├── test.rp2040.yaml │ │ ├── test.esp32-c3-idf.yaml │ │ └── test.esp32-idf.yaml │ └── dht │ │ ├── test.esp32-c3.yaml │ │ ├── test.esp32.yaml │ │ ├── test.esp8266.yaml │ │ └── test.rp2040.yaml ├── unit_tests │ └── fixtures │ │ ├── helpers │ │ ├── file-a.txt │ │ ├── file-c.txt │ │ ├── file-b_1.txt │ │ └── file-b_2.txt │ │ └── yaml_util │ │ ├── includes │ │ ├── list.yaml │ │ ├── scalar.yaml │ │ ├── included.yaml │ │ └── broken_included.yaml.txt │ │ └── missing_comp.yaml ├── pnglogo.png ├── test_packages │ ├── test_packages_package1.yaml │ ├── test_packages_package_wifi.yaml │ └── test_uptime_sensor.yaml ├── component_tests │ ├── deep_sleep │ │ ├── test_deep_sleep1.yaml │ │ └── test_deep_sleep2.yaml │ └── sensor │ │ └── test_sensor.yaml └── .gitignore ├── .coveragerc ├── docker └── ha-addon-rootfs │ └── etc │ ├── s6-overlay │ └── s6-rc.d │ │ ├── nginx │ │ ├── type │ │ └── dependencies.d │ │ │ ├── esphome │ │ │ └── init-nginx │ │ ├── user │ │ └── contents.d │ │ │ ├── nginx │ │ │ ├── discovery │ │ │ ├── esphome │ │ │ └── init-nginx │ │ ├── discovery │ │ ├── type │ │ ├── dependencies.d │ │ │ ├── esphome │ │ │ └── nginx │ │ └── up │ │ ├── esphome │ │ ├── dependencies.d │ │ │ └── base │ │ └── type │ │ └── init-nginx │ │ ├── type │ │ ├── dependencies.d │ │ └── base │ │ └── up │ └── nginx │ ├── includes │ ├── upstream.conf │ └── server_params.conf │ └── servers │ └── .gitkeep ├── requirements_optional.txt ├── pytest.ini ├── pyproject.toml ├── .gitattributes ├── .github └── FUNDING.yml ├── script ├── unit_test ├── component_test ├── test ├── quicklint ├── lint-cpp └── fulltest ├── requirements_dev.txt └── MANIFEST.in /esphome/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/dashboard/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/dashboard/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/dashboard/util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/a4988/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/aht10/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/am2320/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/anova/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/as7341/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ballu/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/bh1750/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/bme680/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/bmp085/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/bmp280/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/bmp3xx/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/bmp581/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ccs811/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/coolix/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/cs5460a/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/cse7761/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/cse7766/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/cwww/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/daikin/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/dht12/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/dps310/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ds1307/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ee895/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/emmeti/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/endstop/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ens210/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ezo/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/fs3000/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/gree/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/haier/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/hdc1080/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/hlw8012/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/hm3301/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/hte501/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/htu21d/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/hx711/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/iaqcore/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ili9341/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ili9xxx/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ina219/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ina260/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ina3221/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/kuntze/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ltr390/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/max6675/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/max7219/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mcp2515/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mcp4725/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mcp47a1/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mcp9600/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mcp9808/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mhz19/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/midea/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mpu6050/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ms5611/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ntc/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pcd8544/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pcf8563/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pm1006/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pmsx003/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pzemac/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pzemdc/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/rgb/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/rgbct/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/rgbw/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/rgbww/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/scd30/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/scd4x/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sdp3x/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sds011/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sen5x/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sgp30/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sgp40/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sgp4x/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sht3xd/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sht4x/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/shtcx/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sm300d2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sntp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sps30/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/st7920/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/status/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sts3x/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/t6615/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tcl112/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tee501/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tm1637/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tm1638/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tmp117/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/toshiba/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tsl2561/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tx20/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/uln2003/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/uptime/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/vl53l0x/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/wl_134/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/x9c/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/yashima/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/zhlt01/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/zyaura/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/dashboard/status/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/dashboard/util/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ac_dimmer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/atm90e32/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/b_parasite/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ble_presence/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ble_rssi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ble_scanner/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/bme280_i2c/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/combination/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ct_clamp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/duty_cycle/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ektf2232/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/esp32_can/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/esp32_dac/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/esp32_hall/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/esp8266_pwm/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/fastled_spi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/heatpumpir/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/hmc5883l/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/kamstrup_kmp/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/kmeteriso/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/lcd_gpio/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/lcd_pcf8574/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/max31855/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/max31856/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/max31865/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/max44009/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/max7219digit/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mics_4514/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/midea_ac/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/midea_ir/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mitsubishi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mlx90614/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/mpl3115a2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/neopixelbus/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/partition/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pcf85063/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pmsa003i/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pulse_meter/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pulse_width/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pzem004t/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/qmc5883l/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/qwiic_pir/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/resistance/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/rp2040_pwm/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ruuvitag/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sdm_meter/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/selec_meter/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/sen21231/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/senseair/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/slow_pwm/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ssd1306_i2c/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ssd1306_spi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ssd1322_spi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ssd1325_spi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ssd1327_i2c/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ssd1327_spi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ssd1331_spi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ssd1351_spi/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tcs34725/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/thermostat/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/time_based/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/tof10120/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/veml3235/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/whirlpool/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/wifi_info/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/wifi_signal/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_cgd1/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_cgdk2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_cgg1/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_cgpr1/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/addressable_light/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/atc_mithermometer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/binary_sensor_map/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/climate_ir_lg/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/color_temperature/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/fastled_clockless/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/fujitsu_general/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/growatt_solar/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/havells_solar/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/hitachi_ac344/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/hrxl_maxsonar_wr/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/kalman_combinator/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/monochromatic/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pulse_counter/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/rotary_encoder/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_gcls002/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_hhccjcy01/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_hhccpot002/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_jqjcy01ym/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_lywsd02/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_lywsd03mmc/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_lywsdcgq/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_mhoc401/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_miscale/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_miscale2/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_mjyd02yla/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_mue4094rt/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_wx08zm/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/zio_ultrasonic/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/components/debug/test.host.yaml: -------------------------------------------------------------------------------- 1 | debug: 2 | -------------------------------------------------------------------------------- /.coveragerc: -------------------------------------------------------------------------------- 1 | [run] 2 | omit = esphome/components/* 3 | -------------------------------------------------------------------------------- /esphome/components/esp32_rmt_led_strip/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/inkbird_ibsth1_mini/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/pvvx_mithermometer/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/total_daily_energy/__init__.py: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /tests/components/datetime/date.all.yaml: -------------------------------------------------------------------------------- 1 | datetime: 2 | -------------------------------------------------------------------------------- /tests/components/debug/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | debug: 2 | -------------------------------------------------------------------------------- /tests/components/debug/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | debug: 2 | -------------------------------------------------------------------------------- /tests/components/debug/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | debug: 2 | -------------------------------------------------------------------------------- /tests/components/debug/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | debug: 2 | -------------------------------------------------------------------------------- /tests/components/debug/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | debug: 2 | -------------------------------------------------------------------------------- /tests/components/debug/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | debug: 2 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/nginx/type: -------------------------------------------------------------------------------- 1 | longrun 2 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/nginx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/ade7953/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@angelnu"] 2 | -------------------------------------------------------------------------------- /esphome/components/ags10/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@mak-42"] 2 | -------------------------------------------------------------------------------- /esphome/components/am43/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@buxtronix"] 2 | -------------------------------------------------------------------------------- /esphome/components/bl0939/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@ziceva"] 2 | -------------------------------------------------------------------------------- /esphome/components/bl0940/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@tobias-"] 2 | -------------------------------------------------------------------------------- /esphome/components/bl0942/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@dbuezas"] 2 | -------------------------------------------------------------------------------- /esphome/components/bmi160/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@flaviut"] 2 | -------------------------------------------------------------------------------- /esphome/components/dht/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@OttoWinter"] 2 | -------------------------------------------------------------------------------- /esphome/components/feedback/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@ianchi"] 2 | -------------------------------------------------------------------------------- /esphome/components/gcja5/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@gcormier"] 2 | -------------------------------------------------------------------------------- /esphome/components/ledc/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@OttoWinter"] 2 | -------------------------------------------------------------------------------- /esphome/components/mmc5603/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@benhoff"] 2 | -------------------------------------------------------------------------------- /esphome/components/mmc5983/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@agoode"] 2 | -------------------------------------------------------------------------------- /esphome/components/ms8607/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@e28eta"] 2 | -------------------------------------------------------------------------------- /esphome/components/noblex/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@AGalfra"] 2 | -------------------------------------------------------------------------------- /esphome/components/pid/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@OttoWinter"] 2 | -------------------------------------------------------------------------------- /esphome/components/sen0321/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@notjj"] 2 | -------------------------------------------------------------------------------- /esphome/components/sfa30/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@ghsensdev"] 2 | -------------------------------------------------------------------------------- /esphome/components/smt100/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@piechade"] 2 | -------------------------------------------------------------------------------- /requirements_optional.txt: -------------------------------------------------------------------------------- 1 | pillow==10.2.0 2 | cairosvg==2.7.1 3 | -------------------------------------------------------------------------------- /tests/components/htu31d/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | <<: !include common.yaml 2 | -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/helpers/file-a.txt: -------------------------------------------------------------------------------- 1 | A files are unique. 2 | -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/helpers/file-c.txt: -------------------------------------------------------------------------------- 1 | C files are unique. 2 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/discovery/type: -------------------------------------------------------------------------------- 1 | oneshot 2 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/esphome/dependencies.d/base: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/esphome/type: -------------------------------------------------------------------------------- 1 | longrun 2 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/init-nginx/type: -------------------------------------------------------------------------------- 1 | oneshot 2 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/discovery: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/esphome: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/user/contents.d/init-nginx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/a02yyuw/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@TH-Braemer"] 2 | -------------------------------------------------------------------------------- /esphome/components/ade7880/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@kpfleming"] 2 | -------------------------------------------------------------------------------- /esphome/components/ade7953_i2c/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@angelnu"] 2 | -------------------------------------------------------------------------------- /esphome/components/ade7953_spi/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@angelnu"] 2 | -------------------------------------------------------------------------------- /esphome/components/alpha3/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@jan-hofmeier"] 2 | -------------------------------------------------------------------------------- /esphome/components/am2315c/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@swoboda1337"] 2 | -------------------------------------------------------------------------------- /esphome/components/bang_bang/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@OttoWinter"] 2 | -------------------------------------------------------------------------------- /esphome/components/bme280_spi/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@apbodrov"] 2 | -------------------------------------------------------------------------------- /esphome/components/daikin_arc/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@MagicBear"] 2 | -------------------------------------------------------------------------------- /esphome/components/daikin_brc/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@hagak"] 2 | -------------------------------------------------------------------------------- /esphome/components/delonghi/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@grob6000"] 2 | -------------------------------------------------------------------------------- /esphome/components/duty_time/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@dudanov"] 2 | -------------------------------------------------------------------------------- /esphome/components/ens160/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@vincentscode"] 2 | -------------------------------------------------------------------------------- /esphome/components/ft63x6/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@gpambrozio"] 2 | -------------------------------------------------------------------------------- /esphome/components/he60r/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@clydebarrow"] 2 | -------------------------------------------------------------------------------- /esphome/components/hyt271/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@Philippe12"] 2 | -------------------------------------------------------------------------------- /esphome/components/inkplate6/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@jesserockz"] 2 | -------------------------------------------------------------------------------- /esphome/components/jsn_sr04t/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@Mafus1"] 2 | -------------------------------------------------------------------------------- /esphome/components/max9611/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@mckaymatthew"] 2 | -------------------------------------------------------------------------------- /esphome/components/md5/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@esphome/core"] 2 | -------------------------------------------------------------------------------- /esphome/components/mpu6886/__init__.py: -------------------------------------------------------------------------------- 1 | """Support for MPC-6886.""" 2 | -------------------------------------------------------------------------------- /esphome/components/pmwcs3/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@SeByDocKy"] 2 | -------------------------------------------------------------------------------- /esphome/components/qmp6988/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@andrewpc"] 2 | -------------------------------------------------------------------------------- /esphome/components/restart/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@esphome/core"] 2 | -------------------------------------------------------------------------------- /esphome/components/st7567_i2c/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@latonita"] 2 | -------------------------------------------------------------------------------- /esphome/components/st7567_spi/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@latonita"] 2 | -------------------------------------------------------------------------------- /esphome/components/st7701s/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@clydebarrow"] 2 | -------------------------------------------------------------------------------- /esphome/components/tm1621/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@Philippe12"] 2 | -------------------------------------------------------------------------------- /esphome/components/tmp1075/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@sybrenstuvel"] 2 | -------------------------------------------------------------------------------- /esphome/components/tsl2591/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@wjcarpenter"] 2 | -------------------------------------------------------------------------------- /esphome/components/ufire_ec/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@pvizeli"] 2 | -------------------------------------------------------------------------------- /esphome/components/ufire_ise/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@pvizeli"] 2 | -------------------------------------------------------------------------------- /esphome/components/veml7700/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@latonita"] 2 | -------------------------------------------------------------------------------- /esphome/components/version/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@esphome/core"] 2 | -------------------------------------------------------------------------------- /esphome/components/whynter/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@aeonsablaze"] 2 | -------------------------------------------------------------------------------- /esphome/components/xgzp68xx/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@gcormier"] 2 | -------------------------------------------------------------------------------- /tests/components/htu31d/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | <<: !include common.yaml 2 | -------------------------------------------------------------------------------- /tests/components/htu31d/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | <<: !include common.yaml 2 | -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/helpers/file-b_1.txt: -------------------------------------------------------------------------------- 1 | All b files match. 2 | -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/helpers/file-b_2.txt: -------------------------------------------------------------------------------- 1 | All b files match. 2 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/discovery/dependencies.d/esphome: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/discovery/dependencies.d/nginx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/init-nginx/dependencies.d/base: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies.d/esphome: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/nginx/dependencies.d/init-nginx: -------------------------------------------------------------------------------- 1 | -------------------------------------------------------------------------------- /esphome/components/a01nyub/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@MrSuicideParrot"] 2 | -------------------------------------------------------------------------------- /esphome/components/analog_threshold/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@ianchi"] 2 | -------------------------------------------------------------------------------- /esphome/components/atm90e26/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@danieltwagner"] 2 | -------------------------------------------------------------------------------- /esphome/components/bme280_base/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@esphome/core"] 2 | -------------------------------------------------------------------------------- /esphome/components/current_based/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@djwmarcx"] 2 | -------------------------------------------------------------------------------- /esphome/components/htu31d/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@betterengineering"] 2 | -------------------------------------------------------------------------------- /esphome/components/integration/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@OttoWinter"] 2 | -------------------------------------------------------------------------------- /esphome/components/libretiny_pwm/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@kuba2k2"] 2 | -------------------------------------------------------------------------------- /esphome/components/mlx90393/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@functionpointer"] 2 | -------------------------------------------------------------------------------- /esphome/components/mopeka_pro_check/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@spbrogan"] 2 | -------------------------------------------------------------------------------- /esphome/components/qspi_amoled/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@clydebarrow"] 2 | -------------------------------------------------------------------------------- /esphome/components/radon_eye_rd200/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@jeffeb3"] 2 | -------------------------------------------------------------------------------- /esphome/components/rpi_dpi_rgb/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@clydebarrow"] 2 | -------------------------------------------------------------------------------- /esphome/components/ultrasonic/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@OttoWinter"] 2 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_mhoc303/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@drug123"] 2 | -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/yaml_util/includes/list.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | - ${var1} 3 | -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/yaml_util/includes/scalar.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | ${var1} 3 | -------------------------------------------------------------------------------- /esphome/components/absolute_humidity/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@DAVe3283"] 2 | -------------------------------------------------------------------------------- /esphome/components/airthings_wave_mini/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@ncareau"] 2 | -------------------------------------------------------------------------------- /esphome/components/ethernet_info/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@gtjadsonsantos"] 2 | -------------------------------------------------------------------------------- /esphome/components/hitachi_ac424/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@sourabhjaiswal"] 2 | -------------------------------------------------------------------------------- /esphome/components/honeywellabp/__init__.py: -------------------------------------------------------------------------------- 1 | """Support for Honeywell ABP""" 2 | -------------------------------------------------------------------------------- /esphome/components/ina226/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@Sergio303", "@latonita"] 2 | -------------------------------------------------------------------------------- /esphome/components/internal_temperature/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@Mat931"] 2 | -------------------------------------------------------------------------------- /esphome/components/rp2040_pio_led_strip/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@Papa-DMan"] 2 | -------------------------------------------------------------------------------- /esphome/components/sigma_delta_output/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@Cat-Ion"] 2 | -------------------------------------------------------------------------------- /esphome/components/sonoff_d1/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@anatoly-savchenkov"] 2 | -------------------------------------------------------------------------------- /esphome/components/wake_on_lan/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@willwill2will54"] 2 | -------------------------------------------------------------------------------- /esphome/components/waveshare_epaper/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@clydebarrow"] 2 | -------------------------------------------------------------------------------- /pytest.ini: -------------------------------------------------------------------------------- 1 | [pytest] 2 | addopts = 3 | --cov=esphome 4 | --cov-branch 5 | -------------------------------------------------------------------------------- /esphome/components/airthings_wave_plus/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@jeromelaban"] 2 | -------------------------------------------------------------------------------- /esphome/components/mopeka_std_check/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@Fabian-Schmidt"] 2 | -------------------------------------------------------------------------------- /esphome/components/shelly_dimmer/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@rnauber", "@edge90"] 2 | -------------------------------------------------------------------------------- /esphome/components/shutdown/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@esphome/core", "@jsuanet"] 2 | -------------------------------------------------------------------------------- /tests/components/xiaomi_ble/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | xiaomi_ble: 4 | -------------------------------------------------------------------------------- /tests/pnglogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/RaymiiOrg/esphome/dev/tests/pnglogo.png -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/yaml_util/includes/included.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | ssid: ${name} 3 | -------------------------------------------------------------------------------- /tests/components/esp32_ble/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble: 2 | io_capability: keyboard_only 3 | -------------------------------------------------------------------------------- /tests/components/xiaomi_ble/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | xiaomi_ble: 4 | -------------------------------------------------------------------------------- /tests/components/xiaomi_ble/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | xiaomi_ble: 4 | -------------------------------------------------------------------------------- /pyproject.toml: -------------------------------------------------------------------------------- 1 | [tool.black] 2 | target-version = ["py39", "py310"] 3 | exclude = 'generated' 4 | -------------------------------------------------------------------------------- /tests/components/esp32_ble/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble: 2 | io_capability: keyboard_only 3 | -------------------------------------------------------------------------------- /tests/components/esp32_ble/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble: 2 | io_capability: keyboard_only 3 | -------------------------------------------------------------------------------- /tests/components/xiaomi_ble/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | xiaomi_ble: 4 | -------------------------------------------------------------------------------- /.gitattributes: -------------------------------------------------------------------------------- 1 | # Normalize line endings to LF in the repository 2 | * text eol=lf 3 | *.png binary 4 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/discovery/up: -------------------------------------------------------------------------------- 1 | /etc/s6-overlay/s6-rc.d/discovery/run 2 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/s6-overlay/s6-rc.d/init-nginx/up: -------------------------------------------------------------------------------- 1 | /etc/s6-overlay/s6-rc.d/init-nginx/run 2 | -------------------------------------------------------------------------------- /tests/components/esp32_ble/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble: 2 | io_capability: keyboard_only 3 | -------------------------------------------------------------------------------- /esphome/components/spi_led_strip/__init__.py: -------------------------------------------------------------------------------- 1 | CODEOWNERS = ["@clydebarrow"] 2 | DEPENDENCIES = ["spi"] 3 | -------------------------------------------------------------------------------- /tests/components/adc/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | pin: VCC 4 | name: VSYS 5 | -------------------------------------------------------------------------------- /tests/components/uptime/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: uptime 3 | name: Uptime Sensor 4 | -------------------------------------------------------------------------------- /tests/components/uptime/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: uptime 3 | name: Uptime Sensor 4 | -------------------------------------------------------------------------------- /tests/components/uptime/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: uptime 3 | name: Uptime Sensor 4 | -------------------------------------------------------------------------------- /tests/components/uptime/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: uptime 3 | name: Uptime Sensor 4 | -------------------------------------------------------------------------------- /tests/components/uptime/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: uptime 3 | name: Uptime Sensor 4 | -------------------------------------------------------------------------------- /tests/components/adc/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: my_sensor 4 | pin: VCC 5 | -------------------------------------------------------------------------------- /tests/components/uptime/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: uptime 3 | name: Uptime Sensor 4 | -------------------------------------------------------------------------------- /tests/components/esp32_hall/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: esp32_hall 3 | name: ESP32 Hall Sensor 4 | -------------------------------------------------------------------------------- /tests/components/version/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | text_sensor: 2 | - platform: version 3 | name: "ESPHome Version" 4 | -------------------------------------------------------------------------------- /tests/components/version/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | text_sensor: 2 | - platform: version 3 | name: "ESPHome Version" 4 | -------------------------------------------------------------------------------- /tests/components/version/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | text_sensor: 2 | - platform: version 3 | name: "ESPHome Version" 4 | -------------------------------------------------------------------------------- /tests/components/version/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | text_sensor: 2 | - platform: version 3 | name: "ESPHome Version" 4 | -------------------------------------------------------------------------------- /tests/test_packages/test_packages_package1.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | sensor: 3 | - <<: !include ./test_uptime_sensor.yaml 4 | -------------------------------------------------------------------------------- /.github/FUNDING.yml: -------------------------------------------------------------------------------- 1 | --- 2 | # These are supported funding model platforms 3 | 4 | custom: https://www.nabucasa.com 5 | -------------------------------------------------------------------------------- /esphome/components/honeywellabp2_i2c/__init__.py: -------------------------------------------------------------------------------- 1 | """Support for Honeywell ABP2""" 2 | 3 | CODEOWNERS = ["@jpfaff"] 4 | -------------------------------------------------------------------------------- /esphome/components/speed/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | speed_ns = cg.esphome_ns.namespace("speed") 4 | -------------------------------------------------------------------------------- /tests/components/esp32_dac/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: esp32_dac 3 | id: dac_output 4 | pin: 25 5 | -------------------------------------------------------------------------------- /tests/components/esp32_hall/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: esp32_hall 3 | name: ESP32 Hall Sensor 4 | -------------------------------------------------------------------------------- /tests/components/version/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | text_sensor: 2 | - platform: version 3 | name: "ESPHome Version" 4 | -------------------------------------------------------------------------------- /tests/components/version/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | text_sensor: 2 | - platform: version 3 | name: "ESPHome Version" 4 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/nginx/includes/upstream.conf: -------------------------------------------------------------------------------- 1 | upstream esphome { 2 | server unix:/var/run/esphome.sock; 3 | } 4 | -------------------------------------------------------------------------------- /esphome/components/binary/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | binary_ns = cg.esphome_ns.namespace("binary") 4 | -------------------------------------------------------------------------------- /esphome/components/custom/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | custom_ns = cg.esphome_ns.namespace("custom") 4 | -------------------------------------------------------------------------------- /esphome/components/hbridge/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | hbridge_ns = cg.esphome_ns.namespace("hbridge") 4 | -------------------------------------------------------------------------------- /esphome/components/st7735/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | st7735_ns = cg.esphome_ns.namespace("st7735") 4 | -------------------------------------------------------------------------------- /esphome/components/st7789v/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | st7789v_ns = cg.esphome_ns.namespace("st7789v") 4 | -------------------------------------------------------------------------------- /tests/components/captive_portal/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | captive_portal: 6 | -------------------------------------------------------------------------------- /tests/components/esp32_dac/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: esp32_dac 3 | id: dac_output 4 | pin: 25 5 | -------------------------------------------------------------------------------- /esphome/components/honeywell_hih_i2c/__init__.py: -------------------------------------------------------------------------------- 1 | """Support for Honeywell HumidIcon HIH""" 2 | 3 | CODEOWNERS = ["@Benichou34"] 4 | -------------------------------------------------------------------------------- /esphome/components/template/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | template_ns = cg.esphome_ns.namespace("template_") 4 | -------------------------------------------------------------------------------- /tests/components/captive_portal/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | captive_portal: 6 | -------------------------------------------------------------------------------- /tests/components/captive_portal/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | captive_portal: 6 | -------------------------------------------------------------------------------- /tests/components/captive_portal/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | captive_portal: 6 | -------------------------------------------------------------------------------- /tests/components/duty_cycle/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: duty_cycle 3 | pin: 4 4 | name: Duty Cycle Sensor 5 | -------------------------------------------------------------------------------- /tests/components/duty_cycle/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: duty_cycle 3 | pin: 4 4 | name: Duty Cycle Sensor 5 | -------------------------------------------------------------------------------- /tests/components/duty_cycle/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: duty_cycle 3 | pin: 4 4 | name: Duty Cycle Sensor 5 | -------------------------------------------------------------------------------- /tests/components/adc/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: my_sensor 4 | pin: 4 5 | attenuation: 11db 6 | -------------------------------------------------------------------------------- /tests/components/adc/test.esp32-s2.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: my_sensor 4 | pin: 1 5 | attenuation: 11db 6 | -------------------------------------------------------------------------------- /tests/components/adc/test.esp32-s3.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: my_sensor 4 | pin: 1 5 | attenuation: 11db 6 | -------------------------------------------------------------------------------- /tests/components/captive_portal/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | captive_portal: 6 | -------------------------------------------------------------------------------- /tests/components/duty_cycle/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: duty_cycle 3 | pin: 4 4 | name: Duty Cycle Sensor 5 | -------------------------------------------------------------------------------- /tests/components/duty_cycle/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: duty_cycle 3 | pin: 4 4 | name: Duty Cycle Sensor 5 | -------------------------------------------------------------------------------- /tests/components/duty_cycle/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: duty_cycle 3 | pin: 4 4 | name: Duty Cycle Sensor 5 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_server/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_server: 2 | id: ble 3 | manufacturer_data: [0x72, 0x4, 0x00, 0x23] 4 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_server/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_server: 2 | id: ble 3 | manufacturer_data: [0x72, 0x4, 0x00, 0x23] 4 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_server/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_server: 2 | id: ble 3 | manufacturer_data: [0x72, 0x4, 0x00, 0x23] 4 | -------------------------------------------------------------------------------- /tests/components/factory_reset/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: factory_reset 3 | name: Reset to Factory Default Settings 4 | -------------------------------------------------------------------------------- /tests/components/network/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | network: 6 | enable_ipv6: true 7 | -------------------------------------------------------------------------------- /tests/components/network/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | network: 6 | enable_ipv6: true 7 | -------------------------------------------------------------------------------- /esphome/components/host/const.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | KEY_HOST = "host" 4 | 5 | host_ns = cg.esphome_ns.namespace("host") 6 | -------------------------------------------------------------------------------- /esphome/components/lilygo_t5_47/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | lilygo_t5_47_ns = cg.esphome_ns.namespace("lilygo_t5_47") 4 | -------------------------------------------------------------------------------- /tests/components/ble_scanner/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | text_sensor: 4 | - platform: ble_scanner 5 | name: Scanner 6 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_beacon/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_beacon: 2 | type: iBeacon 3 | uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98' 4 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_server/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_server: 2 | id: ble 3 | manufacturer_data: [0x72, 0x4, 0x00, 0x23] 4 | -------------------------------------------------------------------------------- /tests/components/factory_reset/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: factory_reset 3 | name: Reset to Factory Default Settings 4 | -------------------------------------------------------------------------------- /tests/components/factory_reset/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: factory_reset 3 | name: Reset to Factory Default Settings 4 | -------------------------------------------------------------------------------- /tests/components/factory_reset/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: factory_reset 3 | name: Reset to Factory Default Settings 4 | -------------------------------------------------------------------------------- /tests/components/factory_reset/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: factory_reset 3 | name: Reset to Factory Default Settings 4 | -------------------------------------------------------------------------------- /tests/components/network/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | network: 6 | enable_ipv6: true 7 | -------------------------------------------------------------------------------- /tests/components/network/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | network: 6 | enable_ipv6: true 7 | -------------------------------------------------------------------------------- /tests/components/network/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | network: 6 | enable_ipv6: true 7 | -------------------------------------------------------------------------------- /tests/components/uponor_smatrix/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | tx_pin: GPIO4 3 | rx_pin: GPIO5 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/uponor_smatrix/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | tx_pin: GPIO17 3 | rx_pin: GPIO16 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/uponor_smatrix/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | tx_pin: GPIO4 3 | rx_pin: GPIO5 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/uponor_smatrix/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | tx_pin: GPIO4 3 | rx_pin: GPIO5 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/veml7700/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_veml7700 3 | scl: 5 4 | sda: 4 5 | 6 | <<: !include common.yaml 7 | -------------------------------------------------------------------------------- /tests/components/veml7700/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_veml7700 3 | scl: 16 4 | sda: 17 5 | 6 | <<: !include common.yaml 7 | -------------------------------------------------------------------------------- /tests/components/veml7700/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_veml7700 3 | scl: 5 4 | sda: 4 5 | 6 | <<: !include common.yaml 7 | -------------------------------------------------------------------------------- /tests/components/veml7700/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_veml7700 3 | scl: 5 4 | sda: 4 5 | 6 | <<: !include common.yaml 7 | -------------------------------------------------------------------------------- /script/unit_test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | set -x 8 | 9 | pytest tests/unit_tests 10 | -------------------------------------------------------------------------------- /tests/components/ble_client/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: test_blec 6 | -------------------------------------------------------------------------------- /tests/components/ble_scanner/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | text_sensor: 4 | - platform: ble_scanner 5 | name: Scanner 6 | -------------------------------------------------------------------------------- /tests/components/ble_scanner/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | text_sensor: 4 | - platform: ble_scanner 5 | name: Scanner 6 | -------------------------------------------------------------------------------- /tests/components/ble_scanner/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | text_sensor: 4 | - platform: ble_scanner 5 | name: Scanner 6 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_beacon/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_beacon: 2 | type: iBeacon 3 | uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98' 4 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_beacon/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_beacon: 2 | type: iBeacon 3 | uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98' 4 | -------------------------------------------------------------------------------- /tests/components/factory_reset/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: factory_reset 3 | name: Reset to Factory Default Settings 4 | -------------------------------------------------------------------------------- /tests/components/kamstrup_kmp/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | uart_tx_pin: GPIO1 3 | uart_rx_pin: GPIO3 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/network/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | network: 6 | enable_ipv6: true 7 | -------------------------------------------------------------------------------- /tests/components/uponor_smatrix/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | tx_pin: GPIO4 3 | rx_pin: GPIO5 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/uponor_smatrix/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | tx_pin: GPIO17 3 | rx_pin: GPIO16 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/veml7700/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_veml7700 3 | scl: 5 4 | sda: 4 5 | 6 | <<: !include common.yaml 7 | -------------------------------------------------------------------------------- /tests/components/veml7700/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_veml7700 3 | scl: 16 4 | sda: 17 5 | 6 | <<: !include common.yaml 7 | -------------------------------------------------------------------------------- /esphome/components/mqtt_subscribe/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | mqtt_subscribe_ns = cg.esphome_ns.namespace("mqtt_subscribe") 4 | -------------------------------------------------------------------------------- /requirements_dev.txt: -------------------------------------------------------------------------------- 1 | # Useful stuff when working in a development environment 2 | clang-format==13.0.1 3 | clang-tidy==14.0.6 4 | yamllint==1.35.1 5 | -------------------------------------------------------------------------------- /tests/components/ble_client/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: test_blec 6 | -------------------------------------------------------------------------------- /tests/components/ble_client/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: test_blec 6 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_beacon/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_beacon: 2 | type: iBeacon 3 | uuid: 'c29ce823-e67a-4e71-bff2-abaa32e77a98' 4 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_client/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: blec 6 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_client/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: blec 6 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_client/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: blec 6 | -------------------------------------------------------------------------------- /tests/components/kamstrup_kmp/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | uart_tx_pin: GPIO1 3 | uart_rx_pin: GPIO3 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/kamstrup_kmp/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | uart_tx_pin: GPIO1 3 | uart_rx_pin: GPIO3 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/logger/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - logger.log: Hello world 5 | 6 | logger: 7 | level: DEBUG 8 | -------------------------------------------------------------------------------- /tests/components/seeed_mr24hpc1/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | uart_tx_pin: GPIO5 3 | uart_rx_pin: GPIO4 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/web_server/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | web_server: 6 | port: 8080 7 | version: 2 8 | -------------------------------------------------------------------------------- /tests/test_packages/test_packages_package_wifi.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | wifi: 3 | networks: 4 | - ssid: "WiFiFromPackage" 5 | password: "password1" 6 | -------------------------------------------------------------------------------- /esphome/components/copy/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@OttoWinter"] 4 | 5 | copy_ns = cg.esphome_ns.namespace("copy") 6 | -------------------------------------------------------------------------------- /esphome/components/gpio/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@esphome/core"] 4 | gpio_ns = cg.esphome_ns.namespace("gpio") 5 | -------------------------------------------------------------------------------- /script/component_test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | set -x 8 | 9 | pytest tests/component_tests 10 | -------------------------------------------------------------------------------- /tests/components/ble_client/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: test_blec 6 | -------------------------------------------------------------------------------- /tests/components/esp32_ble_client/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: blec 6 | -------------------------------------------------------------------------------- /tests/components/logger/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - logger.log: Hello world 5 | 6 | logger: 7 | level: DEBUG 8 | -------------------------------------------------------------------------------- /tests/components/logger/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - logger.log: Hello world 5 | 6 | logger: 7 | level: DEBUG 8 | -------------------------------------------------------------------------------- /tests/components/logger/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - logger.log: Hello world 5 | 6 | logger: 7 | level: DEBUG 8 | -------------------------------------------------------------------------------- /tests/components/logger/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - logger.log: Hello world 5 | 6 | logger: 7 | level: DEBUG 8 | -------------------------------------------------------------------------------- /tests/components/seeed_mr24hpc1/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | uart_tx_pin: GPIO5 3 | uart_rx_pin: GPIO4 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/web_server/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | web_server: 6 | port: 8080 7 | version: 2 8 | -------------------------------------------------------------------------------- /tests/components/web_server/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | web_server: 6 | port: 8080 7 | version: 2 8 | -------------------------------------------------------------------------------- /tests/components/web_server/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | web_server: 6 | port: 8080 7 | version: 2 8 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/nginx/servers/.gitkeep: -------------------------------------------------------------------------------- 1 | Without requirements or design, programming is the art of adding bugs to an empty text file. (Louis Srygley) 2 | -------------------------------------------------------------------------------- /esphome/components/tt21100/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@kroimon"] 4 | 5 | tt21100_ns = cg.esphome_ns.namespace("tt21100") 6 | -------------------------------------------------------------------------------- /tests/components/emmeti/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | remote_transmitter_pin: GPIO33 3 | remote_receiver_pin: GPIO32 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/emmeti/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | remote_transmitter_pin: GPIO4 3 | remote_receiver_pin: GPIO5 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /tests/components/logger/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - logger.log: Hello world 5 | 6 | logger: 7 | level: DEBUG 8 | -------------------------------------------------------------------------------- /tests/components/web_server/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | web_server: 6 | port: 8080 7 | version: 2 8 | -------------------------------------------------------------------------------- /tests/components/emmeti/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | remote_transmitter_pin: GPIO33 3 | remote_receiver_pin: GPIO32 4 | 5 | <<: !include common.yaml 6 | -------------------------------------------------------------------------------- /esphome/components/midea_ac/climate.py: -------------------------------------------------------------------------------- 1 | import esphome.config_validation as cv 2 | 3 | CONFIG_SCHEMA = cv.invalid("This platform has been renamed to midea in 2021.9") 4 | -------------------------------------------------------------------------------- /tests/components/x9c/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: x9c 3 | id: test_x9c 4 | cs_pin: 3 5 | inc_pin: 4 6 | ud_pin: 5 7 | initial_value: 0.5 8 | -------------------------------------------------------------------------------- /tests/components/x9c/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: x9c 3 | id: test_x9c 4 | cs_pin: 13 5 | inc_pin: 14 6 | ud_pin: 15 7 | initial_value: 0.5 8 | -------------------------------------------------------------------------------- /tests/components/x9c/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: x9c 3 | id: test_x9c 4 | cs_pin: 13 5 | inc_pin: 14 6 | ud_pin: 15 7 | initial_value: 0.5 8 | -------------------------------------------------------------------------------- /tests/components/x9c/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: x9c 3 | id: test_x9c 4 | cs_pin: 3 5 | inc_pin: 4 6 | ud_pin: 5 7 | initial_value: 0.5 8 | -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/yaml_util/includes/broken_included.yaml.txt: -------------------------------------------------------------------------------- 1 | --- 2 | # yamllint disable-line 3 | ssid: ${name} 4 | # yamllint disable-line 5 | fdf: error 6 | -------------------------------------------------------------------------------- /tests/components/button/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: template 3 | name: Button 4 | id: some_button 5 | on_press: 6 | - logger.log: Button pressed 7 | -------------------------------------------------------------------------------- /tests/components/button/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: template 3 | name: Button 4 | id: some_button 5 | on_press: 6 | - logger.log: Button pressed 7 | -------------------------------------------------------------------------------- /tests/components/button/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: template 3 | name: Button 4 | id: some_button 5 | on_press: 6 | - logger.log: Button pressed 7 | -------------------------------------------------------------------------------- /tests/components/button/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: template 3 | name: Button 4 | id: some_button 5 | on_press: 6 | - logger.log: Button pressed 7 | -------------------------------------------------------------------------------- /tests/components/coolix/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: coolix 7 | name: Coolix Climate 8 | -------------------------------------------------------------------------------- /tests/components/coolix/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: coolix 7 | name: Coolix Climate 8 | -------------------------------------------------------------------------------- /tests/components/coolix/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: coolix 7 | name: Coolix Climate 8 | -------------------------------------------------------------------------------- /tests/components/whynter/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whynter 7 | name: Whynter Climate 8 | -------------------------------------------------------------------------------- /tests/components/x9c/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: x9c 3 | id: test_x9c 4 | cs_pin: 3 5 | inc_pin: 4 6 | ud_pin: 5 7 | initial_value: 0.5 8 | -------------------------------------------------------------------------------- /tests/components/x9c/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: x9c 3 | id: test_x9c 4 | cs_pin: 13 5 | inc_pin: 14 6 | ud_pin: 15 7 | initial_value: 0.5 8 | -------------------------------------------------------------------------------- /tests/components/yashima/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: yashima 7 | name: Yashima Climate 8 | -------------------------------------------------------------------------------- /tests/components/zhlt01/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: zhlt01 7 | name: ZH/LT-01 Climate 8 | -------------------------------------------------------------------------------- /tests/test_packages/test_uptime_sensor.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | # Uptime sensor. 3 | platform: uptime 4 | id: ${devicename}_uptime_pcg 5 | name: Uptime From Package 6 | update_interval: 5min 7 | -------------------------------------------------------------------------------- /esphome/components/safe_mode/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@paulmonigatti", "@jsuanet"] 4 | 5 | safe_mode_ns = cg.esphome_ns.namespace("safe_mode") 6 | -------------------------------------------------------------------------------- /script/test: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | set -x 8 | 9 | for f in ./tests/test*.yaml; do 10 | esphome compile $f 11 | done 12 | -------------------------------------------------------------------------------- /tests/components/button/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: template 3 | name: Button 4 | id: some_button 5 | on_press: 6 | - logger.log: Button pressed 7 | -------------------------------------------------------------------------------- /tests/components/button/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | button: 2 | - platform: template 3 | name: Button 4 | id: some_button 5 | on_press: 6 | - logger.log: Button pressed 7 | -------------------------------------------------------------------------------- /tests/components/coolix/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: coolix 7 | name: Coolix Climate 8 | -------------------------------------------------------------------------------- /tests/components/coolix/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: coolix 7 | name: Coolix Climate 8 | -------------------------------------------------------------------------------- /tests/components/delonghi/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: delonghi 7 | name: Delonghi Climate 8 | -------------------------------------------------------------------------------- /tests/components/delonghi/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: delonghi 7 | name: Delonghi Climate 8 | -------------------------------------------------------------------------------- /tests/components/whynter/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whynter 7 | name: Whynter Climate 8 | -------------------------------------------------------------------------------- /tests/components/whynter/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whynter 7 | name: Whynter Climate 8 | -------------------------------------------------------------------------------- /tests/components/whynter/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whynter 7 | name: Whynter Climate 8 | -------------------------------------------------------------------------------- /tests/components/yashima/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: yashima 7 | name: Yashima Climate 8 | -------------------------------------------------------------------------------- /tests/components/yashima/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: yashima 7 | name: Yashima Climate 8 | -------------------------------------------------------------------------------- /tests/components/yashima/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: yashima 7 | name: Yashima Climate 8 | -------------------------------------------------------------------------------- /tests/components/zhlt01/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: zhlt01 7 | name: ZH/LT-01 Climate 8 | -------------------------------------------------------------------------------- /tests/components/zhlt01/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: zhlt01 7 | name: ZH/LT-01 Climate 8 | -------------------------------------------------------------------------------- /tests/components/zhlt01/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: zhlt01 7 | name: ZH/LT-01 Climate 8 | -------------------------------------------------------------------------------- /esphome/components/cst226/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@clydebarrow"] 4 | DEPENDENCIES = ["i2c"] 5 | 6 | cst226_ns = cg.esphome_ns.namespace("cst226") 7 | -------------------------------------------------------------------------------- /esphome/components/cst816/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@clydebarrow"] 4 | DEPENDENCIES = ["i2c"] 5 | 6 | cst816_ns = cg.esphome_ns.namespace("cst816") 7 | -------------------------------------------------------------------------------- /esphome/components/factory_reset/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@anatoly-savchenkov"] 4 | 5 | factory_reset_ns = cg.esphome_ns.namespace("factory_reset") 6 | -------------------------------------------------------------------------------- /esphome/components/ft5x06/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@clydebarrow"] 4 | DEPENDENCIES = ["i2c"] 5 | 6 | ft5x06_ns = cg.esphome_ns.namespace("ft5x06") 7 | -------------------------------------------------------------------------------- /esphome/components/ili9341/display.py: -------------------------------------------------------------------------------- 1 | import esphome.config_validation as cv 2 | 3 | CONFIG_SCHEMA = cv.invalid( 4 | "The ili9341 platform component has been renamed to ili9xxx." 5 | ) 6 | -------------------------------------------------------------------------------- /script/quicklint: -------------------------------------------------------------------------------- 1 | #!/bin/bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | set -x 8 | 9 | script/ci-custom.py -c 10 | script/lint-python -c 11 | script/lint-cpp -c 12 | -------------------------------------------------------------------------------- /tests/components/ac_dimmer/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: ac_dimmer 3 | id: ac_dimmer_1 4 | gate_pin: 5 | number: 5 6 | zero_cross_pin: 7 | number: 6 8 | -------------------------------------------------------------------------------- /tests/components/ac_dimmer/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: ac_dimmer 3 | id: ac_dimmer_1 4 | gate_pin: 5 | number: 12 6 | zero_cross_pin: 7 | number: 13 8 | -------------------------------------------------------------------------------- /tests/components/ac_dimmer/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: ac_dimmer 3 | id: ac_dimmer_1 4 | gate_pin: 5 | number: 5 6 | zero_cross_pin: 7 | number: 4 8 | -------------------------------------------------------------------------------- /tests/components/ac_dimmer/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: ac_dimmer 3 | id: ac_dimmer_1 4 | gate_pin: 5 | number: 5 6 | zero_cross_pin: 7 | number: 6 8 | -------------------------------------------------------------------------------- /tests/components/climate_ir_lg/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: climate_ir_lg 7 | name: LG Climate 8 | -------------------------------------------------------------------------------- /tests/components/climate_ir_lg/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: climate_ir_lg 7 | name: LG Climate 8 | -------------------------------------------------------------------------------- /tests/components/climate_ir_lg/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: climate_ir_lg 7 | name: LG Climate 8 | -------------------------------------------------------------------------------- /tests/components/daikin_brc/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: daikin_brc 7 | name: Daikin_brc Climate 8 | -------------------------------------------------------------------------------- /tests/components/delonghi/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: delonghi 7 | name: Delonghi Climate 8 | -------------------------------------------------------------------------------- /tests/components/delonghi/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: delonghi 7 | name: Delonghi Climate 8 | -------------------------------------------------------------------------------- /tests/components/delonghi/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: delonghi 7 | name: Delonghi Climate 8 | -------------------------------------------------------------------------------- /tests/components/gree/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: gree 7 | name: GREE 8 | model: generic 9 | -------------------------------------------------------------------------------- /tests/components/gree/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: gree 7 | name: GREE 8 | model: generic 9 | -------------------------------------------------------------------------------- /tests/components/gree/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: gree 7 | name: GREE 8 | model: generic 9 | -------------------------------------------------------------------------------- /tests/components/gree/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: gree 7 | name: GREE 8 | model: generic 9 | -------------------------------------------------------------------------------- /tests/components/whirlpool/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whirlpool 7 | name: Whirlpool Climate 8 | -------------------------------------------------------------------------------- /tests/components/whirlpool/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whirlpool 7 | name: Whirlpool Climate 8 | -------------------------------------------------------------------------------- /tests/components/whirlpool/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whirlpool 7 | name: Whirlpool Climate 8 | -------------------------------------------------------------------------------- /tests/components/whirlpool/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whirlpool 7 | name: Whirlpool Climate 8 | -------------------------------------------------------------------------------- /tests/components/whynter/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whynter 7 | name: Whynter Climate 8 | -------------------------------------------------------------------------------- /tests/components/yashima/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: yashima 7 | name: Yashima Climate 8 | -------------------------------------------------------------------------------- /tests/components/zhlt01/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: zhlt01 7 | name: ZH/LT-01 Climate 8 | -------------------------------------------------------------------------------- /script/lint-cpp: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | set -x 8 | 9 | script/clang-tidy $@ --fix --all-headers 10 | script/clang-format $@ -i 11 | -------------------------------------------------------------------------------- /tests/components/climate_ir_lg/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: climate_ir_lg 7 | name: LG Climate 8 | -------------------------------------------------------------------------------- /tests/components/climate_ir_lg/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: climate_ir_lg 7 | name: LG Climate 8 | -------------------------------------------------------------------------------- /tests/components/daikin_brc/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: daikin_brc 7 | name: Daikin_brc Climate 8 | -------------------------------------------------------------------------------- /tests/components/daikin_brc/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: daikin_brc 7 | name: Daikin_brc Climate 8 | -------------------------------------------------------------------------------- /tests/components/daikin_brc/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: daikin_brc 7 | name: Daikin_brc Climate 8 | -------------------------------------------------------------------------------- /tests/components/gree/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: gree 7 | name: GREE 8 | model: generic 9 | -------------------------------------------------------------------------------- /tests/components/qwiic_pir/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_qwiic_pir 3 | scl: 5 4 | sda: 4 5 | 6 | binary_sensor: 7 | - platform: qwiic_pir 8 | name: Qwiic PIR Motion Sensor 9 | -------------------------------------------------------------------------------- /tests/components/whirlpool/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: whirlpool 7 | name: Whirlpool Climate 8 | -------------------------------------------------------------------------------- /tests/components/wifi/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - wifi.disable 5 | - wifi.enable 6 | 7 | wifi: 8 | ssid: MySSID 9 | password: password1 10 | -------------------------------------------------------------------------------- /esphome/components/gt911/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@jesserockz", "@clydebarrow"] 4 | DEPENDENCIES = ["i2c"] 5 | 6 | gt911_ns = cg.esphome_ns.namespace("gt911") 7 | -------------------------------------------------------------------------------- /tests/components/daikin_brc/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: daikin_brc 7 | name: Daikin_brc Climate 8 | -------------------------------------------------------------------------------- /tests/components/qwiic_pir/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_qwiic_pir 3 | scl: 5 4 | sda: 4 5 | 6 | binary_sensor: 7 | - platform: qwiic_pir 8 | name: Qwiic PIR Motion Sensor 9 | -------------------------------------------------------------------------------- /tests/components/qwiic_pir/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_qwiic_pir 3 | scl: 16 4 | sda: 17 5 | 6 | binary_sensor: 7 | - platform: qwiic_pir 8 | name: Qwiic PIR Motion Sensor 9 | -------------------------------------------------------------------------------- /tests/components/qwiic_pir/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_qwiic_pir 3 | scl: 16 4 | sda: 17 5 | 6 | binary_sensor: 7 | - platform: qwiic_pir 8 | name: Qwiic PIR Motion Sensor 9 | -------------------------------------------------------------------------------- /tests/components/qwiic_pir/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_qwiic_pir 3 | scl: 5 4 | sda: 4 5 | 6 | binary_sensor: 7 | - platform: qwiic_pir 8 | name: Qwiic PIR Motion Sensor 9 | -------------------------------------------------------------------------------- /tests/components/wifi/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - wifi.disable 5 | - wifi.enable 6 | 7 | wifi: 8 | ssid: MySSID 9 | password: password1 10 | -------------------------------------------------------------------------------- /tests/components/wifi/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - wifi.disable 5 | - wifi.enable 6 | 7 | wifi: 8 | ssid: MySSID 9 | password: password1 10 | -------------------------------------------------------------------------------- /tests/components/wifi/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - wifi.disable 5 | - wifi.enable 6 | 7 | wifi: 8 | ssid: MySSID 9 | password: password1 10 | -------------------------------------------------------------------------------- /tests/components/wifi/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - wifi.disable 5 | - wifi.enable 6 | 7 | wifi: 8 | ssid: MySSID 9 | password: password1 10 | -------------------------------------------------------------------------------- /tests/components/ade7880/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | scl_pin: GPIO5 3 | sda_pin: GPIO4 4 | irq0_pin: GPIO6 5 | irq1_pin: GPIO7 6 | reset_pin: GPIO10 7 | 8 | <<: !include common.yaml 9 | -------------------------------------------------------------------------------- /tests/components/ade7880/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | scl_pin: GPIO5 3 | sda_pin: GPIO4 4 | irq0_pin: GPIO13 5 | irq1_pin: GPIO15 6 | reset_pin: GPIO16 7 | 8 | <<: !include common.yaml 9 | -------------------------------------------------------------------------------- /tests/components/ade7880/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | scl_pin: GPIO5 3 | sda_pin: GPIO4 4 | irq0_pin: GPIO13 5 | irq1_pin: GPIO15 6 | reset_pin: GPIO16 7 | 8 | <<: !include common.yaml 9 | -------------------------------------------------------------------------------- /tests/components/ade7880/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | scl_pin: GPIO5 3 | sda_pin: GPIO4 4 | irq0_pin: GPIO13 5 | irq1_pin: GPIO15 6 | reset_pin: GPIO16 7 | 8 | <<: !include common.yaml 9 | -------------------------------------------------------------------------------- /tests/components/ds1307/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ds1307 3 | scl: 16 4 | sda: 17 5 | 6 | time: 7 | - platform: ds1307 8 | id: ds1307_time 9 | update_interval: never 10 | -------------------------------------------------------------------------------- /tests/components/ds1307/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ds1307 3 | scl: 5 4 | sda: 4 5 | 6 | time: 7 | - platform: ds1307 8 | id: ds1307_time 9 | update_interval: never 10 | -------------------------------------------------------------------------------- /tests/components/ds1307/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ds1307 3 | scl: 5 4 | sda: 4 5 | 6 | time: 7 | - platform: ds1307 8 | id: ds1307_time 9 | update_interval: never 10 | -------------------------------------------------------------------------------- /tests/components/esp8266_pwm/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | output: 2 | - platform: esp8266_pwm 3 | id: out 4 | pin: 4 5 | frequency: 50Hz 6 | - platform: esp8266_pwm 7 | id: out2 8 | pin: 5 9 | -------------------------------------------------------------------------------- /tests/components/fujitsu_general/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: fujitsu_general 7 | name: Fujitsu General Climate 8 | -------------------------------------------------------------------------------- /tests/components/qwiic_pir/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_qwiic_pir 3 | scl: 5 4 | sda: 4 5 | 6 | binary_sensor: 7 | - platform: qwiic_pir 8 | name: Qwiic PIR Motion Sensor 9 | -------------------------------------------------------------------------------- /tests/components/wifi/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - wifi.disable 5 | - wifi.enable 6 | 7 | wifi: 8 | ssid: MySSID 9 | password: password1 10 | -------------------------------------------------------------------------------- /tests/components/wifi_signal/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | sensor: 6 | - platform: wifi_signal 7 | name: WiFi Signal Sensor 8 | update_interval: 15s 9 | -------------------------------------------------------------------------------- /esphome/components/ade7953/sensor.py: -------------------------------------------------------------------------------- 1 | import esphome.config_validation as cv 2 | 3 | CONFIG_SCHEMA = CONFIG_SCHEMA = cv.invalid( 4 | "The ade7953 sensor component has been renamed to ade7953_i2c." 5 | ) 6 | -------------------------------------------------------------------------------- /esphome/components/rp2040/const.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | KEY_BOARD = "board" 4 | KEY_RP2040 = "rp2040" 5 | KEY_PIO_FILES = "pio_files" 6 | 7 | rp2040_ns = cg.esphome_ns.namespace("rp2040") 8 | -------------------------------------------------------------------------------- /esphome/components/xpt2046/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.config_validation as cv 2 | 3 | CONFIG_SCHEMA = cv.invalid( 4 | "This component sould now be used as platform of the Touchscreen component." 5 | ) 6 | -------------------------------------------------------------------------------- /tests/components/ade7880/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | scl_pin: GPIO5 3 | sda_pin: GPIO4 4 | irq0_pin: GPIO6 5 | irq1_pin: GPIO7 6 | reset_pin: GPIO10 7 | 8 | <<: !include common.yaml 9 | -------------------------------------------------------------------------------- /tests/components/ade7880/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | substitutions: 2 | scl_pin: GPIO5 3 | sda_pin: GPIO4 4 | irq0_pin: GPIO13 5 | irq1_pin: GPIO15 6 | reset_pin: GPIO16 7 | 8 | <<: !include common.yaml 9 | -------------------------------------------------------------------------------- /tests/components/ds1307/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ds1307 3 | scl: 5 4 | sda: 4 5 | 6 | time: 7 | - platform: ds1307 8 | id: ds1307_time 9 | update_interval: never 10 | -------------------------------------------------------------------------------- /tests/components/ds1307/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ds1307 3 | scl: 5 4 | sda: 4 5 | 6 | time: 7 | - platform: ds1307 8 | id: ds1307_time 9 | update_interval: never 10 | -------------------------------------------------------------------------------- /tests/components/ds1307/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ds1307 3 | scl: 16 4 | sda: 17 5 | 6 | time: 7 | - platform: ds1307 8 | id: ds1307_time 9 | update_interval: never 10 | -------------------------------------------------------------------------------- /tests/components/fujitsu_general/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: fujitsu_general 7 | name: Fujitsu General Climate 8 | -------------------------------------------------------------------------------- /tests/components/fujitsu_general/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: fujitsu_general 7 | name: Fujitsu General Climate 8 | -------------------------------------------------------------------------------- /tests/components/fujitsu_general/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 5 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: fujitsu_general 7 | name: Fujitsu General Climate 8 | -------------------------------------------------------------------------------- /tests/components/ultrasonic/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: ultrasonic 3 | id: ultrasonic_sensor1 4 | name: Ultrasonic Sensor 5 | echo_pin: 4 6 | trigger_pin: 5 7 | timeout: 5.5m 8 | -------------------------------------------------------------------------------- /tests/components/ultrasonic/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: ultrasonic 3 | id: ultrasonic_sensor1 4 | name: Ultrasonic Sensor 5 | echo_pin: 4 6 | trigger_pin: 5 7 | timeout: 5.5m 8 | -------------------------------------------------------------------------------- /tests/components/wifi_signal/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | sensor: 6 | - platform: wifi_signal 7 | name: WiFi Signal Sensor 8 | update_interval: 15s 9 | -------------------------------------------------------------------------------- /tests/components/wifi_signal/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | sensor: 6 | - platform: wifi_signal 7 | name: WiFi Signal Sensor 8 | update_interval: 15s 9 | -------------------------------------------------------------------------------- /tests/components/wifi_signal/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | sensor: 6 | - platform: wifi_signal 7 | name: WiFi Signal Sensor 8 | update_interval: 15s 9 | -------------------------------------------------------------------------------- /tests/components/wifi_signal/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | sensor: 6 | - platform: wifi_signal 7 | name: WiFi Signal Sensor 8 | update_interval: 15s 9 | -------------------------------------------------------------------------------- /MANIFEST.in: -------------------------------------------------------------------------------- 1 | include LICENSE 2 | include README.md 3 | include requirements.txt 4 | recursive-include esphome *.cpp *.h *.tcc *.c 5 | recursive-include esphome *.py.script 6 | recursive-include esphome LICENSE.txt 7 | -------------------------------------------------------------------------------- /esphome/components/voltage_sampler/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | voltage_sampler_ns = cg.esphome_ns.namespace("voltage_sampler") 4 | VoltageSampler = voltage_sampler_ns.class_("VoltageSampler") 5 | -------------------------------------------------------------------------------- /tests/components/ezo/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ezo 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: ezo 8 | id: ph_ezo 9 | address: 99 10 | unit_of_measurement: pH 11 | -------------------------------------------------------------------------------- /tests/components/ezo/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ezo 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ezo 8 | id: ph_ezo 9 | address: 99 10 | unit_of_measurement: pH 11 | -------------------------------------------------------------------------------- /tests/components/ezo/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ezo 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ezo 8 | id: ph_ezo 9 | address: 99 10 | unit_of_measurement: pH 11 | -------------------------------------------------------------------------------- /tests/components/fujitsu_general/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | remote_transmitter: 2 | pin: 2 3 | carrier_duty_percent: 50% 4 | 5 | climate: 6 | - platform: fujitsu_general 7 | name: Fujitsu General Climate 8 | -------------------------------------------------------------------------------- /tests/components/ultrasonic/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: ultrasonic 3 | id: ultrasonic_sensor1 4 | name: Ultrasonic Sensor 5 | echo_pin: 4 6 | trigger_pin: 5 7 | timeout: 5.5m 8 | -------------------------------------------------------------------------------- /tests/components/ultrasonic/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: ultrasonic 3 | id: ultrasonic_sensor1 4 | name: Ultrasonic Sensor 5 | echo_pin: 4 6 | trigger_pin: 5 7 | timeout: 5.5m 8 | -------------------------------------------------------------------------------- /tests/components/ultrasonic/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: ultrasonic 3 | id: ultrasonic_sensor1 4 | name: Ultrasonic Sensor 5 | echo_pin: 4 6 | trigger_pin: 5 7 | timeout: 5.5m 8 | -------------------------------------------------------------------------------- /tests/components/wifi_signal/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | sensor: 6 | - platform: wifi_signal 7 | name: WiFi Signal Sensor 8 | update_interval: 15s 9 | -------------------------------------------------------------------------------- /esphome/components/xiaomi_miscale2/sensor.py: -------------------------------------------------------------------------------- 1 | import esphome.config_validation as cv 2 | 3 | CONFIG_SCHEMA = cv.invalid( 4 | "This platform has been combined into xiaomi_miscale. Use xiaomi_miscale instead." 5 | ) 6 | -------------------------------------------------------------------------------- /tests/components/ezo/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ezo 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ezo 8 | id: ph_ezo 9 | address: 99 10 | unit_of_measurement: pH 11 | -------------------------------------------------------------------------------- /tests/components/ezo/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ezo 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ezo 8 | id: ph_ezo 9 | address: 99 10 | unit_of_measurement: pH 11 | -------------------------------------------------------------------------------- /tests/components/ezo/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ezo 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: ezo 8 | id: ph_ezo 9 | address: 99 10 | unit_of_measurement: pH 11 | -------------------------------------------------------------------------------- /tests/components/ultrasonic/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: ultrasonic 3 | id: ultrasonic_sensor1 4 | name: Ultrasonic Sensor 5 | echo_pin: 4 6 | trigger_pin: 5 7 | timeout: 5.5m 8 | -------------------------------------------------------------------------------- /tests/components/xiaomi_mue4094rt/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | binary_sensor: 4 | - platform: xiaomi_mue4094rt 5 | name: MUE4094RT Motion 6 | mac_address: 7A:80:8E:19:36:BA 7 | timeout: 5s 8 | -------------------------------------------------------------------------------- /tests/dashboard/common.py: -------------------------------------------------------------------------------- 1 | import pathlib 2 | 3 | 4 | def get_fixture_path(filename: str) -> pathlib.Path: 5 | """Get path of fixture.""" 6 | return pathlib.Path(__file__).parent.joinpath("fixtures", filename) 7 | -------------------------------------------------------------------------------- /tests/unit_tests/fixtures/yaml_util/missing_comp.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | name: test 3 | 4 | esp32: 5 | board: esp32dev 6 | 7 | wifi: 8 | ap: ~ 9 | 10 | image: 11 | - id: its_a_bug 12 | file: "mdi:bug" 13 | -------------------------------------------------------------------------------- /esphome/components/nfc/nfc_tag.cpp: -------------------------------------------------------------------------------- 1 | #include "nfc_tag.h" 2 | 3 | namespace esphome { 4 | namespace nfc { 5 | 6 | static const char *const TAG = "nfc.tag"; 7 | 8 | } // namespace nfc 9 | } // namespace esphome 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_mue4094rt/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | binary_sensor: 4 | - platform: xiaomi_mue4094rt 5 | name: MUE4094RT Motion 6 | mac_address: 7A:80:8E:19:36:BA 7 | timeout: 5s 8 | -------------------------------------------------------------------------------- /tests/components/xiaomi_mue4094rt/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | binary_sensor: 4 | - platform: xiaomi_mue4094rt 5 | name: MUE4094RT Motion 6 | mac_address: 7A:80:8E:19:36:BA 7 | timeout: 5s 8 | -------------------------------------------------------------------------------- /tests/components/xiaomi_mue4094rt/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | binary_sensor: 4 | - platform: xiaomi_mue4094rt 5 | name: MUE4094RT Motion 6 | mac_address: 7A:80:8E:19:36:BA 7 | timeout: 5s 8 | -------------------------------------------------------------------------------- /esphome/components/key_provider/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | CODEOWNERS = ["@ssieb"] 4 | 5 | key_provider_ns = cg.esphome_ns.namespace("key_provider") 6 | KeyProvider = key_provider_ns.class_("KeyProvider") 7 | -------------------------------------------------------------------------------- /esphome/core/macros.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | // Helper macro to define a version code, whose value can be compared against other version codes. 4 | #define VERSION_CODE(major, minor, patch) ((major) << 16 | (minor) << 8 | (patch)) 5 | -------------------------------------------------------------------------------- /tests/components/fs3000/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_fs3000 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: fs3000 8 | name: Air Velocity 9 | model: 1005 10 | update_interval: 60s 11 | -------------------------------------------------------------------------------- /tests/components/fs3000/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_fs3000 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: fs3000 8 | name: Air Velocity 9 | model: 1005 10 | update_interval: 60s 11 | -------------------------------------------------------------------------------- /tests/components/fs3000/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_fs3000 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: fs3000 8 | name: Air Velocity 9 | model: 1005 10 | update_interval: 60s 11 | -------------------------------------------------------------------------------- /tests/components/fs3000/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_fs3000 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: fs3000 8 | name: Air Velocity 9 | model: 1005 10 | update_interval: 60s 11 | -------------------------------------------------------------------------------- /tests/components/zio_ultrasonic/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_zio_ultrasonic 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: zio_ultrasonic 8 | name: "Distance" 9 | update_interval: 60s 10 | -------------------------------------------------------------------------------- /tests/components/zio_ultrasonic/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_zio_ultrasonic 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: zio_ultrasonic 8 | name: "Distance" 9 | update_interval: 60s 10 | -------------------------------------------------------------------------------- /tests/components/zio_ultrasonic/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_zio_ultrasonic 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: zio_ultrasonic 8 | name: "Distance" 9 | update_interval: 60s 10 | -------------------------------------------------------------------------------- /tests/components/fs3000/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_fs3000 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: fs3000 8 | name: Air Velocity 9 | model: 1005 10 | update_interval: 60s 11 | -------------------------------------------------------------------------------- /tests/components/fs3000/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_fs3000 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: fs3000 8 | name: Air Velocity 9 | model: 1005 10 | update_interval: 60s 11 | -------------------------------------------------------------------------------- /tests/components/zio_ultrasonic/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_zio_ultrasonic 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: zio_ultrasonic 8 | name: "Distance" 9 | update_interval: 60s 10 | -------------------------------------------------------------------------------- /tests/components/zio_ultrasonic/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_zio_ultrasonic 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: zio_ultrasonic 8 | name: "Distance" 9 | update_interval: 60s 10 | -------------------------------------------------------------------------------- /tests/components/zio_ultrasonic/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_zio_ultrasonic 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: zio_ultrasonic 8 | name: "Distance" 9 | update_interval: 60s 10 | -------------------------------------------------------------------------------- /tests/component_tests/deep_sleep/test_deep_sleep1.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | esphome: 3 | name: test 4 | platform: ESP32 5 | board: nodemcu-32s 6 | 7 | deep_sleep: 8 | id: deepsleep 9 | sleep_duration: 1min 10 | run_duration: 10s 11 | -------------------------------------------------------------------------------- /tests/components/bh1750/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bh1750 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: bh1750 8 | name: Living Room Brightness 9 | address: 0x23 10 | update_interval: 30s 11 | -------------------------------------------------------------------------------- /tests/components/external_components/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | external_components: 2 | - source: github://esphome/esphome@dev 3 | refresh: 1d 4 | components: [bh1750] 5 | - source: ../../../esphome/components 6 | components: [sntp] 7 | -------------------------------------------------------------------------------- /tests/components/external_components/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | external_components: 2 | - source: github://esphome/esphome@dev 3 | refresh: 1d 4 | components: [bh1750] 5 | - source: ../../../esphome/components 6 | components: [sntp] 7 | -------------------------------------------------------------------------------- /tests/components/wl_134/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_wl_134 3 | tx_pin: 4 4 | rx_pin: 5 5 | baud_rate: 9600 6 | 7 | text_sensor: 8 | - platform: wl_134 9 | name: Transponder Code 10 | reset: true 11 | -------------------------------------------------------------------------------- /tests/components/aht10/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_aht10 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: aht10 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/aht10/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_aht10 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: aht10 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/aht10/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_aht10 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: aht10 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/aht10/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_aht10 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: aht10 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2320/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bme280 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: am2320 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/bh1750/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bh1750 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: bh1750 8 | name: Living Room Brightness 9 | address: 0x23 10 | update_interval: 30s 11 | -------------------------------------------------------------------------------- /tests/components/bh1750/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bh1750 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: bh1750 8 | name: Living Room Brightness 9 | address: 0x23 10 | update_interval: 30s 11 | -------------------------------------------------------------------------------- /tests/components/bh1750/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bh1750 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: bh1750 8 | name: Living Room Brightness 9 | address: 0x23 10 | update_interval: 30s 11 | -------------------------------------------------------------------------------- /tests/components/bh1750/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bh1750 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: bh1750 8 | name: Living Room Brightness 9 | address: 0x23 10 | update_interval: 30s 11 | -------------------------------------------------------------------------------- /tests/components/external_components/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | external_components: 2 | - source: github://esphome/esphome@dev 3 | refresh: 1d 4 | components: [bh1750] 5 | - source: ../../../esphome/components 6 | components: [sntp] 7 | -------------------------------------------------------------------------------- /tests/components/external_components/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | external_components: 2 | - source: github://esphome/esphome@dev 3 | refresh: 1d 4 | components: [bh1750] 5 | - source: ../../../esphome/components 6 | components: [sntp] 7 | -------------------------------------------------------------------------------- /tests/components/external_components/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | external_components: 2 | - source: github://esphome/esphome@dev 3 | refresh: 1d 4 | components: [bh1750] 5 | - source: ../../../esphome/components 6 | components: [sntp] 7 | -------------------------------------------------------------------------------- /tests/components/htu31d/common.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | 3 | sensor: 4 | - platform: htu31d 5 | temperature: 6 | name: Living Room Temperature 7 7 | humidity: 8 | name: Living Room Humidity 7 9 | update_interval: 15s 10 | -------------------------------------------------------------------------------- /tests/components/wake_on_lan/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | button: 6 | - platform: wake_on_lan 7 | id: wol_1 8 | name: wol_test_1 9 | target_mac_address: 12:34:56:78:90:ab 10 | -------------------------------------------------------------------------------- /tests/components/wake_on_lan/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | button: 6 | - platform: wake_on_lan 7 | id: wol_1 8 | name: wol_test_1 9 | target_mac_address: 12:34:56:78:90:ab 10 | -------------------------------------------------------------------------------- /tests/components/wake_on_lan/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | button: 6 | - platform: wake_on_lan 7 | id: wol_1 8 | name: wol_test_1 9 | target_mac_address: 12:34:56:78:90:ab 10 | -------------------------------------------------------------------------------- /tests/components/wake_on_lan/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | wifi: 2 | ssid: MySSID 3 | password: password1 4 | 5 | button: 6 | - platform: wake_on_lan 7 | id: wol_1 8 | name: wol_test_1 9 | target_mac_address: 12:34:56:78:90:ab 10 | -------------------------------------------------------------------------------- /tests/components/wl_134/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_wl_134 3 | tx_pin: 4 4 | rx_pin: 5 5 | baud_rate: 9600 6 | 7 | text_sensor: 8 | - platform: wl_134 9 | name: Transponder Code 10 | reset: true 11 | -------------------------------------------------------------------------------- /tests/components/wl_134/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_wl_134 3 | tx_pin: 17 4 | rx_pin: 16 5 | baud_rate: 9600 6 | 7 | text_sensor: 8 | - platform: wl_134 9 | name: Transponder Code 10 | reset: true 11 | -------------------------------------------------------------------------------- /tests/components/wl_134/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_wl_134 3 | tx_pin: 17 4 | rx_pin: 16 5 | baud_rate: 9600 6 | 7 | text_sensor: 8 | - platform: wl_134 9 | name: Transponder Code 10 | reset: true 11 | -------------------------------------------------------------------------------- /tests/components/wl_134/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_wl_134 3 | tx_pin: 4 4 | rx_pin: 5 5 | baud_rate: 9600 6 | 7 | text_sensor: 8 | - platform: wl_134 9 | name: Transponder Code 10 | reset: true 11 | -------------------------------------------------------------------------------- /tests/components/aht10/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_aht10 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: aht10 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/aht10/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_aht10 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: aht10 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2315c/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_am2315c 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: am2315c 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2315c/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_am2315c 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: am2315c 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2315c/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_am2315c 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: am2315c 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2315c/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_am2315c 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: am2315c 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2320/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bme280 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: am2320 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2320/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bme280 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: am2320 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2320/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bme280 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: am2320 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2320/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bme280 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: am2320 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/bh1750/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bh1750 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: bh1750 8 | name: Living Room Brightness 9 | address: 0x23 10 | update_interval: 30s 11 | -------------------------------------------------------------------------------- /tests/components/deep_sleep/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - deep_sleep.prevent 5 | - delay: 1s 6 | - deep_sleep.allow 7 | 8 | deep_sleep: 9 | run_duration: 10s 10 | sleep_duration: 50s 11 | -------------------------------------------------------------------------------- /tests/components/external_components/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | external_components: 2 | - source: github://esphome/esphome@dev 3 | refresh: 1d 4 | components: [bh1750] 5 | - source: ../../../esphome/components 6 | components: [sntp] 7 | -------------------------------------------------------------------------------- /tests/components/wl_134/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_wl_134 3 | tx_pin: 4 4 | rx_pin: 5 5 | baud_rate: 9600 6 | 7 | text_sensor: 8 | - platform: wl_134 9 | name: Transponder Code 10 | reset: true 11 | -------------------------------------------------------------------------------- /tests/components/am2315c/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_am2315c 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: am2315c 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2315c/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_am2315c 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: am2315c 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/am2320/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_bme280 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: am2320 8 | temperature: 9 | name: Temperature 10 | humidity: 11 | name: Humidity 12 | -------------------------------------------------------------------------------- /tests/components/color/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | color: 2 | - id: kbx_red 3 | red: 100% 4 | green_int: 123 5 | blue: 2% 6 | - id: kbx_blue 7 | red: 0% 8 | green: 1% 9 | blue: 100% 10 | - id: kbx_green 11 | hex: "3DEC55" 12 | -------------------------------------------------------------------------------- /tests/components/color/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | color: 2 | - id: kbx_red 3 | red: 100% 4 | green_int: 123 5 | blue: 2% 6 | - id: kbx_blue 7 | red: 0% 8 | green: 1% 9 | blue: 100% 10 | - id: kbx_green 11 | hex: "3DEC55" 12 | -------------------------------------------------------------------------------- /tests/components/color/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | color: 2 | - id: kbx_red 3 | red: 100% 4 | green_int: 123 5 | blue: 2% 6 | - id: kbx_blue 7 | red: 0% 8 | green: 1% 9 | blue: 100% 10 | - id: kbx_green 11 | hex: "3DEC55" 12 | -------------------------------------------------------------------------------- /tests/components/color/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | color: 2 | - id: kbx_red 3 | red: 100% 4 | green_int: 123 5 | blue: 2% 6 | - id: kbx_blue 7 | red: 0% 8 | green: 1% 9 | blue: 100% 10 | - id: kbx_green 11 | hex: "3DEC55" 12 | -------------------------------------------------------------------------------- /tests/components/color/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | color: 2 | - id: kbx_red 3 | red: 100% 4 | green_int: 123 5 | blue: 2% 6 | - id: kbx_blue 7 | red: 0% 8 | green: 1% 9 | blue: 100% 10 | - id: kbx_green 11 | hex: "3DEC55" 12 | -------------------------------------------------------------------------------- /esphome/components/esp32/preferences.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | #ifdef USE_ESP32 3 | 4 | namespace esphome { 5 | namespace esp32 { 6 | 7 | void setup_preferences(); 8 | 9 | } // namespace esp32 10 | } // namespace esphome 11 | 12 | #endif // USE_ESP32 13 | -------------------------------------------------------------------------------- /esphome/components/libretiny/core.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef USE_LIBRETINY 4 | 5 | #include 6 | 7 | namespace esphome { 8 | namespace libretiny {} // namespace libretiny 9 | } // namespace esphome 10 | 11 | #endif // USE_LIBRETINY 12 | -------------------------------------------------------------------------------- /tests/components/cap1188/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_cap1188 3 | scl: 5 4 | sda: 4 5 | 6 | cap1188: 7 | id: cap1188_component 8 | address: 0x29 9 | reset_pin: 6 10 | touch_threshold: 0x20 11 | allow_multiple_touches: true 12 | -------------------------------------------------------------------------------- /tests/components/cap1188/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_cap1188 3 | scl: 16 4 | sda: 17 5 | 6 | cap1188: 7 | id: cap1188_component 8 | address: 0x29 9 | reset_pin: 15 10 | touch_threshold: 0x20 11 | allow_multiple_touches: true 12 | -------------------------------------------------------------------------------- /tests/components/cap1188/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_cap1188 3 | scl: 5 4 | sda: 4 5 | 6 | cap1188: 7 | id: cap1188_component 8 | address: 0x29 9 | reset_pin: 15 10 | touch_threshold: 0x20 11 | allow_multiple_touches: true 12 | -------------------------------------------------------------------------------- /tests/components/cap1188/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_cap1188 3 | scl: 5 4 | sda: 4 5 | 6 | cap1188: 7 | id: cap1188_component 8 | address: 0x29 9 | reset_pin: 6 10 | touch_threshold: 0x20 11 | allow_multiple_touches: true 12 | -------------------------------------------------------------------------------- /tests/components/color/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | color: 2 | - id: kbx_red 3 | red: 100% 4 | green_int: 123 5 | blue: 2% 6 | - id: kbx_blue 7 | red: 0% 8 | green: 1% 9 | blue: 100% 10 | - id: kbx_green 11 | hex: "3DEC55" 12 | -------------------------------------------------------------------------------- /tests/components/ct_clamp/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: esp_adc_sensor 4 | pin: 39 5 | - platform: ct_clamp 6 | sensor: esp_adc_sensor 7 | name: CT Clamp 8 | sample_duration: 500ms 9 | update_interval: 5s 10 | -------------------------------------------------------------------------------- /tests/components/ledc/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - output.ledc.set_frequency: 5 | id: test_ledc 6 | frequency: 100Hz 7 | 8 | output: 9 | - platform: ledc 10 | id: test_ledc 11 | pin: 4 12 | -------------------------------------------------------------------------------- /esphome/components/resistance_sampler/__init__.py: -------------------------------------------------------------------------------- 1 | import esphome.codegen as cg 2 | 3 | resistance_sampler_ns = cg.esphome_ns.namespace("resistance_sampler") 4 | ResistanceSampler = resistance_sampler_ns.class_("ResistanceSampler") 5 | 6 | CODEOWNERS = ["@jesserockz"] 7 | -------------------------------------------------------------------------------- /tests/components/ads1115/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ads1115 3 | scl: 5 4 | sda: 4 5 | 6 | ads1115: 7 | address: 0x48 8 | 9 | sensor: 10 | - platform: ads1115 11 | multiplexer: A0_A1 12 | gain: 1.024 13 | id: ads1115_sensor 14 | -------------------------------------------------------------------------------- /tests/components/ags10/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ags10 3 | scl: 5 4 | sda: 4 5 | frequency: 10kHz 6 | 7 | sensor: 8 | - platform: ags10 9 | id: ags10_1 10 | tvoc: 11 | name: AGS10 TVOC 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/ags10/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ags10 3 | scl: 16 4 | sda: 17 5 | frequency: 10kHz 6 | 7 | sensor: 8 | - platform: ags10 9 | id: ags10_1 10 | tvoc: 11 | name: AGS10 TVOC 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/ags10/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ags10 3 | scl: 5 4 | sda: 4 5 | frequency: 10kHz 6 | 7 | sensor: 8 | - platform: ags10 9 | id: ags10_1 10 | tvoc: 11 | name: AGS10 TVOC 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/cap1188/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_cap1188 3 | scl: 5 4 | sda: 4 5 | 6 | cap1188: 7 | id: cap1188_component 8 | address: 0x29 9 | reset_pin: 6 10 | touch_threshold: 0x20 11 | allow_multiple_touches: true 12 | -------------------------------------------------------------------------------- /tests/components/cap1188/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_cap1188 3 | scl: 16 4 | sda: 17 5 | 6 | cap1188: 7 | id: cap1188_component 8 | address: 0x29 9 | reset_pin: 15 10 | touch_threshold: 0x20 11 | allow_multiple_touches: true 12 | -------------------------------------------------------------------------------- /tests/components/ct_clamp/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: esp_adc_sensor 4 | pin: 0 5 | - platform: ct_clamp 6 | sensor: esp_adc_sensor 7 | name: CT Clamp 8 | sample_duration: 500ms 9 | update_interval: 5s 10 | -------------------------------------------------------------------------------- /tests/components/ct_clamp/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: esp_adc_sensor 4 | pin: 39 5 | - platform: ct_clamp 6 | sensor: esp_adc_sensor 7 | name: CT Clamp 8 | sample_duration: 500ms 9 | update_interval: 5s 10 | -------------------------------------------------------------------------------- /tests/components/ct_clamp/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: esp_adc_sensor 4 | pin: A0 5 | - platform: ct_clamp 6 | sensor: esp_adc_sensor 7 | name: CT Clamp 8 | sample_duration: 500ms 9 | update_interval: 5s 10 | -------------------------------------------------------------------------------- /tests/components/ct_clamp/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: esp_adc_sensor 4 | pin: 26 5 | - platform: ct_clamp 6 | sensor: esp_adc_sensor 7 | name: CT Clamp 8 | sample_duration: 500ms 9 | update_interval: 5s 10 | -------------------------------------------------------------------------------- /tests/components/ili9xxx/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | spi: 2 | mosi_pin: GPIO23 3 | clk_pin: GPIO18 4 | 5 | display: 6 | - platform: ili9xxx 7 | model: gc9a01a 8 | id: gca901_display 9 | cs_pin: GPIO5 10 | dc_pin: GPIO22 11 | reset_pin: GPIO21 12 | -------------------------------------------------------------------------------- /tests/components/ledc/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - output.ledc.set_frequency: 5 | id: test_ledc 6 | frequency: 100Hz 7 | 8 | output: 9 | - platform: ledc 10 | id: test_ledc 11 | pin: 4 12 | -------------------------------------------------------------------------------- /tests/components/ledc/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - output.ledc.set_frequency: 5 | id: test_ledc 6 | frequency: 100Hz 7 | 8 | output: 9 | - platform: ledc 10 | id: test_ledc 11 | pin: 4 12 | -------------------------------------------------------------------------------- /tests/components/ledc/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esphome: 2 | on_boot: 3 | then: 4 | - output.ledc.set_frequency: 5 | id: test_ledc 6 | frequency: 100Hz 7 | 8 | output: 9 | - platform: ledc 10 | id: test_ledc 11 | pin: 4 12 | -------------------------------------------------------------------------------- /tests/components/ads1115/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ads1115 3 | scl: 5 4 | sda: 4 5 | 6 | ads1115: 7 | address: 0x48 8 | 9 | sensor: 10 | - platform: ads1115 11 | multiplexer: A0_A1 12 | gain: 1.024 13 | id: ads1115_sensor 14 | -------------------------------------------------------------------------------- /tests/components/ads1115/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ads1115 3 | scl: 16 4 | sda: 17 5 | 6 | ads1115: 7 | address: 0x48 8 | 9 | sensor: 10 | - platform: ads1115 11 | multiplexer: A0_A1 12 | gain: 1.024 13 | id: ads1115_sensor 14 | -------------------------------------------------------------------------------- /tests/components/ads1115/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ads1115 3 | scl: 16 4 | sda: 17 5 | 6 | ads1115: 7 | address: 0x48 8 | 9 | sensor: 10 | - platform: ads1115 11 | multiplexer: A0_A1 12 | gain: 1.024 13 | id: ads1115_sensor 14 | -------------------------------------------------------------------------------- /tests/components/ads1115/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ads1115 3 | scl: 5 4 | sda: 4 5 | 6 | ads1115: 7 | address: 0x48 8 | 9 | sensor: 10 | - platform: ads1115 11 | multiplexer: A0_A1 12 | gain: 1.024 13 | id: ads1115_sensor 14 | -------------------------------------------------------------------------------- /tests/components/ags10/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ags10 3 | scl: 5 4 | sda: 4 5 | frequency: 10kHz 6 | 7 | sensor: 8 | - platform: ags10 9 | id: ags10_1 10 | tvoc: 11 | name: AGS10 TVOC 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/ags10/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ags10 3 | scl: 16 4 | sda: 17 5 | frequency: 10kHz 6 | 7 | sensor: 8 | - platform: ags10 9 | id: ags10_1 10 | tvoc: 11 | name: AGS10 TVOC 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/ct_clamp/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: adc 3 | id: esp_adc_sensor 4 | pin: 0 5 | - platform: ct_clamp 6 | sensor: esp_adc_sensor 7 | name: CT Clamp 8 | sample_duration: 500ms 9 | update_interval: 5s 10 | -------------------------------------------------------------------------------- /tests/components/zyaura/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: zyaura 3 | clock_pin: 5 4 | data_pin: 4 5 | co2: 6 | name: ZyAura CO2 7 | temperature: 8 | name: ZyAura Temperature 9 | humidity: 10 | name: ZyAura Humidity 11 | -------------------------------------------------------------------------------- /tests/components/zyaura/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: zyaura 3 | clock_pin: 16 4 | data_pin: 17 5 | co2: 6 | name: ZyAura CO2 7 | temperature: 8 | name: ZyAura Temperature 9 | humidity: 10 | name: ZyAura Humidity 11 | -------------------------------------------------------------------------------- /tests/components/zyaura/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: zyaura 3 | clock_pin: 5 4 | data_pin: 4 5 | co2: 6 | name: ZyAura CO2 7 | temperature: 8 | name: ZyAura Temperature 9 | humidity: 10 | name: ZyAura Humidity 11 | -------------------------------------------------------------------------------- /tests/components/zyaura/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: zyaura 3 | clock_pin: 5 4 | data_pin: 4 5 | co2: 6 | name: ZyAura CO2 7 | temperature: 8 | name: ZyAura Temperature 9 | humidity: 10 | name: ZyAura Humidity 11 | -------------------------------------------------------------------------------- /esphome/components/ld2410/button/query_button.cpp: -------------------------------------------------------------------------------- 1 | #include "query_button.h" 2 | 3 | namespace esphome { 4 | namespace ld2410 { 5 | 6 | void QueryButton::press_action() { this->parent_->read_all_info(); } 7 | 8 | } // namespace ld2410 9 | } // namespace esphome 10 | -------------------------------------------------------------------------------- /esphome/components/ld2410/button/reset_button.cpp: -------------------------------------------------------------------------------- 1 | #include "reset_button.h" 2 | 3 | namespace esphome { 4 | namespace ld2410 { 5 | 6 | void ResetButton::press_action() { this->parent_->factory_reset(); } 7 | 8 | } // namespace ld2410 9 | } // namespace esphome 10 | -------------------------------------------------------------------------------- /esphome/components/number/number_traits.cpp: -------------------------------------------------------------------------------- 1 | #include "esphome/core/log.h" 2 | #include "number_traits.h" 3 | 4 | namespace esphome { 5 | namespace number { 6 | 7 | static const char *const TAG = "number"; 8 | 9 | } // namespace number 10 | } // namespace esphome 11 | -------------------------------------------------------------------------------- /tests/components/ads1115/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ads1115 3 | scl: 5 4 | sda: 4 5 | 6 | ads1115: 7 | address: 0x48 8 | 9 | sensor: 10 | - platform: ads1115 11 | multiplexer: A0_A1 12 | gain: 1.024 13 | id: ads1115_sensor 14 | -------------------------------------------------------------------------------- /tests/components/zyaura/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: zyaura 3 | clock_pin: 5 4 | data_pin: 4 5 | co2: 6 | name: ZyAura CO2 7 | temperature: 8 | name: ZyAura Temperature 9 | humidity: 10 | name: ZyAura Humidity 11 | -------------------------------------------------------------------------------- /tests/components/zyaura/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: zyaura 3 | clock_pin: 16 4 | data_pin: 17 5 | co2: 6 | name: ZyAura CO2 7 | temperature: 8 | name: ZyAura Temperature 9 | humidity: 10 | name: ZyAura Humidity 11 | -------------------------------------------------------------------------------- /esphome/components/output/automation.cpp: -------------------------------------------------------------------------------- 1 | #include "automation.h" 2 | #include "esphome/core/log.h" 3 | 4 | namespace esphome { 5 | namespace output { 6 | 7 | static const char *const TAG = "output.automation"; 8 | 9 | } // namespace output 10 | } // namespace esphome 11 | -------------------------------------------------------------------------------- /esphome/components/sensor/automation.cpp: -------------------------------------------------------------------------------- 1 | #include "automation.h" 2 | #include "esphome/core/log.h" 3 | 4 | namespace esphome { 5 | namespace sensor { 6 | 7 | static const char *const TAG = "sensor.automation"; 8 | 9 | } // namespace sensor 10 | } // namespace esphome 11 | -------------------------------------------------------------------------------- /esphome/components/switch/automation.cpp: -------------------------------------------------------------------------------- 1 | #include "automation.h" 2 | #include "esphome/core/log.h" 3 | 4 | namespace esphome { 5 | namespace switch_ { 6 | 7 | static const char *const TAG = "switch.automation"; 8 | 9 | } // namespace switch_ 10 | } // namespace esphome 11 | -------------------------------------------------------------------------------- /script/fulltest: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env bash 2 | 3 | set -e 4 | 5 | cd "$(dirname "$0")/.." 6 | 7 | set -x 8 | 9 | script/ci-custom.py 10 | script/lint-python 11 | script/lint-cpp 12 | script/unit_test 13 | script/component_test 14 | script/test 15 | script/test_build_components 16 | -------------------------------------------------------------------------------- /tests/components/dallas/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | dallas: 2 | pin: 4 3 | 4 | sensor: 5 | - platform: dallas 6 | address: 0x1C0000031EDD2A28 7 | name: Dallas Temperature 8 | resolution: 9 9 | - platform: dallas 10 | index: 1 11 | name: Dallas Temperature 12 | -------------------------------------------------------------------------------- /tests/components/dallas/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | dallas: 2 | pin: 4 3 | 4 | sensor: 5 | - platform: dallas 6 | address: 0x1C0000031EDD2A28 7 | name: Dallas Temperature 8 | resolution: 9 9 | - platform: dallas 10 | index: 1 11 | name: Dallas Temperature 12 | -------------------------------------------------------------------------------- /tests/components/dallas/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | dallas: 2 | pin: 4 3 | 4 | sensor: 5 | - platform: dallas 6 | address: 0x1C0000031EDD2A28 7 | name: Dallas Temperature 8 | resolution: 9 9 | - platform: dallas 10 | index: 1 11 | name: Dallas Temperature 12 | -------------------------------------------------------------------------------- /tests/components/dallas/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | dallas: 2 | pin: 4 3 | 4 | sensor: 5 | - platform: dallas 6 | address: 0x1C0000031EDD2A28 7 | name: Dallas Temperature 8 | resolution: 9 9 | - platform: dallas 10 | index: 1 11 | name: Dallas Temperature 12 | -------------------------------------------------------------------------------- /tests/components/dallas/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | dallas: 2 | pin: 4 3 | 4 | sensor: 5 | - platform: dallas 6 | address: 0x1C0000031EDD2A28 7 | name: Dallas Temperature 8 | resolution: 9 9 | - platform: dallas 10 | index: 1 11 | name: Dallas Temperature 12 | -------------------------------------------------------------------------------- /tests/components/dht12/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dht12 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: dht12 8 | temperature: 9 | name: DHT12 Temperature 10 | humidity: 11 | name: DHT12 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/dht12/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dht12 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: dht12 8 | temperature: 9 | name: DHT12 Temperature 10 | humidity: 11 | name: DHT12 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/dht12/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dht12 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: dht12 8 | temperature: 9 | name: DHT12 Temperature 10 | humidity: 11 | name: DHT12 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/dps310/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dps310 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: dps310 8 | temperature: 9 | name: DPS310 Temperature 10 | pressure: 11 | name: DPS310 Pressure 12 | address: 0x77 13 | -------------------------------------------------------------------------------- /tests/components/dps310/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dps310 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: dps310 8 | temperature: 9 | name: DPS310 Temperature 10 | pressure: 11 | name: DPS310 Pressure 12 | address: 0x77 13 | -------------------------------------------------------------------------------- /tests/components/dps310/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dps310 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: dps310 8 | temperature: 9 | name: DPS310 Temperature 10 | pressure: 11 | name: DPS310 Pressure 12 | address: 0x77 13 | -------------------------------------------------------------------------------- /tests/components/dps310/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dps310 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: dps310 8 | temperature: 9 | name: DPS310 Temperature 10 | pressure: 11 | name: DPS310 Pressure 12 | address: 0x77 13 | -------------------------------------------------------------------------------- /tests/components/vl53l0x/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_vl53l0x 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: vl53l0x 8 | name: VL53L0x Distance 9 | address: 0x29 10 | enable_pin: 3 11 | timeout: 200us 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/vl53l0x/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_vl53l0x 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: vl53l0x 8 | name: VL53L0x Distance 9 | address: 0x29 10 | enable_pin: 3 11 | timeout: 200us 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/vl53l0x/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_vl53l0x 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: vl53l0x 8 | name: VL53L0x Distance 9 | address: 0x29 10 | enable_pin: 3 11 | timeout: 200us 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /docker/ha-addon-rootfs/etc/nginx/includes/server_params.conf: -------------------------------------------------------------------------------- 1 | root /dev/null; 2 | server_name $hostname; 3 | 4 | client_max_body_size 512m; 5 | 6 | add_header X-Content-Type-Options nosniff; 7 | add_header X-XSS-Protection "1; mode=block"; 8 | add_header X-Robots-Tag none; 9 | -------------------------------------------------------------------------------- /esphome/components/libretiny/preferences.h: -------------------------------------------------------------------------------- 1 | #pragma once 2 | 3 | #ifdef USE_LIBRETINY 4 | 5 | namespace esphome { 6 | namespace libretiny { 7 | 8 | void setup_preferences(); 9 | 10 | } // namespace libretiny 11 | } // namespace esphome 12 | 13 | #endif // USE_LIBRETINY 14 | -------------------------------------------------------------------------------- /tests/component_tests/deep_sleep/test_deep_sleep2.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | esphome: 3 | name: test 4 | platform: ESP32 5 | board: nodemcu-32s 6 | 7 | deep_sleep: 8 | id: deepsleep 9 | sleep_duration: 1min 10 | run_duration: 11 | default: 10s 12 | gpio_wakeup_reason: 30s 13 | -------------------------------------------------------------------------------- /tests/components/anova/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: anova_blec 6 | 7 | climate: 8 | - platform: anova 9 | name: Anova cooker 10 | ble_client_id: anova_blec 11 | unit_of_measurement: c 12 | -------------------------------------------------------------------------------- /tests/components/anova/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: anova_blec 6 | 7 | climate: 8 | - platform: anova 9 | name: Anova cooker 10 | ble_client_id: anova_blec 11 | unit_of_measurement: c 12 | -------------------------------------------------------------------------------- /tests/components/dallas/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | dallas: 2 | pin: 4 3 | 4 | sensor: 5 | - platform: dallas 6 | address: 0x1C0000031EDD2A28 7 | name: Dallas Temperature 8 | resolution: 9 9 | - platform: dallas 10 | index: 1 11 | name: Dallas Temperature 12 | -------------------------------------------------------------------------------- /tests/components/dht12/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dht12 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: dht12 8 | temperature: 9 | name: DHT12 Temperature 10 | humidity: 11 | name: DHT12 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/dht12/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dht12 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: dht12 8 | temperature: 9 | name: DHT12 Temperature 10 | humidity: 11 | name: DHT12 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/dht12/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dht12 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: dht12 8 | temperature: 9 | name: DHT12 Temperature 10 | humidity: 11 | name: DHT12 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/dps310/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dps310 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: dps310 8 | temperature: 9 | name: DPS310 Temperature 10 | pressure: 11 | name: DPS310 Pressure 12 | address: 0x77 13 | -------------------------------------------------------------------------------- /tests/components/dps310/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_dps310 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: dps310 8 | temperature: 9 | name: DPS310 Temperature 10 | pressure: 11 | name: DPS310 Pressure 12 | address: 0x77 13 | -------------------------------------------------------------------------------- /tests/components/ens210/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ens210 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: ens210 8 | temperature: 9 | name: ENS210 Temperature 10 | humidity: 11 | name: ENS210 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/ens210/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ens210 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ens210 8 | temperature: 9 | name: ENS210 Temperature 10 | humidity: 11 | name: ENS210 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/ens210/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ens210 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ens210 8 | temperature: 9 | name: ENS210 Temperature 10 | humidity: 11 | name: ENS210 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/gps/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_gps 3 | tx_pin: 4 4 | rx_pin: 5 5 | baud_rate: 9600 6 | parity: EVEN 7 | 8 | gps: 9 | 10 | time: 11 | - platform: gps 12 | on_time_sync: 13 | then: 14 | logger.log: "It's time!" 15 | -------------------------------------------------------------------------------- /tests/components/gps/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_gps 3 | tx_pin: 17 4 | rx_pin: 16 5 | baud_rate: 9600 6 | parity: EVEN 7 | 8 | gps: 9 | 10 | time: 11 | - platform: gps 12 | on_time_sync: 13 | then: 14 | logger.log: "It's time!" 15 | -------------------------------------------------------------------------------- /tests/components/gps/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_gps 3 | tx_pin: 4 4 | rx_pin: 5 5 | baud_rate: 9600 6 | parity: EVEN 7 | 8 | gps: 9 | 10 | time: 11 | - platform: gps 12 | on_time_sync: 13 | then: 14 | logger.log: "It's time!" 15 | -------------------------------------------------------------------------------- /tests/components/gps/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | uart: 2 | - id: uart_gps 3 | tx_pin: 4 4 | rx_pin: 5 5 | baud_rate: 9600 6 | parity: EVEN 7 | 8 | gps: 9 | 10 | time: 11 | - platform: gps 12 | on_time_sync: 13 | then: 14 | logger.log: "It's time!" 15 | -------------------------------------------------------------------------------- /tests/components/vl53l0x/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_vl53l0x 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: vl53l0x 8 | name: VL53L0x Distance 9 | address: 0x29 10 | enable_pin: 3 11 | timeout: 200us 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/vl53l0x/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_vl53l0x 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: vl53l0x 8 | name: VL53L0x Distance 9 | address: 0x29 10 | enable_pin: 3 11 | timeout: 200us 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/vl53l0x/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_vl53l0x 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: vl53l0x 8 | name: VL53L0x Distance 9 | address: 0x29 10 | enable_pin: 3 11 | timeout: 200us 12 | update_interval: 60s 13 | -------------------------------------------------------------------------------- /tests/components/xiaomi_miscale/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_miscale 5 | mac_address: '5C:CA:D3:70:D4:A2' 6 | weight: 7 | name: "Xiaomi Mi Scale Weight" 8 | impedance: 9 | name: "Xiaomi Mi Scale Impedance" 10 | -------------------------------------------------------------------------------- /esphome/components/ld2410/button/restart_button.cpp: -------------------------------------------------------------------------------- 1 | #include "restart_button.h" 2 | 3 | namespace esphome { 4 | namespace ld2410 { 5 | 6 | void RestartButton::press_action() { this->parent_->restart_and_read_all_info(); } 7 | 8 | } // namespace ld2410 9 | } // namespace esphome 10 | -------------------------------------------------------------------------------- /tests/components/anova/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: anova_blec 6 | 7 | climate: 8 | - platform: anova 9 | name: Anova cooker 10 | ble_client_id: anova_blec 11 | unit_of_measurement: c 12 | -------------------------------------------------------------------------------- /tests/components/anova/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | ble_client: 4 | - mac_address: 01:02:03:04:05:06 5 | id: anova_blec 6 | 7 | climate: 8 | - platform: anova 9 | name: Anova cooker 10 | ble_client_id: anova_blec 11 | unit_of_measurement: c 12 | -------------------------------------------------------------------------------- /tests/components/ccs811/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ccs811 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ccs811 8 | eco2: 9 | name: CCS811 eCO2 10 | tvoc: 11 | name: CCS811 TVOC 12 | baseline: 0x4242 13 | update_interval: 30s 14 | -------------------------------------------------------------------------------- /tests/components/ccs811/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ccs811 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: ccs811 8 | eco2: 9 | name: CCS811 eCO2 10 | tvoc: 11 | name: CCS811 TVOC 12 | baseline: 0x4242 13 | update_interval: 30s 14 | -------------------------------------------------------------------------------- /tests/components/ccs811/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ccs811 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ccs811 8 | eco2: 9 | name: CCS811 eCO2 10 | tvoc: 11 | name: CCS811 TVOC 12 | baseline: 0x4242 13 | update_interval: 30s 14 | -------------------------------------------------------------------------------- /tests/components/ccs811/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ccs811 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ccs811 8 | eco2: 9 | name: CCS811 eCO2 10 | tvoc: 11 | name: CCS811 TVOC 12 | baseline: 0x4242 13 | update_interval: 30s 14 | -------------------------------------------------------------------------------- /tests/components/ens210/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ens210 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ens210 8 | temperature: 9 | name: ENS210 Temperature 10 | humidity: 11 | name: ENS210 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/ens210/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ens210 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ens210 8 | temperature: 9 | name: ENS210 Temperature 10 | humidity: 11 | name: ENS210 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/ens210/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ens210 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: ens210 8 | temperature: 9 | name: ENS210 Temperature 10 | humidity: 11 | name: ENS210 Humidity 12 | update_interval: 15s 13 | -------------------------------------------------------------------------------- /tests/components/xiaomi_hhccpot002/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_hhccpot002 5 | mac_address: 94:2B:FF:5C:91:61 6 | moisture: 7 | name: HHCCPOT002 Moisture 8 | conductivity: 9 | name: HHCCPOT002 Soil Conductivity 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_miscale copy/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_miscale 5 | mac_address: '5C:CA:D3:70:D4:A2' 6 | weight: 7 | name: "Xiaomi Mi Scale Weight" 8 | impedance: 9 | name: "Xiaomi Mi Scale Impedance" 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_miscale/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_miscale 5 | mac_address: '5C:CA:D3:70:D4:A2' 6 | weight: 7 | name: "Xiaomi Mi Scale Weight" 8 | impedance: 9 | name: "Xiaomi Mi Scale Impedance" 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_miscale/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_miscale 5 | mac_address: '5C:CA:D3:70:D4:A2' 6 | weight: 7 | name: "Xiaomi Mi Scale Weight" 8 | impedance: 9 | name: "Xiaomi Mi Scale Impedance" 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_miscale/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_miscale 5 | mac_address: '5C:CA:D3:70:D4:A2' 6 | weight: 7 | name: "Xiaomi Mi Scale Weight" 8 | impedance: 9 | name: "Xiaomi Mi Scale Impedance" 10 | -------------------------------------------------------------------------------- /esphome/components/partition/light_partition.cpp: -------------------------------------------------------------------------------- 1 | #include "light_partition.h" 2 | #include "esphome/core/log.h" 3 | 4 | namespace esphome { 5 | namespace partition { 6 | 7 | static const char *const TAG = "partition.light"; 8 | 9 | } // namespace partition 10 | } // namespace esphome 11 | -------------------------------------------------------------------------------- /tests/.gitignore: -------------------------------------------------------------------------------- 1 | # Gitignore settings for ESPHome 2 | # This is an example and may include too much for your use-case. 3 | # You can modify this file to suit your needs. 4 | /.esphome/ 5 | **/.pioenvs/ 6 | **/.piolibdeps/ 7 | **/lib/ 8 | **/src/ 9 | **/platformio.ini 10 | /secrets.yaml 11 | -------------------------------------------------------------------------------- /tests/component_tests/sensor/test_sensor.yaml: -------------------------------------------------------------------------------- 1 | --- 2 | esphome: 3 | name: test 4 | platform: ESP8266 5 | board: d1_mini_lite 6 | 7 | sensor: 8 | - platform: adc 9 | pin: A0 10 | id: s_1 11 | name: test s1 12 | update_interval: 60s 13 | device_class: voltage 14 | -------------------------------------------------------------------------------- /tests/components/ccs811/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ccs811 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: ccs811 8 | eco2: 9 | name: CCS811 eCO2 10 | tvoc: 11 | name: CCS811 TVOC 12 | baseline: 0x4242 13 | update_interval: 30s 14 | -------------------------------------------------------------------------------- /tests/components/ccs811/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_ccs811 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: ccs811 8 | eco2: 9 | name: CCS811 eCO2 10 | tvoc: 11 | name: CCS811 TVOC 12 | baseline: 0x4242 13 | update_interval: 30s 14 | -------------------------------------------------------------------------------- /tests/components/gpio/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | binary_sensor: 2 | - platform: gpio 3 | pin: 2 4 | id: gpio_binary_sensor 5 | 6 | output: 7 | - platform: gpio 8 | pin: 3 9 | id: gpio_output 10 | 11 | switch: 12 | - platform: gpio 13 | pin: 4 14 | id: gpio_switch 15 | -------------------------------------------------------------------------------- /tests/components/gpio/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | binary_sensor: 2 | - platform: gpio 3 | pin: 12 4 | id: gpio_binary_sensor 5 | 6 | output: 7 | - platform: gpio 8 | pin: 13 9 | id: gpio_output 10 | 11 | switch: 12 | - platform: gpio 13 | pin: 14 14 | id: gpio_switch 15 | -------------------------------------------------------------------------------- /tests/components/gpio/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | binary_sensor: 2 | - platform: gpio 3 | pin: 12 4 | id: gpio_binary_sensor 5 | 6 | output: 7 | - platform: gpio 8 | pin: 13 9 | id: gpio_output 10 | 11 | switch: 12 | - platform: gpio 13 | pin: 14 14 | id: gpio_switch 15 | -------------------------------------------------------------------------------- /tests/components/gpio/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | binary_sensor: 2 | - platform: gpio 3 | pin: 2 4 | id: gpio_binary_sensor 5 | 6 | output: 7 | - platform: gpio 8 | pin: 3 9 | id: gpio_output 10 | 11 | switch: 12 | - platform: gpio 13 | pin: 4 14 | id: gpio_switch 15 | -------------------------------------------------------------------------------- /tests/components/xgzp68xx/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_xgzp68xx 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: xgzp68xx 8 | k_value: 4096 9 | temperature: 10 | name: Pressure Temperature 11 | pressure: 12 | name: Differential pressure 13 | -------------------------------------------------------------------------------- /tests/components/xgzp68xx/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_xgzp68xx 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: xgzp68xx 8 | k_value: 4096 9 | temperature: 10 | name: Pressure Temperature 11 | pressure: 12 | name: Differential pressure 13 | -------------------------------------------------------------------------------- /tests/components/xgzp68xx/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_xgzp68xx 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: xgzp68xx 8 | k_value: 4096 9 | temperature: 10 | name: Pressure Temperature 11 | pressure: 12 | name: Differential pressure 13 | -------------------------------------------------------------------------------- /tests/components/xgzp68xx/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_xgzp68xx 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: xgzp68xx 8 | k_value: 4096 9 | temperature: 10 | name: Pressure Temperature 11 | pressure: 12 | name: Differential pressure 13 | -------------------------------------------------------------------------------- /tests/components/xiaomi_hhccpot002/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_hhccpot002 5 | mac_address: 94:2B:FF:5C:91:61 6 | moisture: 7 | name: HHCCPOT002 Moisture 8 | conductivity: 9 | name: HHCCPOT002 Soil Conductivity 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_hhccpot002/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_hhccpot002 5 | mac_address: 94:2B:FF:5C:91:61 6 | moisture: 7 | name: HHCCPOT002 Moisture 8 | conductivity: 9 | name: HHCCPOT002 Soil Conductivity 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_hhccpot002/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_hhccpot002 5 | mac_address: 94:2B:FF:5C:91:61 6 | moisture: 7 | name: HHCCPOT002 Moisture 8 | conductivity: 9 | name: HHCCPOT002 Soil Conductivity 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_miscale copy/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_miscale 5 | mac_address: '5C:CA:D3:70:D4:A2' 6 | weight: 7 | name: "Xiaomi Mi Scale Weight" 8 | impedance: 9 | name: "Xiaomi Mi Scale Impedance" 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_miscale copy/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_miscale 5 | mac_address: '5C:CA:D3:70:D4:A2' 6 | weight: 7 | name: "Xiaomi Mi Scale Weight" 8 | impedance: 9 | name: "Xiaomi Mi Scale Impedance" 10 | -------------------------------------------------------------------------------- /tests/components/xiaomi_miscale copy/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | esp32_ble_tracker: 2 | 3 | sensor: 4 | - platform: xiaomi_miscale 5 | mac_address: '5C:CA:D3:70:D4:A2' 6 | weight: 7 | name: "Xiaomi Mi Scale Weight" 8 | impedance: 9 | name: "Xiaomi Mi Scale Impedance" 10 | -------------------------------------------------------------------------------- /esphome/components/emc2101/output/emc2101_output.cpp: -------------------------------------------------------------------------------- 1 | #include "emc2101_output.h" 2 | 3 | namespace esphome { 4 | namespace emc2101 { 5 | 6 | void EMC2101Output::write_state(float state) { this->parent_->set_duty_cycle(state); } 7 | 8 | } // namespace emc2101 9 | } // namespace esphome 10 | -------------------------------------------------------------------------------- /esphome/components/seeed_mr24hpc1/button/restart_button.cpp: -------------------------------------------------------------------------------- 1 | #include "restart_button.h" 2 | 3 | namespace esphome { 4 | namespace seeed_mr24hpc1 { 5 | 6 | void RestartButton::press_action() { this->parent_->set_restart(); } 7 | 8 | } // namespace seeed_mr24hpc1 9 | } // namespace esphome 10 | -------------------------------------------------------------------------------- /tests/components/dht/test.esp32-c3.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: dht 3 | pin: 4 4 | model: AM2302 5 | update_interval: 15s 6 | temperature: 7 | id: dht_temperature 8 | name: DHT Temperature 9 | humidity: 10 | id: dht_humidity 11 | name: DHT Humidity 12 | -------------------------------------------------------------------------------- /tests/components/dht/test.esp32.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: dht 3 | pin: 4 4 | model: AM2302 5 | update_interval: 15s 6 | temperature: 7 | id: dht_temperature 8 | name: DHT Temperature 9 | humidity: 10 | id: dht_humidity 11 | name: DHT Humidity 12 | -------------------------------------------------------------------------------- /tests/components/dht/test.esp8266.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: dht 3 | pin: 4 4 | model: AM2302 5 | update_interval: 15s 6 | temperature: 7 | id: dht_temperature 8 | name: DHT Temperature 9 | humidity: 10 | id: dht_humidity 11 | name: DHT Humidity 12 | -------------------------------------------------------------------------------- /tests/components/dht/test.rp2040.yaml: -------------------------------------------------------------------------------- 1 | sensor: 2 | - platform: dht 3 | pin: 4 4 | model: AM2302 5 | update_interval: 15s 6 | temperature: 7 | id: dht_temperature 8 | name: DHT Temperature 9 | humidity: 10 | id: dht_humidity 11 | name: DHT Humidity 12 | -------------------------------------------------------------------------------- /tests/components/gpio/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | binary_sensor: 2 | - platform: gpio 3 | pin: 2 4 | id: gpio_binary_sensor 5 | 6 | output: 7 | - platform: gpio 8 | pin: 3 9 | id: gpio_output 10 | 11 | switch: 12 | - platform: gpio 13 | pin: 4 14 | id: gpio_switch 15 | -------------------------------------------------------------------------------- /tests/components/gpio/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | binary_sensor: 2 | - platform: gpio 3 | pin: 12 4 | id: gpio_binary_sensor 5 | 6 | output: 7 | - platform: gpio 8 | pin: 13 9 | id: gpio_output 10 | 11 | switch: 12 | - platform: gpio 13 | pin: 14 14 | id: gpio_switch 15 | -------------------------------------------------------------------------------- /tests/components/xgzp68xx/test.esp32-c3-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_xgzp68xx 3 | scl: 5 4 | sda: 4 5 | 6 | sensor: 7 | - platform: xgzp68xx 8 | k_value: 4096 9 | temperature: 10 | name: Pressure Temperature 11 | pressure: 12 | name: Differential pressure 13 | -------------------------------------------------------------------------------- /tests/components/xgzp68xx/test.esp32-idf.yaml: -------------------------------------------------------------------------------- 1 | i2c: 2 | - id: i2c_xgzp68xx 3 | scl: 16 4 | sda: 17 5 | 6 | sensor: 7 | - platform: xgzp68xx 8 | k_value: 4096 9 | temperature: 10 | name: Pressure Temperature 11 | pressure: 12 | name: Differential pressure 13 | -------------------------------------------------------------------------------- /esphome/components/nfc/automation.cpp: -------------------------------------------------------------------------------- 1 | #include "automation.h" 2 | 3 | namespace esphome { 4 | namespace nfc { 5 | 6 | void NfcOnTagTrigger::process(const std::unique_ptr &tag) { this->trigger(format_uid(tag->get_uid()), *tag); } 7 | 8 | } // namespace nfc 9 | } // namespace esphome 10 | --------------------------------------------------------------------------------