diff --git a/.github/workflows/ci.yaml b/.github/workflows/ci.yaml index 3491501..1d54fa6 100644 --- a/.github/workflows/ci.yaml +++ b/.github/workflows/ci.yaml @@ -196,6 +196,13 @@ jobs: for YAML in yee*.yaml; do esphome -s external_components_source components config $YAML >/dev/null done + - name: Write tests/secrets.yaml + shell: bash + run: 'echo -e "wifi_ssid: ssid\nwifi_password: password" > tests/secrets.yaml' + - run: | + for YAML in tests/*.yaml; do + esphome -s external_components_source ../components config $YAML >/dev/null + done esphome-compile: runs-on: ubuntu-latest @@ -235,3 +242,7 @@ jobs: # Compile only a few examples as they are all very similar - run: esphome -s external_components_source components compile yeelight_light_lamp9.yaml - run: esphome -s external_components_source components compile yeerc_ylyk01yl.yaml + - name: Write tests/secrets.yaml + shell: bash + run: 'echo -e "wifi_ssid: ssid\nwifi_password: password" > tests/secrets.yaml' + - run: esphome compile tests/validate-sdkconfig-options.yaml diff --git a/tests/.gitignore b/tests/.gitignore new file mode 100644 index 0000000..d8b4157 --- /dev/null +++ b/tests/.gitignore @@ -0,0 +1,5 @@ +# Gitignore settings for ESPHome +# This is an example and may include too much for your use-case. +# You can modify this file to suit your needs. +/.esphome/ +/secrets.yaml diff --git a/tests/validate-sdkconfig-options.yaml b/tests/validate-sdkconfig-options.yaml new file mode 100644 index 0000000..b1c2e8b --- /dev/null +++ b/tests/validate-sdkconfig-options.yaml @@ -0,0 +1,19 @@ +substitutions: + name: validate-sdkconfig-options + +esphome: + name: ${name} + min_version: 2024.10.0 + +esp32: + board: esp32doit-devkit-v1 + framework: + type: esp-idf + sdkconfig_options: + CONFIG_FREERTOS_UNICORE: y + CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + CONFIG_LOG_DEFAULT_LEVEL_NONE: y + advanced: + ignore_efuse_mac_crc: true + ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceil26.yaml b/yeelight_light_ceil26.yaml index 9e61d41..7ff5ead 100644 --- a/yeelight_light_ceil26.yaml +++ b/yeelight_light_ceil26.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceil29.yaml b/yeelight_light_ceil29.yaml index f5354d4..1c5f727 100644 --- a/yeelight_light_ceil29.yaml +++ b/yeelight_light_ceil29.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceilb.yaml b/yeelight_light_ceilb.yaml index 91d48ea..ffb8c0e 100644 --- a/yeelight_light_ceilb.yaml +++ b/yeelight_light_ceilb.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceilc.yaml b/yeelight_light_ceilc.yaml index 922c9d0..28a4c97 100644 --- a/yeelight_light_ceilc.yaml +++ b/yeelight_light_ceilc.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceiling10.yaml b/yeelight_light_ceiling10.yaml index 4b45e1c..2510ce9 100644 --- a/yeelight_light_ceiling10.yaml +++ b/yeelight_light_ceiling10.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceiling11.yaml b/yeelight_light_ceiling11.yaml index 614fe86..078885a 100644 --- a/yeelight_light_ceiling11.yaml +++ b/yeelight_light_ceiling11.yaml @@ -15,6 +15,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceiling15.yaml b/yeelight_light_ceiling15.yaml index 68c5102..be9afc3 100644 --- a/yeelight_light_ceiling15.yaml +++ b/yeelight_light_ceiling15.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceiling20.yaml b/yeelight_light_ceiling20.yaml index 84add2b..468c603 100644 --- a/yeelight_light_ceiling20.yaml +++ b/yeelight_light_ceiling20.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceiling22.yaml b/yeelight_light_ceiling22.yaml index 02d8d14..83b506b 100644 --- a/yeelight_light_ceiling22.yaml +++ b/yeelight_light_ceiling22.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_ceiling24.yaml b/yeelight_light_ceiling24.yaml index f62c667..1d789b3 100644 --- a/yeelight_light_ceiling24.yaml +++ b/yeelight_light_ceiling24.yaml @@ -14,6 +14,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_fancl5.yaml b/yeelight_light_fancl5.yaml index f4ae251..eadb16d 100644 --- a/yeelight_light_fancl5.yaml +++ b/yeelight_light_fancl5.yaml @@ -15,6 +15,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_lamp9.yaml b/yeelight_light_lamp9.yaml index f1e7c4e..d03c53a 100644 --- a/yeelight_light_lamp9.yaml +++ b/yeelight_light_lamp9.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeelight_light_strip6.yaml b/yeelight_light_strip6.yaml index 98eed4f..a3e49a5 100644 --- a/yeelight_light_strip6.yaml +++ b/yeelight_light_strip6.yaml @@ -11,6 +11,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeerc_ylyk01yl.yaml b/yeerc_ylyk01yl.yaml index f5e9d4e..bd0f341 100644 --- a/yeerc_ylyk01yl.yaml +++ b/yeerc_ylyk01yl.yaml @@ -12,6 +12,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true diff --git a/yeerc_ylyk01yl_fancl.yaml b/yeerc_ylyk01yl_fancl.yaml index 33b9ea7..85092c4 100644 --- a/yeerc_ylyk01yl_fancl.yaml +++ b/yeerc_ylyk01yl_fancl.yaml @@ -12,6 +12,10 @@ esp32: type: esp-idf sdkconfig_options: CONFIG_FREERTOS_UNICORE: y + # Please uncomment these parameters if fast booting is important to you + # CONFIG_BOOTLOADER_SKIP_VALIDATE_ON_POWER_ON: y + # CONFIG_BOOTLOADER_LOG_LEVEL_NONE: y + # CONFIG_LOG_DEFAULT_LEVEL_NONE: y advanced: ignore_efuse_mac_crc: true ignore_efuse_custom_mac: true