KaufHA / common

Common files between all products
19 stars 17 forks source link

Use with ESP32 and rgbww #18

Open Gamerayers opened 3 months ago

Gamerayers commented 3 months ago

I have tried to get it working with my rgbww light, but it doesn't like the fact that I'm using ESP-IDF and wants me to use Arduino for ESPHome. I can't use Arduino, so I am stuck with ESP-IDF due to PWM. And I want to use some other features of ESP32. Here's the code I have for my common yqaml. Was curious if you had any ideas on how to make it work.

` esphome: name: ${device_name} friendly_name: ${friendly_name} platformio_options: board_build.flash_mode: dio

esp32: board: esp32-c3-devkitm-1 framework: type: esp-idf sdkconfig_options: CONFIG_BT_BLE_50_FEATURES_SUPPORTED: y CONFIG_BT_BLE_42_FEATURES_SUPPORTED: y CONFIG_ESP_TASK_WDT_TIMEOUT_S: "10"

Enable logging

logger:

Enable Home Assistant API

api: encryption: key: ${api_encrypt}

ota: