Skip to content

Commit 4f9ffd0

Browse files
Change to timeout values, minor update to template config
1 parent 350eced commit 4f9ffd0

2 files changed

Lines changed: 8 additions & 4 deletions

File tree

apps.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ pred_bat:
4545
load_scaling: 1.0
4646

4747
# Days previous is the number of days back to find historical load data
48+
# Recommended is 7 to capture day of the week but 1 can also be used
4849
days_previous: 7
4950

5051
# Scaling factor applied to pv data, tune down if you want to be more pessimistic on PV production vs Solcast
@@ -69,11 +70,13 @@ pred_bat:
6970
calculate_best: True
7071
# best_soc margin : added to the final SOC estimate (in kwh) to set the battery charge level (pushes it up).
7172
# Best not used with multiple charge windows as it tends up limit everything.
72-
# best_soc_min : sets the minimum charge level (in kwh) for overnight charging
73+
# best_soc_min : sets the minimum charge level (in kwh) for charging during each slot (set to 0 if you want to skip some slots)
7374
# best_soc_keep : is minimum battery level to try to keep above during the whole period of the simulation time
75+
# best_soc_step: is the accuracy to calculate the charge levels to, higher values make calculations quicker, smaller ones will take longer (recommended 0.5 or 0.25)
7476
best_soc_margin: 0
75-
best_soc_min: 2
77+
best_soc_min: 0
7678
best_soc_keep: 2
79+
best_soc_step: 0.25
7780

7881
# Metric min improvement sets the minimum cost improvement that it's worth lowering the battery SOC % for
7982
# If it's 0 then this is disabled.
@@ -129,6 +132,7 @@ pred_bat:
129132
octopus_intelligent_charge_rate: 7.5
130133

131134
# Threshold below average rates as the minimum to consider for a charge window, 0.8 = 80% of average rate
135+
# If you set this too low you might not get enough charge slots. If it's too high you might get too many in the 24-hour period (max is 10)
132136
rate_low_threshold: 0.8
133137

134138
# When enabled the next charge window will be automatically configured based on the incoming rates

predbat.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -611,10 +611,10 @@ def write_and_poll_option(self, name, entity, new_value):
611611
GivTCP Workaround, keep writing until correct
612612
"""
613613
old_value = ""
614-
tries = 16
614+
tries = 12
615615
while old_value != new_value and tries > 0:
616616
entity.call_service("select_option", option=new_value)
617-
time.sleep(2)
617+
time.sleep(5)
618618
old_value = entity.get_state()
619619
tries -=1
620620
if tries == 0:

0 commit comments

Comments
 (0)