Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use with ESP32 and rgbww #18

Open
Gamerayers opened this issue Aug 12, 2024 · 0 comments
Open

Use with ESP32 and rgbww #18

Gamerayers opened this issue Aug 12, 2024 · 0 comments

Comments

@Gamerayers
Copy link

Gamerayers commented Aug 12, 2024

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:
- platform: esphome
password: !secret esphome_ota_password

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
fast_connect: true
ap:
ssid: ${device_name}
password: !secret esphome_ap_password

captive_portal:

web_server:
port: 80

light:
- platform: rgbww
name: ${device_name} Light
id: ledbulb
red: output_red
green: output_green
blue: output_blue
warm_white: output_warm_white
cold_white: output_cold_white
warm_white_color_temperature: 2200 K
cold_white_color_temperature: 5700 K

output:
- platform: ledc
id: output_green
pin: GPIO5
- platform: ledc
id: output_red
pin: GPIO4
- platform: ledc
id: output_blue
pin: GPIO6
- platform: ledc
id: output_warm_white
pin: GPIO7
- platform: ledc
id: output_cold_white
pin: GPIO3

sensor:
- platform: wifi_signal # Reports the WiFi signal strength/RSSI in dB
name: ${device_name} WiFi Signal dB
id: wifi_signal_db
update_interval: 60s
entity_category: "diagnostic"
- platform: uptime
name: ${device_name} Uptime Sensor

esp32_ble_tracker:
scan_parameters:

Adjust timing if the defaults do not work in your environment

interval: 1100ms

window: 1100ms

  active: true

bluetooth_proxy:
active: true
`

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant