-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Component error: modbus - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py) #112
Comments
I can confirm after last update: Setup failed for modbus: Unable to import component: cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py) Victron is working, but my modbus in confguration.yaml is not working anymore after update to 0.1.3 After reverting back to 0.1.2 my modbus config is working again (aswell as the victron*) After rebooting HASS victron (0.1.2) is working again. |
Same here :( |
Unfortunately +1 on the error: Setup failed for modbus: Unable to import component: cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py) |
same here uninstalled it with hacs but problem is still there. please fix it |
my whole system relies on the normal modbus for reading about 20 energy meter |
i have forked your repository and changed the pymodbus version to 3.1.1 in manifest.json after insalling that package with hacs i can use the normal modebus system and victron |
Sorry that i'm unable to quickly patch issues with this integration at the moment. |
After upgrading to HASS 2023.8.4 and re-installing this version 0.1.3, for me the issue seems to be solved. Both the Victron and normal modbus (Energy kWh meters Hiking via tcp and standard HASS modbus) seem to be working and updating as normal. It's running like this for 50+ hours, no complaints anymore. |
Please test the beta v0.1.4 release of this interation (this is a copy paste reply which isn't customized for each issue v.0.1.4 is attempting to adres). |
Hi ,
beta v0.1.4 broke the entire intergration in that it couldnt start the intergration ,
Regards
…________________________________
From: sfstar ***@***.***>
Sent: Monday, September 4, 2023 9:48 PM
To: sfstar/hass-victron ***@***.***>
Cc: Denzel Marimuthu ***@***.***>; Author ***@***.***>
Subject: Re: [sfstar/hass-victron] Component error: modbus - cannot import name 'Defaults' from 'pymodbus.constants' (/usr/local/lib/python3.11/site-packages/pymodbus/constants.py) (Issue #112)
Please test the beta v0.1.4 release of this interation (this is a copy paste reply which isn't customized for each issue v.0.1.4 is attempting to adres).
Make sure that (in cae this applies to you) the core modbus integration is also fully enabled after bumping to version 0.1.4 and let me know if the issue persists.
—
Reply to this email directly, view it on GitHub<#112 (comment)>, or unsubscribe<https://github.com/notifications/unsubscribe-auth/ANWEXBEV2COBPP3AGIKDQVTXYYV73ANCNFSM6AAAAAA327Z7CM>.
You are receiving this because you authored the thread.Message ID: ***@***.***>
|
(after installing the Beta I was able to restart though) |
Later releases adressed the incompatibility between the HA core modbus integrations pymodbus version being used and this integrations pymodbus usage. |
Good Day,
Home Assistant 2023.8.3
Supervisor 2023.08.1
Operating System 10.5
Frontend 20230802.1 - latest
Victron Integration : latest
I got this issue this morning :
Updating state for sensor.victron_solarcharger_tracker_2_pv_power_1 (<class 'custom_components.victron.sensor.VictronSensor'>) took 0.726 seconds. Please report it to the custom integration author.
9:08:19 AM – (WARNING) helpers/entity.py
Error while setting up victron platform for number
9:04:52 AM – (ERROR) Number (custom integration)
TemplateError('ValueError: Template error: float got invalid input 'unavailable' when rendering template '{{ states('sensor.victron_tank_remaining_21')|float() }}' but no default was specified') while processing template 'Template<template=({{ states('sensor.victron_tank_remaining_21')|float() }}) renders=5478>' for attribute '_attr_native_value' in entity 'sensor.jojo_1'
9:04:50 AM – (ERROR) helpers/template_entity.py - message first occurred at 9:04:50 AM and shows up 3 times
Regards
The text was updated successfully, but these errors were encountered: