-
Notifications
You must be signed in to change notification settings - Fork 4
Description
When installing this repo to my config-folder and add your example configuration for cometblue I cannot compile the config:
esphome from docker 2022.6.2
INFO Reading configuration heizung.yaml...
ERROR Unable to import component cometblue.climate:
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 "<frozen importlib._bootstrap>", line 1030, in _gcd_import
File "<frozen importlib._bootstrap>", line 1007, in _find_and_load
File "<frozen importlib._bootstrap>", line 986, in _find_and_load_unlocked
File "<frozen importlib._bootstrap>", line 680, in _load_unlocked
File "<frozen importlib._bootstrap_external>", line 790, in exec_module
File "<frozen importlib._bootstrap>", line 228, in _call_with_frames_removed
File "/config/custom_components/cometblue/climate.py", line 5, in <module>
from esphome.const import CONF_ID, CONF_TIME_ID, CONF_MAC_ADDRESS, \
ImportError: cannot import name 'ESP_PLATFORM_ESP32' from 'esphome.const' (/esphome/esphome/const.py)
INFO Detected timezone 'Etc/UTC'
Failed config
climate.cometblue: [source heizung.yaml:98]
Platform not found: 'climate.cometblue'.
platform: cometblue
pin: 0
id: trv_cb1
name: Radiator 1
mac_address: BA:A1:8F:BC:E1:73
update_interval: 5min
temperature_offset: 0
window_open_sensitivity: 4
window_open_minutes: 10
I found a thread on github with the same error message:
ImportError: cannot import name 'ESP_PLATFORM_ESP32'
After looking at the changes they made to solve the problem I got a little stuck...
Removing the import of ESP_PLATFORM_ESP32 seems to break more and I have not idea what to do next - right now I am just hacking around from one error to the next...
Since I am not deep in that code I could not see what to change to get it running:
probably a similar issue with a current version of esphome?
I would love to control my cometblue valves from my esp32 instead of the raspi as it is working right now!
Any chance someone may have a look at the (kinda old) code to find a solution?
If more information is needed I can provide then just let me know!
Any help would be appreciated - thx!