sfstar / hass-victron

Integration for Home Assistant to fetch data from the victron gx device via modbusTCP
Apache License 2.0
157 stars 24 forks source link

missing Victron Solarcharger after change Charger hardware #179

Closed Heiko00000 closed 3 months ago

Heiko00000 commented 4 months ago

Hello,

I build a HA System with RP5 and actuell software Januar 2024. Yesterday, i musst change the MPPT 150/60 (faulty) against the same type.

In Victron VRM is the Charger find and work normaly.

The Rescan find no Solarcharger. Delate the Victron Hub in HA and Scan, 5 Items find, no Solarcharger.

New Apdate for Victron Cerbo GX von 3.13 to 3.22, no improvement. New Apdate HA to Home Assistant (2024.2.3) to 2024.2.5. no improvement. New apdate hass-victron to V0.1.7, no improvement.

Solarcharger have the Number 216 /281

Thanks Heiko

Heiko00000 commented 4 months ago

Hello,

I did a test, reconnected the defective solar charger to the Cerbo and after another scan HA found it. HA model number 224, Victron ID 278. Reconnected the new solar charger, HA cannot find a charger. Disabled the defective and disconnected solar charger in HA, no improvement.

Both solar chargers have the same hardware and software. built 2022 week 40 built 2022 week 49

Screenshot 2024-03-07 091624

Does anyone have an idea where the error is?

Thank you, Heiko

sfstar commented 3 months ago

Hello and thank you for opening this issue,

It seems that the new device might use an non-documented unit id. Thereby, causing this integration to not detect it upon scanning.

Valid unit id's this integrations checks are:

valid_unit_ids = [ 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 
                   11, 12, 20, 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 
                   31, 32, 33, 34, 40, 41, 42, 43, 44, 45, 46, 100, 223, 
                   224, 225, 226, 227, 228, 229, 230, 231, 232, 233, 234, 
                   235, 236, 237, 238, 239, 242, 243, 245, 246, 247
                   ]

Please check under: Services -> Modbus TCP -> Available Services to find what the unit id is of the new solarcharger.

Heiko00000 commented 3 months ago

Hello und thanks for your help.

The Solarcharge have the VRM Instance 281. In Hass-Victron it should be 216.

Heiko

sfstar commented 3 months ago

Hello @Heiko00000,

Is either 281 or 216 the id that is visible on this screen:

image

related to the victron solarcharger?

sfstar commented 3 months ago

You can try installing the latest main version by: Going to hacs Selecting redownload for the integration. There you select "main" as the version (since the unit id change hasn't been released yet).

After downloading, restart HA and perform a rescan of all available devices. This should then yield the new solarcharger as an device.

Heiko00000 commented 3 months ago

Hello, the solarcharger is found and works, thank you.

But I had to enter the number 216 directly in the "const.py" because the call "main" kept getting replaced by 0.1.7.

Greetings Heiko

sfstar commented 3 months ago

The release (v0.2.0) has been shipped. Closing issue, feel free to re-open if the issue persists with the new release