britkat1980 / ha-addons

11 stars 5 forks source link

Upgrading from 2.4.x to v3. Advice please. #16

Closed mprowe closed 4 weeks ago

mprowe commented 1 month ago

I am running Home Assistant with GivTCP Addon installed. Over the last couple of upgrades I have noticed this comment in the Change Log: Future updates from v3 will be pushed to https://github.com/britkat1980/ha-addons. Please add this to your Home Assistant addon Store to get the upcoming v3 release

Checking in my Add-On store I see this: image I this good enough? Will an update happen automaticly at some time? Or do I need to "press a button"?

And should I? Is v3 for everyone? Or is it case dependant?

Regards, Martin.

britkat1980 commented 1 month ago

Yes this is all ready for v3. Whether you decide to upgrade or not depends on what inverter you have. Some is only support via v3. However there are a huge amount of performance benefits and stability improvements in v3, and I would recommend updating.

mprowe   @. @.)>   10 Sep 2024 at 07:00:58   wrote:

I am running Home Assistant with GivTCP Addon installed. Over the last couple of upgrades I have noticed this comment in the Change Log: Future updates from v3 will be pushed to https://github.com/britkat1980/ha-addons. Please add this to your Home Assistant addon Store to get the upcoming v3 release

Checking in my Add-On store I see this: image.png (view on web) (https://github.com/user-attachments/assets/45c3a662-6275-43e9-8bc9-aef6562af721)

I this good enough? Will an update happen automaticly at some time? Or do I need to "press a button"?

And should I? Is v3 for everyone? Or is it case dependant?

Regards, Martin.

Reply to this email directly, view it on GitHub (https://github.com/britkat1980/ha-addons/issues/16), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQPLJBTERCMNKQRQZ433UF3ZV2DJTAVCNFSM6AAAAABN562HL2VHI2DSMVQWIX3LMV43ASLTON2WKOZSGUYTKNBYGE4TSMQ).

You are receiving this because you are subscribed to this thread.Message ID: @.***>

mprowe commented 1 month ago

Okay. Happy to "upgrade"... But I can't find a button? Do I need to Uninstall v2.4.9 first AND then install v3? Regards, M.

britkat1980 commented 1 month ago

v3 isn't out just yet, update to 2.4.9 then when v3 is ready you'll get the message

britkat1980 commented 4 weeks ago

v3 out now

mprowe commented 3 weeks ago

Do I need to uninstall 2.4.9 first? Will the sensor IDs remain the same or will I need to redo my Automations?

gcoan commented 3 weeks ago

Do I need to uninstall 2.4.9 first?

Will the sensor IDs remain the same or will I need to redo my Automations?

You don't need to uninstall 2.4.9, I have it still installed alongside v3 and have swapped between the two several times.

The sensors are all the same names so no dashboard or automation changes required although I did find an issue with the battery sensors not working in v3. I believe there is a fix to this in 3.0.1 but I have not tried it yet

mprowe commented 3 weeks ago

I have it still installed alongside v3 and have swapped between the two several times.

"Swapped"? How do you do that?

gcoan commented 3 weeks ago

I have it still installed alongside v3 and have swapped between the two several times.

"Swapped"? How do you do that?

I simply shutdown the v2 add-on and start the v3 add-on, they are separate add-on's in the add-on store. Just need to make sure that you tick/untick the start on boot options appropriately, and as I use Predbat I have to change the auto-restart config that restarts GivTCP if predbat detects a comms failure (although v3 seems to detect such failures itself better)

mprowe commented 3 weeks ago

... bitten the bullet and attempted to swap to Ver 3.0.0! But, not sure what I am looking at? Watching my MQTT Exporer, I see no change since I stopped Ver 2.4.1. image If I navigate (as suggested in the notes) to the web config , I note the MQTT tab. This tab has a User/Password defined. How should I use this? Do I change it to use the User/Password that I have been using for GivTCP 2.4.1? Or do I add this new User/Password to my MQTT server? Yes, I have read the Notes - but this and other questions are not covered. Regards, M.

gcoan commented 3 weeks ago

With v3 you don't need to add your existing MQTT user to GivTCP (as you had to do with v2). Just leave the fields as they are and GivTCP v3 will auto populate.

Nothing needed to be changed in MQTT either for v3 to work on my HA

mprowe commented 3 weeks ago

Thanks, and yes, given time (30mins?) the numbers are showing up in the MQTT Explorer. Next issue is the Tariff settings in the Config page.

  1. Are the Day Start/Night Start UTC or local?
  2. Where is the Export rate defined? Regards, M.
britkat1980 commented 3 weeks ago

Day/Night times are timezone aware, so they will be local time. Export limit is defined by installer at commission time and is read only

mprowe commented 3 weeks ago

Sorry. Not explained my question properly. In the new Dashboard, there are fields showing the Imported energy (kWh) & Cost (£). There are also fields for Exported energy & Cost. To calculate the exported income the program will need to know the unit cost that my utility supplier is offering. Where is that value stored in GivTCP?

mprowe commented 3 weeks ago

Alert!!!! Just upgraded to 3.0.2 .... and it won't run! ` HTTP 9/25/2024 1:00:46 PM 127.0.0.1 GET /js/converters.js HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 8 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 8 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 8 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 7 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 8 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 GET /app.json HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 3 ms 2024-09-25 13:56:23,751 - Startup - startup - [INFO ] - ==================== STARTING GivTCP========================== Traceback (most recent call last): File "/app/startup.py", line 315, in mask=str(interface['ipv4']['address']).split('/')[1][:-2]


IndexError: list index out of range
2024-09-25 13:58:42,216 - Startup - startup     -  [INFO    ] - ==================== STARTING GivTCP==========================
Traceback (most recent call last):
  File "/app/startup.py", line 316, in <module>
    mask=str(interface['ipv4']['address']).split('/')[1][:-2]
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2024-09-25 14:00:01,240 - Startup - startup     -  [INFO    ] - ==================== STARTING GivTCP==========================
Traceback (most recent call last):
  File "/app/startup.py", line 316, in <module>
    mask=str(interface['ipv4']['address']).split('/')[1][:-2]
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range
2024-09-25 14:04:34,448 - Startup - startup     -  [INFO    ] - ==================== STARTING GivTCP==========================
Traceback (most recent call last):
  File "/app/startup.py", line 316, in <module>
    mask=str(interface['ipv4']['address']).split('/')[1][:-2]
         ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^^
IndexError: list index out of range`
britkat1980 commented 3 weeks ago

Should be fixed in 3.0.3

mprowe   @. @.)>   25 Sep 2024 at 14:07:43   wrote:

Alert!!!!

Just upgraded to 3.0.2 .... and it won't run! HTTP 9/25/2024 1:00:46 PM 127.0.0.1 GET /js/converters.js HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 8 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 8 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 8 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 7 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 8 ms HTTP 9/25/2024 1:00:46 PM 127.0.0.1 GET /app.json HTTP 9/25/2024 1:00:46 PM 127.0.0.1 Returned 304 in 3 ms 2024-09-25 13:56:23,751 - Startup - startup - [INFO ] - ==================== STARTING GivTCP========================== Traceback (most recent call last): File "/app/startup.py", line 315, in mask=str(interface['ipv4']['address']).split('/')[1][:-2] ~~~~~~~~~~^^^ IndexError: list index out of range 2024-09-25 13:58:42,216 - Startup - startup - [INFO ] - ==================== STARTING GivTCP========================== Traceback (most recent call last): File "/app/startup.py", line 316, in mask=str(interface['ipv4']['address']).split('/')[1][:-2] ~~~~~~~~~~^^^ IndexError: list index out of range 2024-09-25 14:00:01,240 - Startup - startup - [INFO ] - ==================== STARTING GivTCP========================== Traceback (most recent call last): File "/app/startup.py", line 316, in mask=str(interface['ipv4']['address']).split('/')[1][:-2] ~~~~~~~~~~^^^ IndexError: list index out of range 2024-09-25 14:04:34,448 - Startup - startup - [INFO ] - ==================== STARTING GivTCP========================== Traceback (most recent call last): File "/app/startup.py", line 316, in mask=str(interface['ipv4']['address']).split('/')[1][:-2] ~~~~~~~~~~^^^ IndexError: list index out of range

Reply to this email directly, view it on GitHub (https://github.com/britkat1980/ha-addons/issues/16#issuecomment-2374039728), or unsubscribe (https://github.com/notifications/unsubscribe-auth/AQPLJBWZW2I4YKYB76W4X5LZYKYR5AVCNFSM6AAAAABN562HL2VHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDGNZUGAZTSNZSHA).

You are receiving this because you modified the open/close state.Message ID: @.***>

mprowe commented 3 weeks ago

Sorry. But.... Glad to see 3.0.3 this morning. However, I now seem to have lost connection with my battery? Not sure how to pass the information in text-form, so it will have to be screenshot (sorry).

image