Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ blueprint:
multiple: false
octopus_energy_free_electricity_weighting:
name: Free Electricity weighting
description: The weighting to apply to the value if a rate period falls within a free electricity session.
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.
default: 1
selector:
number:
Expand Down Expand Up @@ -120,7 +120,7 @@ action:
{%- set all_oe_rates = all_oe_rates + state_attr(octopus_energy_next_day_rates, 'rates') -%}
{%- endif -%}
{%- set free_electricity_rates = [] -%}
{%- if state_attr(octopus_energy_free_electricity, 'rates') != None -%}
{%- if state_attr(octopus_energy_free_electricity, 'events') != None -%}
{%- set free_electricity_rates = state_attr(octopus_energy_free_electricity, 'events') -%}
{%- endif -%}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ blueprint:
multiple: false
octopus_energy_free_electricity_weighting:
name: Free Electricity weighting
description: The weighting to apply to the value if a rate period falls within a free electricity session.
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.
default: 1
selector:
number:
Expand Down Expand Up @@ -94,7 +94,7 @@ action:
{%- set all_rates = all_rates + state_attr(octopus_energy_next_day_rates, 'rates') -%}
{%- endif -%}
{%- set free_electricity_rates = [] -%}
{%- if state_attr(octopus_energy_free_electricity, 'rates') != None -%}
{%- if state_attr(octopus_energy_free_electricity, 'events') != None -%}
{%- set free_electricity_rates = state_attr(octopus_energy_free_electricity, 'events') -%}
{%- endif -%}
{%- set data = namespace(new_rates=[]) -%}
Expand Down
2 changes: 1 addition & 1 deletion package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.