Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error since HA 1.2025 #36

Open
peterophet opened this issue Jan 4, 2025 · 13 comments
Open

Error since HA 1.2025 #36

peterophet opened this issue Jan 4, 2025 · 13 comments

Comments

@peterophet
Copy link

Platform error 'sensor' from integration 'hoymiles_dtu' - No module named 'pymodbus.framer.socket_framer'

I have this error since I updated to HA 1.2025. More people having this problem?

@ArekKubacki
Copy link
Owner

ArekKubacki commented Jan 4, 2025 via email

@peterophet
Copy link
Author

Thank you! Still a satisfied user of your integration. Works well with the Hoymiles DTU.

@marisvs
Copy link

marisvs commented Jan 5, 2025

I have the same error. It stopped working after HA Core update to 2025.1.0. Had to restore the previous version of HA Core since I don't want to miss the Solar energy information. I saw in the changelog of HA Core 2025.1.0 the following message "changed pymodbus module (Bump pymodbus version 3.7.4)".
See home-assistant/core#133175

@ArekKubacki
Copy link
Owner

ArekKubacki commented Jan 5, 2025 via email

@peterophet
Copy link
Author

That is great and fast.
Go to HACS - click on the Hoymiles DTU - download again - download - restart Home Assistant
Up and running again

@Golempl
Copy link

Golempl commented Jan 6, 2025

Still not working for me:
Error while setting up hoymiles_dtu platform for sensor

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/hoymiles_dtu/sensor.py", line 69, in setup_platform
raise Exception('Invalid configuration for Hoymiles DTU platform')
Exception: Invalid configuration for Hoymiles DTU platform

@kneschi2
Copy link

kneschi2 commented Jan 6, 2025

For me, the plugin no longer starts after the update. The entity is no longer available. When I restart, the message about starting the DTU_Hoymiles plugin no longer appears.

@marisvs
Copy link

marisvs commented Jan 7, 2025

Thanks for the fix 0.7.0. I have been able to increase to HA Core 2025.1.0 and apply 0.7.0 and I have now again the Solar panel information as before.

@ArekKubacki
Copy link
Owner

Still not working for me:

For me, the plugin no longer starts after the update. The entity is no longer available. When I restart, the message about starting the DTU_Hoymiles plugin no longer appears.

Please provide the most important information, i.e. HA version and version of the DTU module installed in HACS.

@Golempl
Copy link

Golempl commented Jan 7, 2025

If you need anything more, let me know.
My config:
Core 2025.1.1
Supervisor 2024.12.3
Operating System 14.1
Interfejs użytkownika 20250106.0

Hoymiles Plant DTU-Pro 0.7.0

Rejestrator: homeassistant.components.sensor
Źródło: helpers/entity_platform.py:366
integracja: Sensor (dokumentacja, Problemy)
Pierwsze zdarzenie: 11:10:46 (1 zdarzenia)
Ostatnio zalogowany: 11:10:46
Error while setting up hoymiles_dtu platform for sensor

Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 366, in _async_setup_platform
await asyncio.shield(awaitable)
File "/usr/local/lib/python3.13/concurrent/futures/thread.py", line 59, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/hoymiles_dtu/sensor.py", line 69, in setup_platform
raise Exception('Invalid configuration for Hoymiles DTU platform')
Exception: Invalid configuration for Hoymiles DTU platform

sensor:

  • platform: hoymiles_dtu
    host: 192.168.1.149
    name: Hoymiles PV
    dtu_type: 0
    monitored_conditions:
    • 'pv_power'
    • 'today_production'
    • 'total_production'
    • 'alarm_flag'
      monitored_conditions_pv:
    • 'pv_power'
    • 'today_production'
    • 'total_production'
    • 'pv_voltage'
    • 'pv_current'
    • 'grid_voltage'
    • 'temperature'
    • 'operating_status'
    • 'alarm_code'
    • 'alarm_count'
    • 'link_status'
      panels: 12

@ArekKubacki
Copy link
Owner

This means that the module is working but there is no communication with the DTU. Did it work correctly before? Did you reset the HA several times? Sometimes the DTU does not connect to the 1st time.

@Jarmo06
Copy link

Jarmo06 commented Jan 7, 2025

I just had the same issue as Golempl with HA version 2025.1.1. Even after updating to version Hoymiles Plant DTU-Pro 0.7.0, it didn't work. I reverted back to the older core version 2024.12.5 and Hoymiles Plant DTU-Pro v0.6.2, which works fine?

@Golempl
Copy link

Golempl commented Jan 7, 2025

It's been working for months without problem, just after last update of HA, i have rebooted DTU , checked if it's reachable and seems ok , but still unavailable

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants