Skip to content

8.19.1 throwing REST errors since 1.45am #2316

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
pacemaker82 opened this issue May 2, 2025 · 4 comments
Open

8.19.1 throwing REST errors since 1.45am #2316

pacemaker82 opened this issue May 2, 2025 · 4 comments
Assignees
Labels

Comments

@pacemaker82
Copy link
Contributor

pacemaker82 commented May 2, 2025

Describe the bug

Something related to
"Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set"

This started at 1.45am, and has continued since. I obviously took no action at this time as was asleep.

Log file

2025-05-02 08:00:14.849805: Warn: Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2025-05-02 08:00:14.880280: Warn: record_status Inverter 0 read bad REST data from http://homeassistant.local:6345/runAll - REST will be disabled
2025-05-02 08:00:14.880832: Inverter 0 SOC: 0.0kW 0% Current charge rate 156000000W Current discharge rate 156000000W Current power 0.0W Current voltage 52.0V
2025-05-02 08:00:14.880991: Error: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2025-05-02 08:00:14.911153: Warn: record_status Error: Inverter 0 unable to read charge window time as neither REST, charge_start_time or charge_start_hour are set
2025-05-02 08:00:14.911436: Error: Exception raised 
2025-05-02 08:00:14.915024: Error: Traceback (most recent call last):
  File "/config/predbat.py", line 1392, in run_time_loop
    self.update_pred(scheduled=True)
  File "/config/predbat.py", line 616, in update_pred
    self.fetch_inverter_data()
  File "/config/execute.py", line 647, in fetch_inverter_data
    inverter.update_status(self.minutes_now)
  File "/config/inverter.py", line 906, in update_status
    raise ValueError
ValueError

2025-05-02 08:00:14.949451: Info: record_status Error: Exception raised 
2025-05-02 08:00:14.949726: Error: 
@pacemaker82 pacemaker82 changed the title 8.19.1 throwing errors since 1.45am 8.19.1 throwing REST errors since 1.45am May 2, 2025
@pacemaker82
Copy link
Contributor Author

Looks to be related to GIVTCP at 1.45am, after Predbat set the charge schedule... any reason this would randomly happen?

I am restarting GivTCP to see if that helps (v3.1.6)

2025-05-02 01:44:51,920 - GivTCP - write       -  [INFO    ] - Setting Charge Slot 1 to: 01:30 - 02:00 was a success
2025-05-02 01:44:52,415 - GivTCP - write       -  [INFO    ] - Setting Charge Schedule to enable was a success
2025-05-02 01:50:14,410 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)
2025-05-02 01:50:14,436 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)
2025-05-02 01:50:14,495 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)
2025-05-02 01:50:14,520 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)
2025-05-02 01:55:14,990 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)

@pacemaker82
Copy link
Contributor Author

Restarting GivTCP has not resolved the issue

2025-05-02 08:15:14,880 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)
2025-05-02 08:15:14,905 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)
2025-05-02 08:15:14,959 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)
2025-05-02 08:15:14,981 - GivTCP - read        -  [ERROR   ] - Error getting data from cache: ('AttributeError', 'read.py', 2167)

@pacemaker82
Copy link
Contributor Author

pacemaker82 commented May 2, 2025

I've not been able to resolve the issue with GivTCP 3.1.6, even after hard reboot of HA device. Therefore rolled back to GivTCP 2.4.9 add on, restarted Predbat and I have a plan again. Will stay on 2.4.9 I think ...

Documenting here in case others have same problem (certainly seems others have this, no one has offered a solution that I can find...)

@SwiftRR
Copy link

SwiftRR commented May 4, 2025

I have been experiencing similar.
I first had issues with givTCP 3.1.6 but I have been keeping abreast of prepay updates to 8.19.4.
Predbat has been crashing and/or freezing.
I have now gone back to v8.19.1.

I may downgrade givTCP back to 2.4.9 but I have only just got it back after restoring from a backup.

Rob

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants