elupus / esphome-nibe

Esphome components for nibe heat pumps
MIT License
65 stars 20 forks source link

Component not found: nibegw #25

Closed jonaswikstrom closed 1 year ago

jonaswikstrom commented 1 year ago

Hello

Very grateful for this initiative, thank you. This is possible an issue of documentation combined with missing knowledge about ESPHome. Simply trying the minimal config using edit in the the yaml editor for an ESP32 connected device.

Getting the error message:

ERROR Unable to import component nibegw: Traceback (most recent call last): File "/esphome/esphome/loader.py", line 162, in _lookup_module module = importlib.import_module(f"esphome.components.{domain}") File "/usr/lib/python3.9/importlib/init.py", line 127, in import_module return _bootstrap._gcd_import(name[level:], package, level) File "", line 1030, in _gcd_import File "", line 1007, in _find_and_load File "", line 986, in _find_and_load_unlocked File "", line 680, in _load_unlocked File "", line 790, in exec_module File "", line 228, in _call_with_frames_removed File "/config/.esphome/external_components/b57125b4/components/nibegw/init.py", line 6, in from esphome.const import ( ImportError: cannot import name 'CONF_DEBUG' from 'esphome.const' (/esphome/esphome/const.py) Failed config

nibegw: [source /config/nibegateway.yaml:43]

Component not found: nibegw.

What is failing?

elupus commented 1 year ago

Sounds like something i need to fix. I think esphome have changed something.

elupus commented 1 year ago

Try again

jonaswikstrom commented 1 year ago

Still same problem...

jonaswikstrom commented 1 year ago

Trying an update of my ESPHome server here.

jonaswikstrom commented 1 year ago

Working now. My ESPServer were simply to old for the config to work. Everything compiles now.