Closed cburghardt closed 6 months ago
Try asking in pymodbus.
So is that a regression? Can I change the config somehow? If that's an issue of the underlying module it would affect everybody?
I can try pushing to pymodbus 3.6.6 in a pre-release.
It's probably a regression, definitely a bug in pymodbus. Updating HA can update the version of pymodbus that HA ships with. My integration will use whatever the current version is as long as it meets the minimum API requirements (currently pymodbus 3.5.x). I will usually push releases every now and then to track some HA equivalent minimum.
You can change the pymodbus version the integration will require by editing manifest.json
file.
So, for example, if you weren't seeing this problem in HA 2024.2.x but the problem started in 2024.3.1 or 2024.3.0 then you can determine which version of pymodbus is causing it based on what each those versions of HA ships with.
I'll try the version with pymodbus 3.6.6 once it is out. For now I am reloading the integration every few hours.
Just for the record, I can confirm that setting "requirements": ["pymodbus==3.6.4"]
in manifest.json
fixes the issue after a restart. I am running OS Version: Home Assistant OS 12.1
and Home Assistant Core: 2024.3.1
and I only noticed the issue in 2024.3.1
where the connection to the inverter terminates after only a few minutes following a restart.
HA 2024.3.1 comes with pymodbus 3.6.5
HA 2024.3.0 comes with pymodbus 3.6.4
All of the HA 2024.2.x releases had pymodbus 3.6.3
Hello, I have the same problem as you, approximately once a day, the integration becomes unavailable Same version Core 2024.3.1 Supervisor 2024.03.0 Operating System 12.1 Interface utilisateur 20240307.0
As per this comment, I have manually modified my manifest.json
requirements
to 3.6.6
as below:
{
"domain": "solaredge_modbus_multi",
"name": "SolarEdge Modbus Multi",
"codeowners": ["@WillCodeForCats"],
"config_flow": true,
"dependencies": [],
"documentation": "https://github.com/WillCodeForCats/solaredge-modbus-multi/wiki",
"integration_type": "hub",
"iot_class": "local_polling",
"issue_tracker": "https://github.com/WillCodeForCats/solaredge-modbus-multi/issues",
"loggers": ["custom_components.solaredge_modbus_multi"],
"requirements": ["pymodbus>=3.6.6"],
"version": "2.4.13-pre.3"
}
Core 2024.3.1 Supervisor 2024.03.0 Operating System 12.1 Frontend 20240307.0
I will now monitor for further issues.
Basically 2.4.13-pre.3 just aligns requirements with what Home Assistant 2024.3.0 uses. There are no code changes in it.
Basically 2.4.13-pre.3 just aligns requirements with what Home Assistant 2024.3.0 uses. There are no code changes in it.
My system rebooted with the higher requirement (>=3.6.6
vs >=3.6.4
), and is currently working correctly. Hopefully, the connection issue will disappear, at which point you may consider increasing the requirement more permanently. I will update if nothing happens in the next week.
Yes if that fixes it I will push the pymodbus min to 3.6.6.
hello I have the haos version so no command line access to add pymodbus higher version or there is a method thank you
hello I have the haos version so no command line access to add pymodbus higher version or there is a method thank you
If you are comfortable editing a file, you can use your favourite file viewer addon (I use the VIsual Studio Code addon in HAOS), and navigate to custom_components/solaredge_modbus_multi/manifest.json
in your config
folder.
You will see a file that looks like above, the line
"requirements": ["pymodbus>=3.6.4"],
needs to be changed to
"requirements": ["pymodbus>=3.6.6"],
And then you should restart Home Assistant and confirm the addon loads correctly.
Note, manual changes to the manifest will be overridden next time you update the addon, so this is a temporary change.
Home Assistant 2024.3.2 now has pymodbus v3.6.6.
bonjour j'ai la version haos donc pas d'accès en ligne de commande pour ajouter une version supérieure de pymodbus ou il y a une méthode merci
Si vous êtes à l'aise avec l'édition d'un fichier, vous pouvez utiliser votre module complémentaire de visualisation de fichiers préféré (j'utilise le module complémentaire VIsual Studio Code dans HAOS) et accéder à
custom_components/solaredge_modbus_multi/manifest.json
votreconfig
dossier.Vous verrez un fichier qui ressemble à celui ci-dessus, la ligne
"requirements": ["pymodbus>=3.6.4"],
doit être modifiée en"requirements": ["pymodbus>=3.6.6"],
Et puis vous devez redémarrer Home Assistant et confirmer que le module complémentaire se charge correctement.
Notez que les modifications manuelles apportées au manifeste seront annulées la prochaine fois que vous mettrez à jour le module complémentaire, il s'agit donc d'une modification temporaire.
Thank you the modification are install I deactivated the auto restart of the integration we will see. Have a nice day
Fixed in Home Assistant 2024.3.2
Describe the bug
The connection to the inverter dies roughly once per day. It doesn't recover so I need to reload the integration. I think this started with 2024.3.1
Expected behavior
Connection recovers
Screenshots
No response
Diagnostic File
config_entry-solaredge_modbus_multi-b86bc24f1ca70258f7ffd41889955498.json
Debug logs
Home Assistant Version
2024.3.1
solaredge-modbus-multi Version
2.4.12
Installation Type
HAOS
Read the Instructions
Additional Context
No response