elupus / hass_nibe

Home Assistant Nibe Uplink Integration
185 stars 54 forks source link

nable to prepare setup for platform nibe.climate: Platform not found #140

Closed bortek closed 2 years ago

bortek commented 2 years ago

Getting this error looks like it does not understand some of the attribute names? Any ideas?

I dont have anyt fan btw my pump is F1255

2022-08-09 22:08:57 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform nibe.climate: Platform not found (cannot import name 'ClimateEntityFeature' from 'homeassistant.components.climate' (/usr/src/homeassistant/homeassistant/components/climate/init.py)). 2022-08-09 22:08:57 ERROR (MainThread) [homeassistant.loader] Unexpected exception importing platform custom_components.nibe.sensor Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 603, in get_platform cache[full_name] = self._import_platform(platform_name) File "/usr/src/homeassistant/homeassistant/loader.py", line 620, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") File "/usr/local/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 850, in exec_module File "", line 228, in _call_with_frames_removed File "/config/custom_components/nibe/sensor.py", line 137, in device_class=SensorDeviceClass.DURATION, File "/usr/local/lib/python3.9/enum.py", line 429, in getattr raise AttributeError(name) from None AttributeError: DURATION 2022-08-09 22:08:57 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform nibe.sensor: Platform not found (Exception importing custom_components.nibe.sensor). 2022-08-09 22:08:57 ERROR (MainThread) [homeassistant.setup] Unable to prepare setup for platform nibe.fan: Platform not found (cannot import name 'FanEntityFeature' from 'homeassistant.components.fan' (/usr/src/homeassistant/homeassistant/components/fan/init.py)).

My config looks like this but even if I remove all that config I still get the same error.

nibe:
  # Default client identifier
  client_id: REMOVED

  # Default client secret
  client_secret: REMOVED

  # Default redirect url
  redirect_uri: 'http://localhost:8123/api/nibe/auth'

  systems:
    # System identifier to add extra entities too
    - system: REMOVED
elupus commented 2 years ago

Your home assistant looks too old.

bortek commented 2 years ago

well not the latest but not very old either :) Its version 2022.4.5 on HASS OS 7.6 .

You think it is the reason behind ?

bortek commented 2 years ago

I am updating it now. Lets see how it goes.

bortek commented 2 years ago

it all worked like a charm after I upgraded the HASS. Now I have re-added the integration and selected the checkbox to control the pump. How and what can I control using this integration. Is it possible to e.g. adjust the temp or activate temp lyx function?

Looks like the entities are only readable ones.

elupus commented 2 years ago

You can activate temp lux on one pf the climate entities if you have premium subscription. It can also adjust some offsets, but ive not tested it.

You can add virtual termostats (indoor smarthome temp sensors) those can set indoor temp targets and affect the temperature.