syssi / esphome-yeelight-ceiling-light

ESPHome custom firmware for some Yeelight Ceiling Lights
Apache License 2.0
149 stars 22 forks source link

YLXD41YL - mac address errors after 2024.10 #89

Closed bedson87 closed 6 days ago

bedson87 commented 2 weeks ago

Everything works fine o 2024.09. After updating to ver 2024.10 there are errors: [D][esp-idf:000]: E (4412) system_api: Base MAC address from BLK3 of EFUSE version error, version = 77

Yaml:

substitutions:
  name: kuchnia-yeelight-ceiling

esphome:
  name: ${name}
  min_version: 2024.6.0

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: esp-idf
    sdkconfig_options:
      CONFIG_FREERTOS_UNICORE: y
    advanced:
      ignore_efuse_mac_crc: true

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  use_address: 192.168.10.21
  fast_connect: on
  manual_ip:
    static_ip: 192.168.10.21
    gateway: 192.168.10.1
    subnet: 255.255.255.0

ota:
  - platform: esphome
    password: "XXXXX"

api:
  encryption:
    key: "XXXXX"

logger:

sensor:
  - platform: adc
    pin: GPIO36
    name: "${name} adc1"
    attenuation: 12db
  - platform: adc
    pin: GPIO32
    name: "${name} adc2"
    attenuation: 12db
#dodatkowe sensory
  - platform: wifi_signal
    name: "${name} WiFi Signal"
    update_interval: 300s
    device_class: "signal_strength"

output:
  - platform: ledc
    pin: GPIO19
    id: output_warm
    frequency: 4882Hz
  - platform: ledc
    pin: GPIO21
    id: output_cold
    frequency: 4882Hz
  - platform: ledc
    pin: GPIO23
    id: output_nightlight
    frequency: 19531Hz

light:
  - platform: monochromatic
    name: "${name}-nightlight"
    id: night_light
    output: output_nightlight
    gamma_correct: 0.7
    on_turn_on:
      - light.turn_off: ceiling_light
  - platform: cwww
    name: "${name}"
    id: ceiling_light
    cold_white: output_cold
    warm_white: output_warm
    cold_white_color_temperature: 6500 K
    warm_white_color_temperature: 2700 K
    constant_brightness: true
    gamma_correct: 0.4
    on_turn_on:
      - light.turn_off: night_light
syssi commented 2 weeks ago

Does the ESP crash or are you still able to update the device using OTA?

bedson87 commented 2 weeks ago

You can upload old fw via ota. But you can't add it to ha

kntsoft commented 1 week ago

This is the same issue that https://github.com/esphome/issues/issues/6333 probably in the next release the ESPHome team will fix it.

You can fix it adding ignore_efuse_custom_mac

esp32:
  board: esp32doit-devkit-v1
  framework:
    type: esp-idf
    sdkconfig_options:
      CONFIG_FREERTOS_UNICORE: y
    advanced:
      ignore_efuse_mac_crc: true
      ignore_efuse_custom_mac: true
syssi commented 6 days ago

I've applied the required setting to the examples to avoid some hassle. Thanks for pointing out this issue and providing a solution!