Skip to content

Commit 9e90984

Browse files
Merge pull request #34 from BottlecapDave/develop
New release
2 parents 1a0b825 + 2922b9b commit 9e90984

File tree

3 files changed

+5
-5
lines changed

3 files changed

+5
-5
lines changed

_docs/blueprints/target_timeframes_octopus_energy_carbon_intensity.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ blueprint:
4646
multiple: false
4747
octopus_energy_free_electricity_weighting:
4848
name: Free Electricity weighting
49-
description: The weighting to apply to the value if a rate period falls within a free electricity session.
49+
description: The weighting to apply to the value if a rate period falls within a free electricity session. The lower, the more the period will be favoured.
5050
default: 1
5151
selector:
5252
number:
@@ -120,7 +120,7 @@ action:
120120
{%- set all_oe_rates = all_oe_rates + state_attr(octopus_energy_next_day_rates, 'rates') -%}
121121
{%- endif -%}
122122
{%- set free_electricity_rates = [] -%}
123-
{%- if state_attr(octopus_energy_free_electricity, 'rates') != None -%}
123+
{%- if state_attr(octopus_energy_free_electricity, 'events') != None -%}
124124
{%- set free_electricity_rates = state_attr(octopus_energy_free_electricity, 'events') -%}
125125
{%- endif -%}
126126

_docs/blueprints/target_timeframes_octopus_energy_with_free_electricity.yaml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ blueprint:
5656
multiple: false
5757
octopus_energy_free_electricity_weighting:
5858
name: Free Electricity weighting
59-
description: The weighting to apply to the value if a rate period falls within a free electricity session.
59+
description: The weighting to apply to the value if a rate period falls within a free electricity session. The lower, the more the period will be favoured.
6060
default: 1
6161
selector:
6262
number:
@@ -94,7 +94,7 @@ action:
9494
{%- set all_rates = all_rates + state_attr(octopus_energy_next_day_rates, 'rates') -%}
9595
{%- endif -%}
9696
{%- set free_electricity_rates = [] -%}
97-
{%- if state_attr(octopus_energy_free_electricity, 'rates') != None -%}
97+
{%- if state_attr(octopus_energy_free_electricity, 'events') != None -%}
9898
{%- set free_electricity_rates = state_attr(octopus_energy_free_electricity, 'events') -%}
9999
{%- endif -%}
100100
{%- set data = namespace(new_rates=[]) -%}

package-lock.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)