batpred icon indicating copy to clipboard operation
batpred copied to clipboard

Set Charge Low Power Mode

Open BondBug opened this issue 1 year ago • 8 comments

Original Bug Report no 565 Single AC3 Inverter Economy 7 setup no export. When low power mode is selected it operates correctly but is sending repeated commands to the Inverter as shown in the GivTCP Log below. There are more off the same above the time line shown below when charging started at 00:30. The inverter charge is being correctly set it just sends the commands multiple times

New report back as requested below

Hi Trefor just checked the fix as requested and unfortunately the original problem is still occurring within the GIVTCP Log as below but also there is a minor error message in the Predbat Log when the process is trying to set the charge rate and it returns a message ( WARN: Inverter 0 set charge rate 500 via REST failed got 380 ) even though the GIVTCP Log is showing a change to 500 has been applied. This happened throughout the charge period.

as below

Predbat Log

2024-02-16 00:35:03.627599 INFO pred_bat: Inverter 0 current charge rate is 380 and new target is 500 2024-02-16 00:35:47.146204 INFO pred_bat: WARN: Inverter 0 set charge rate 500 via REST failed got 380 2024-02-16 00:35:47.168867 INFO pred_bat: Configuring charge window now (now 02-16 00:35:00 target set_window_minutes 30 charge start time 02-16 00:30:00 2024-02-16 00:35:47.170257 INFO pred_bat: Inverter 0 Current Target SOC is 80 already at target 2024-02-16 00:35:47.171491 INFO pred_bat: Adjust reserve to default as SOC 73 % is above target 80 % or charging active 2024-02-16 00:35:47.172757 INFO pred_bat: Inverter 0 Current reserve is 4.0 already at target 2024-02-16 00:35:47.180112 INFO pred_bat: Will not recompute the plan, it is 5.0 minutes old and max age is 30 minutes 2024-02-16 00:35:47.180981 INFO pred_bat: Completed run status Charging with Errors reported (check log)

And as before in the GICTCP Log I get repeated commands being applied every 5 mins even though the plan repeat is 30 mins see below this is repeated all through the charge window period not sure if this is meant to happen.

GIVTCP Log same thing happening as before 2024-02-16 00:30:11,195 - write - [INFO] - Setting battery charge rate to: 500 (2) 2024-02-16 00:30:16,825 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:30:23,264 - write - [INFO] - Setting battery charge rate to: 500 (2) 2024-02-16 00:30:24,603 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:30:32,565 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:30:44,714 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:30:58,155 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:31:06,284 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:31:12,874 - write - [INFO] - Setting battery charge rate to: 500 (2) 2024-02-16 00:31:18,473 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:31:24,904 - write - [INFO] - Setting battery charge rate to: 500 (2) 2024-02-16 00:31:26,254 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:31:34,244 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:35:04,981 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:35:12,918 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:35:20,710 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:35:27,308 - write - [INFO] - Setting battery charge rate to: 500 (2) 2024-02-16 00:35:32,713 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:35:40,619 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:40:04,009 - write - [INFO] - Setting battery charge rate to: 500 (2) 2024-02-16 00:40:08,123 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:40:15,883 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:40:25,577 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:40:37,563 - write - [INFO] - Setting battery charge rate 2 was a success 2024-02-16 00:40:45,263 - write - [INFO] - Setting battery charge rate 2 was a success

Regards

Dave Evans

------ Original Message ------ From "Trefor Southwell" <[email protected]> To "springfall2008/batpred" <[email protected]> Cc "BondBug" <[email protected]>; "Author" <[email protected]> Date 10/02/2024 19:22:14 Subject Re: [springfall2008/batpred] Set Charge Low Power Mode (Issue https://github.com/springfall2008/batpred/issues/565)

Closed https://github.com/springfall2008/batpred/issues/565 as completed.

BondBug avatar Feb 16 '24 09:02 BondBug

I've added a fix on main

springfall2008 avatar Feb 16 '24 18:02 springfall2008

Great thank you will test as soon as update is available

Regards

Dave Evans

------ Original Message ------ From "Trefor Southwell" @.> To "springfall2008/batpred" @.> Cc "BondBug" @.>; "Author" @.> Date 16/02/2024 18:54:13 Subject Re: [springfall2008/batpred] Set Charge Low Power Mode (Issue #760)

I've added a fix on main

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/760#issuecomment-1949116443, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4MAYVIQOHT6IZTLTTCYYO3YT6TNLAVCNFSM6AAAAABDLX2F2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGEYTMNBUGM. You are receiving this because you authored the thread.Message ID: @.***>

BondBug avatar Feb 16 '24 23:02 BondBug

Hi Trefor should I still be installing Main or 7.16 to test Low Power Mode fix

Regards

Dave Evans

------ Original Message ------ From "Trefor Southwell" @.> To "springfall2008/batpred" @.> Cc "BondBug" @.>; "Author" @.> Date 16/02/2024 18:54:13 Subject Re: [springfall2008/batpred] Set Charge Low Power Mode (Issue #760)

I've added a fix on main

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/760#issuecomment-1949116443, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4MAYVIQOHT6IZTLTTCYYO3YT6TNLAVCNFSM6AAAAABDLX2F2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGEYTMNBUGM. You are receiving this because you authored the thread.Message ID: @.***>

BondBug avatar Feb 17 '24 21:02 BondBug

Hi Trefor I have installed Main 7.16.1 and I am pleased to say the issues with using Set Charge Low Power Mode is fixed with no multiple repeats in the Givtcp Logs and no errors messages in the Predbat
Appdaemon Logs so all good brilliant work. Does the 7.16.0 Core update also have this fix in it as HACS is showing this as a update.

Regards

Dave Evans

------ Original Message ------ From "Trefor Southwell" @.> To "springfall2008/batpred" @.> Cc "BondBug" @.>; "Author" @.> Date 16/02/2024 18:54:13 Subject Re: [springfall2008/batpred] Set Charge Low Power Mode (Issue #760)

I've added a fix on main

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/760#issuecomment-1949116443, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4MAYVIQOHT6IZTLTTCYYO3YT6TNLAVCNFSM6AAAAABDLX2F2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGEYTMNBUGM. You are receiving this because you authored the thread.Message ID: @.***>

BondBug avatar Feb 18 '24 01:02 BondBug

Hi Trefor just for your info I have also test 7.16.0 to test Charge Low Power Mode and that appears to be working as well so all good thanks again for all your hard work

Regards

Dave Evans

------ Original Message ------ From "Dave Evans" @.> To "springfall2008/batpred" @.> Date 17/02/2024 21:28:03 Subject Re[2]: [springfall2008/batpred] Set Charge Low Power Mode (Issue #760)

Hi Trefor should I still be installing Main or 7.16 to test Low Power Mode fix

Regards

Dave Evans

------ Original Message ------ From "Trefor Southwell" @.> To "springfall2008/batpred" @.> Cc "BondBug" @.>; "Author" @.> Date 16/02/2024 18:54:13 Subject Re: [springfall2008/batpred] Set Charge Low Power Mode (Issue #760)

I've added a fix on main

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/760#issuecomment-1949116443, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4MAYVIQOHT6IZTLTTCYYO3YT6TNLAVCNFSM6AAAAABDLX2F2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNBZGEYTMNBUGM. You are receiving this because you authored the thread.Message ID: @.***>

BondBug avatar Feb 18 '24 05:02 BondBug

Great, yes I released this fix in 7.16.0 :)

springfall2008 avatar Feb 18 '24 10:02 springfall2008

Hi Trefor everything is working as expected with no error messages in either GIVTCP Log or Predbat LOG but I just wanted to check that the GICTCP Log is reporting what you would expect as it seems to report that the Charge Rate message is being sent every 5 Minutes even though there has been no change in the charge rate see below. The calculate plan time is set to 15 mins As I said it all is working fine and as I said the Prebat Log is not showing any errors

2024-02-20 01:30:04,018 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 01:30:05,576 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 01:35:03,808 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 01:35:05,185 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 01:40:03,976 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 01:40:05,333 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 01:40:16,157 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 01:40:17,704 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 01:45:05,141 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 01:50:05,126 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 01:55:05,340 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 01:55:17,477 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:00:05,694 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:05:07,399 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:10:04,931 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:10:17,259 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:15:03,835 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 02:15:05,196 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:20:05,122 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:25:03,587 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 02:25:04,943 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:25:16,882 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:30:03,590 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 02:30:04,943 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:35:05,144 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:40:05,077 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:40:17,638 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:45:03,589 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 02:45:05,945 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:50:08,776 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:55:05,146 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 02:55:15,926 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 02:55:17,289 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:00:04,851 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 03:00:06,398 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:05:03,601 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 03:05:04,952 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:10:06,144 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:10:18,211 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:15:04,938 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:20:05,061 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:25:03,596 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 03:25:04,945 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:25:16,749 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:30:03,791 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 03:30:05,734 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:35:03,798 - write - [INFO] - Setting battery charge rate to: 1625 (8) 2024-02-20 03:35:10,033 - write - [INFO] - Setting battery charge rate 8 was a success 2024-02-20 03:40:04,915 - write - [INFO] - Setting battery charge rate 9 was a success 2024-02-20 05:20:03,754 - write - [INFO] - Setting battery charge rate to: 1875 (9) 2024-02-20 05:20:05,106 - write - [INFO] - Setting battery charge rate 9 was a success 2024-02-20 05:35:06,345 - write - [INFO] - Setting battery charge rate 9 was a success 2024-02-20 05:50:04,963 - write - [INFO] - Setting battery charge rate 10 was a success 2024-02-20 06:00:03,801 - write - [INFO] - Setting battery charge rate to: 1750 (9) 2024-02-20 06:00:05,158 - write - [INFO] - Setting battery charge rate 9 was a success 2024-02-20 06:05:03,605 - write - [INFO] - Setting battery charge rate to: 3000 (50) 2024-02-20 06:05:04,959 - write - [INFO] - Setting battery charge rate 50 was a success 2024-02-20 07:00:03,782 - write - [INFO] - Setting battery discharge rate to: 0 (0) 2024-02-20 07:00:04,123 - write - [INFO] - Setting battery discharge limit 0 was a success 2024-02-20 07:00:11,905 - write - [INFO] - Disabling Charge was a success 2024-02-20 07:00:19,694 - write - [INFO] - Setting shallow charge 100 was a success 2024-02-20 07:30:03,778 - write - [INFO] - Setting battery discharge rate to: 3000 (50) 2024-02-20 07:30:04,117 - write - [INFO] - Setting battery discharge limit 50 was a success 2024-02-20 07:30:09,511 - read - [INFO] - Saving current energy stats at start of day rate tariff (Dynamic) 2024-02-20 07:30:16,191 - write - [INFO] - Setting shallow charge 4 was a success

Regards

Dave Evans

------ Original Message ------ From "Trefor Southwell" @.> To "springfall2008/batpred" @.> Cc "BondBug" @.>; "Author" @.> Date 18/02/2024 10:25:46 Subject Re: [springfall2008/batpred] Set Charge Low Power Mode (Issue #760)

Great, yes I released this fix in 7.16.0 :)

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/760#issuecomment-1951096031, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4MAYVI4RARWERTF54KHMMLYUHJKVAVCNFSM6AAAAABDLX2F2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGA4TMMBTGE. You are receiving this because you authored the thread.Message ID: @.***>

BondBug avatar Feb 20 '24 10:02 BondBug

Forgot to say I am on Economy 7 tariff and have set this up in the Apps.yaml file and set up as per your recommendations with switches set as per attachments.

Regards

Dave Evans

------ Original Message ------ From "Trefor Southwell" @.> To "springfall2008/batpred" @.> Cc "BondBug" @.>; "Author" @.> Date 18/02/2024 10:25:46 Subject Re: [springfall2008/batpred] Set Charge Low Power Mode (Issue #760)

Great, yes I released this fix in 7.16.0 :)

— Reply to this email directly, view it on GitHub https://github.com/springfall2008/batpred/issues/760#issuecomment-1951096031, or unsubscribe https://github.com/notifications/unsubscribe-auth/A4MAYVI4RARWERTF54KHMMLYUHJKVAVCNFSM6AAAAABDLX2F2GVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTSNJRGA4TMMBTGE. You are receiving this because you authored the thread.Message ID: @.***>

BondBug avatar Feb 20 '24 10:02 BondBug

I think this was fixed, please re-open if not.

springfall2008 avatar Nov 16 '24 15:11 springfall2008