HA Palm List index out of range

9 comments started 2023-08-02 last 2023-08-08
Home AutomationHome Assistant
T
#1 TX200

palm_soc - [INFO ] - PALM... PV Automated Load Manager Version:v1.0.0SoC
2023-08-02 00:20:41,687 - Inv1 - palm_soc - [INFO ] - No second array
2023-08-02 00:20:41,688 - Inv1 - palm_soc - [INFO ] - Successful Solcast download.
2023-08-02 00:20:41,689 - Inv1 - palm_soc - [INFO ] - Applying BST offset to Solcast data
Traceback (most recent call last):
File "/app/GivTCP_1/palm_soc.py", line 704, in <module>
solcast.update()
File "/app/GivTCP_1/palm_soc.py", line 619, in update
pv_est10[i] = int(solcast_data_1['forecasts'][cntr]['pv_estimate10'] * 1000)
IndexError: list index out of range
2023-08-02 00:30:31,931 - Inv1 - read - [INFO ] - Saving current energy stats at start of night rate tariff (Dynamic)
2023-08-02 01:35:24,264 - Inv1 - read - [ERROR ] - Battery Object empty so skipping
2023-08-02 04:06:20,095 - Inv1 - read - [ERROR ] - Battery Object empty so skipping
2023-08-02 04:30:34,418 - Inv1 - read - [INFO ] - Saving current energy stats at start of day rate tariff (Dynamic)

@stevelewis Something not quite right here?

S
#2 stevelewis

TX200 I'll take a look in the next few days (I'm away from home ATM). The non-HA version of PALM is working fine for me and this part of the code should be identical. I've seen an issue in the past with Solcast returning short data and this could be a repeat.

T
#3 TX200

Just to add it didn't work this morning either, so not a one off.

I set the target manually last night just in case (might be a sunny day today? 🤞😁)

D
#4 danerf

I get the same error.
I tried downgrading last night to 2.2.4 but left auto update on the add on. 🙃 fully charging to 100 after updating to 2.3.x. could be a coincidence

S
#5 stevelewis

danerf there was an issue in merging the code for GIVTCP v2.3. I've corrected the code and raised a pull request to get the fix released. The previous version works correctly, as do the standalone versions of PALM.

D
#6 danerf

stevelewis 👍 great. Thanks for your time modding the addon

T
#7 TX200

stevelewis do you have one of those buy me a coffee links? Or are you just in this for the fun? 😀

T
#8 TX200

All back to normal now, cheers. Working fine last two nights. 👍

S
#9 stevelewis

TX200 thanks for the feedback, glad it's working properly again. Just waiting for a sunny day after done full ones when the new "overmorrow" feature will kick in.