KaufHA / kauf-rgbww-bulbs

Files for the KAUF RGBWW Smart Bulbs
42 stars 18 forks source link

Component not found: button ESPHOME 2024.6.1 #64

Closed m1k3n34l closed 3 months ago

m1k3n34l commented 3 months ago

INFO ESPHome 2024.6.1 INFO Reading configuration /config/esphome/kauf-bulb-7c3272.yaml... INFO Updating https://github.com/KaufHA/kauf-rgbww-bulbs@None ERROR Unable to load component button: Traceback (most recent call last): File "/esphome/esphome/loader.py", line 176, in _lookup_module module = importlib.import_module(f"esphome.components.{domain}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/lib/python3.11/importlib/init.py", line 126, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1206, in _gcd_import File "", line 1178, in _find_and_load File "", line 1149, in _find_and_load_unlocked File "", line 690, in _load_unlocked File "", line 940, in exec_module File "", line 241, in _call_with_frames_removed File "/esphome/esphome/components/button/init.py", line 48, in cv.ENTITY_BASE_SCHEMA.extend(web_server.WEBSERVER_SORTING_SCHEMA) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ AttributeError: module 'esphome.components.web_server' has no attribute 'WEBSERVER_SORTING_SCHEMA' Failed config

button: [source /data/packages/0cf47246/kauf-bulb.yaml:114]

Component not found: button.

bkaufx commented 3 months ago

You might not have our latest yaml. Maybe clean build files or delete the .esphome/packages folder manually.

teamRibcage commented 3 months ago

I was actually getting the same error myself until a few updates got pushed to the ESPHome repositories last evening. Make sure your Container/ESPHome files and .yaml configurations are up to date and give it another go. Everything was compiling correctly for me again as of around 20:00 EDT yesterday.

May or may not be your issue, but just in case here's my .yaml for my BLF10 Bulbs. Good luck! 🙂

esphome:
  comment: >
    Den Lamp #1 - KAUF Smart Bulb Model: BLF10

substitutions:
  name: den-lamp-1
  friendly_name: Den Lamp 1
  light_restore_mode: RESTORE_AND_OFF  # Set Default State at Power-On - Always Off

packages:
  kauf.rgbww: github://KaufHA/kauf-rgbww-bulbs/kauf-bulb.yaml

api:
  encryption:
    key: !secret den_lamp1_key

ota:
  - platform: esphome
    password: !secret den_lamp1_ota

safe_mode:
  disabled: false

wifi:
  ssid: !secret den_ssid
  password: !secret den_password
  # use_address: 192.168.xx.xx

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "DenLamp1AP"
    password: !secret recovery_password
m1k3n34l commented 3 months ago

Interesting; Clean Build failed in the same manner, could find no local cache of Kauf yaml files, same results after HA restart, then suddenly started working overnight. Didn't realize the ESPHOME repos were updated between builds, but it seems to have self-resolved (now on to ESPHOME 6.2...)