StephanJoubert / home_assistant_solarman

Home Assistant component for Solarman collectors used with a variety of inverters.
Apache License 2.0
508 stars 190 forks source link

Not working in HA 2024.02 #512

Closed felipebraz closed 2 weeks ago

felipebraz commented 4 months ago

I receive the error: Querying [1 - 125] failed with exception [OSError: [Errno 30] Read-only file system]

HA Version:

Integration Version: 1.5.1

Model: deye_4mppt

sdhein commented 4 months ago

I receive the error: Querying [1 - 125] failed with exception [OSError: [Errno 30] Read-only file system]

HA Version:

  • Core: 2024.2.0
  • Front-end: 20240207.0

Integration Version: 1.5.1

Model: deye_4mppt

Also failing for me.

Runortyx commented 4 months ago

Same Problem here, freshly pulled the addon.

If i want do use the workflow: grafik

If i configured manually: `

Logger: homeassistant.config Source: config.py:1518 First occurred: 09:58:29 (1 occurrences) Last logged: 09:58:29 Platform error: sensor - Exception importing custom_components.solarman.sensor

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/loader.py", line 847, in get_platform cache[full_name] = self._import_platform(platform_name) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 864, in _import_platform return importlib.import_module(f"{self.pkg_path}.{platform_name}") ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/importlib/init.py", line 90, in import_module return _bootstrap._gcd_import(name[level:], package, level) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1310, in _find_and_load_unlocked File "", line 488, in _call_with_frames_removed File "", line 1387, in _gcd_import File "", line 1360, in _find_and_load File "", line 1331, in _find_and_load_unlocked File "", line 935, in _load_unlocked File "", line 994, in exec_module File "", line 488, in _call_with_frames_removed File "/config/custom_components/solarman/init.py", line 9, in from .const import * File "/config/custom_components/solarman/const.py", line 9, in LOOKUP_FILES = (os.listdir(os.path.dirname(file) + '/inverter_definitions')) ^^ NameError: name 'os' is not defined. Did you forget to import 'os'

The above exception was the direct cause of the following exception:

Traceback (most recent call last): File "/usr/src/homeassistant/homeassistant/config.py", line 1518, in async_process_component_config platform = p_integration.get_platform(domain) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/src/homeassistant/homeassistant/loader.py", line 856, in get_platform raise ImportError( ImportError: Exception importing custom_components.solarman.sensor

` Core 2024.2.1 Supervisor 2024.01.1 Operating System 11.5 Frontend 20240207.1

RichieGKB commented 4 months ago

As with the newest HomeAssistant 24.2 update a new Python version 3.12 was shipped as well, I assume the error might be related to this.

felipebraz commented 4 months ago

I made something a little insane but worked for me... I run a full backup, reinstalled my HA in the latest version, restored the backup and it's working so far. Don't know why or how, but it is... LoL

RaeesD commented 4 months ago

I had this problem too, fixed by downgrading docker to 24.0.9 as suggested here