diff --git a/_docs/blueprints/target_timeframes_octopus_energy_carbon_intensity.yaml b/_docs/blueprints/target_timeframes_octopus_energy_carbon_intensity.yaml index 3d8ae5c..d51241e 100644 --- a/_docs/blueprints/target_timeframes_octopus_energy_carbon_intensity.yaml +++ b/_docs/blueprints/target_timeframes_octopus_energy_carbon_intensity.yaml @@ -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: @@ -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 -%} diff --git a/_docs/blueprints/target_timeframes_octopus_energy_with_free_electricity.yaml b/_docs/blueprints/target_timeframes_octopus_energy_with_free_electricity.yaml index c82b764..e333218 100644 --- a/_docs/blueprints/target_timeframes_octopus_energy_with_free_electricity.yaml +++ b/_docs/blueprints/target_timeframes_octopus_energy_with_free_electricity.yaml @@ -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: @@ -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=[]) -%} diff --git a/package-lock.json b/package-lock.json index 68a55be..a6dca0d 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,7 +6,7 @@ "packages": { "": { "name": "targettimeframes", - "version": "1.0.0", + "version": "0.1.0", "license": "ISC", "devDependencies": { "@semantic-release/changelog": "^6.0.3",