Skip to content

Gas#

You'll get the following entities for each gas meter with an active agreement:

Current Rate#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_current_rate

The current rate that energy consumption is charged at (including VAT).

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
is_smart_meter boolean Determines if the meter is considered smart by Octopus Energy
tariff string The tariff the meter/rates are associated with
start datetime The date/time when the rate started
end datetime The date/time when the rate ends
is_capped boolean Indicates if the rate has been capped by a configured price cap
price_cap float The price cap that has been configured for the account and is currently applied to all gas rates

Previous Rate#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_previous_rate

The previous rate that energy consumption was charged at (including VAT), that differs from the current rate. If there is no previous rate (e.g. rates before now are of the same value as the current rate), then this will be reported as unknown/none.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
is_smart_meter boolean Determines if the meter is considered smart by Octopus Energy
start datetime The date/time when the rate started
end datetime The date/time when the rate ended

Next rate#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_next_rate

The next/upcoming rate that energy consumption will be charged at (including VAT), that differs from the current rate. If there is no next rate (e.g. rates after now are of the same value as the current rate), then this will be reported as unknown/none.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
is_smart_meter boolean Determines if the meter is considered smart by Octopus Energy
start datetime The date/time when the rate starts
end datetime The date/time when the rate ends

Current Day Rates#

event.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_current_day_rates

The state of this sensor states when the current day's rates were last updated. The attributes of this sensor exposes the current day's rates.

Attribute Type Description
rates array The list of rates applicable for the current day
tariff_code string The tariff code associated with current day's rates

Each rate item has the following attributes

Attribute Type Description
start datetime The date/time when the rate starts
end datetime The date/time when the rate ends
value_inc_vat float The value of the rate including VAT. This is in pounds and pence (e.g. 1.01 = £1.01)
is_capped boolean Indicates if the rate has been capped by a configured price cap

Previous Day Rates#

event.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_previous_day_rates

The state of this sensor states when the previous day's rates were last updated. The attributes of this sensor exposes the previous day's rates.

Attribute Type Description
rates array The list of rates applicable for the previous day
tariff_code string The tariff code associated with previous day's rates

Each rate item has the following attributes

Attribute Type Description
start datetime The date/time when the rate starts
end datetime The date/time when the rate ends
value_inc_vat float The value of the rate including VAT. This is in pounds and pence (e.g. 1.01 = £1.01)
is_capped boolean Indicates if the rate has been capped by a configured price cap

Next Day Rates#

event.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_next_day_rates

The state of this sensor states when the next day's rates were last updated. The attributes of this sensor exposes the next day's rates.

Attribute Type Description
rates array The list of rates applicable for the next day
tariff_code string The tariff code associated with today's rates

Each rate item has the following attributes

Attribute Type Description
start datetime The date/time when the rate starts
end datetime The date/time when the rate ends
value_inc_vat float The value of the rate including VAT. This is in pounds and pence (e.g. 1.01 = £1.01)
is_capped boolean Indicates if the rate has been capped by a configured price cap

Smart Meter Entities#

If your account information doesn't determine you have a smart meter, then you will have the following entities in a disabled state. If you enable these entities, they might not work correctly in this scenario.

If you are wishing to use these sensors with the Energy Dashboard, then you can follow this guide.

By default, it's not possible to include current consumption sensors. This is due to Octopus Energy only receive data from the smart meters up to the previous day.

Previous Accumulative Consumption (m3)#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_previous_accumulative_consumption_m3

The total consumption reported by the meter (not other devices e.g. Home Mini) for the previous available full day in m3. If for example data is available up to 01:00 of 2024-09-02, then this sensor will report the cost between 2024-09-01T00:00:00Z and 2024-09-02T00:00:00Z.

If your meter reports in m3, then this will be an accurate value reported by Octopus, otherwise it will be a calculated/estimated value.

Info

This retrieves the data reported directly by the meter which is used to calculate your bill. If you have an Octopus Home Mini (or similar), then data reported by this device will not be exposed in this sensor. This is to avoid confusion when comparing the data against your bill and to provide consistency between users with and without an Octopus Home Mini.

Warning

This data won't necessarily be available at the stroke of midnight. This integration has no control of this and is at the mercy of when the data is available by Octopus Energy.

Because this sensor only looks at the last complete day, if the data takes longer than 24 hours to populate then the sensor will not update straight away. You can look at the data_last_retrieved sensor which indicates when the data was last retrieved.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
is_estimated boolean Determines if the consumption was estimated. This can occur if your meter reports in kwh.
total_kwh float The total energy value for the previous day in kwh. If your meter reports in m3, then this will be estimated using your set calorific value
total_m3 float The total energy value for the previous day in m3. If your meter reports in kwh, then this will be estimated using your set calorific value
charges array Collection of consumption periods for the previous day broken down into 30 minute periods.
calorific_value float The calorific value used for the calculations, as set in your account.

Each charge item has the following attributes

Attribute Type Description
start datetime The date/time when the consumption starts
end datetime The date/time when the consumption ends
consumption float The consumption value of the specified period

Info

You can use the data_last_retrieved sensor to determine when the underlying data was last retrieved from the OE servers.

Previous Accumulative Consumption (kWh)#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_previous_accumulative_consumption_kwh

The total consumption reported by the meter for the previous available full day in kwh. If for example data is available up to 01:00 of 2024-09-02, then this sensor will report the cost between 2024-09-01T00:00:00Z and 2024-09-02T00:00:00Z.

If your meter reports in kwh, then this will be an accurate value reported by Octopus, otherwise it will be a calculated/estimated value.

Info

This retrieves the data reported directly by the meter which is used to calculate your bill. If you have an Octopus Home Mini (or similar), then data reported by this device will not be exposed in this sensor. This is to avoid confusion when comparing the data against your bill and to provide consistency between users with and without an Octopus Home Mini.

Warning

This data won't necessarily be available at the stroke of midnight. This integration has no control of this and is at the mercy of when the data is available by Octopus Energy.

Because this sensor only looks at the last complete day, if the data takes longer than 24 hours to populate then the sensor will not update straight away. You can look at the data_last_retrieved sensor which indicates when the data was last retrieved.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
is_estimated boolean Determines if the consumption was estimated. This can occur if your meter reports in m3.
charges array Collection of consumption periods for the previous day broken down into 30 minute periods.
calorific_value float The calorific value used for the calculations, as set in your account.

Each charge item has the following attributes

Attribute Type Description
start datetime The date/time when the consumption starts
end datetime The date/time when the consumption ends
consumption float The consumption value of the specified period

Info

You can use the data_last_retrieved sensor to determine when the underlying data was last retrieved from the OE servers.

Previous Accumulative Cost#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_previous_accumulative_cost

The total cost for the previous available full day, including the standing charge.

Info

This retrieves the data reported directly by the meter which is used to calculate your bill. If you have an Octopus Home Mini (or similar), then data reported by this device will not be exposed in this sensor. This is to avoid confusion when comparing the data against your bill and to provide consistency between users with and without an Octopus Home Mini.

Warning

This data won't necessarily be available at the stroke of midnight. This integration has no control of this and is at the mercy of when the data is available by Octopus Energy.

Because this sensor only looks at the last complete day, if the data takes longer than 24 hours to populate then the sensor will not update straight away. You can look at the data_last_retrieved sensor which indicates when the data was last retrieved.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
tariff_code string The tariff that determined the cost
standing_charge float The standing charge included in the cost. This is in pounds and pence (e.g. 1.01 = £1.01)
total_without_standing_charge float The total cost of the previous day excluding the standing charge. This is in pounds and pence (e.g. 1.01 = £1.01)
total float The total cost for the previous day. This is in pounds and pence (e.g. 1.01 = £1.01)
charges array Collection of consumption periods and costs for the previous day broken down into 30 minute periods.
calorific_value float The calorific value used for the calculations, as set in your account.

Each charge item has the following attributes

Attribute Type Description
start datetime The date/time when the consumption starts
end datetime The date/time when the consumption ends
rate float The rate the consumption is charged at. This is in pounds and pence (e.g. 1.01 = £1.01)
consumption float The consumption value of the specified period
cost float The cost of the consumption at the specified rate. This is in pounds and pence (e.g. 1.01 = £1.01)

Info

You can use the data_last_retrieved sensor to determine when the underlying data was last retrieved from the OE servers.

Previous Consumption Day Rates#

event.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_previous_consumption_rates

The state of this sensor states when the previous consumption's rates were last updated. This is typically the same as the previous available full day's rates, but could differ depending on available data. The attributes of this sensor exposes the previous consumption's rates.

Note

This is disabled by default.

Attribute Type Description
rates array The list of rates applicable for the previous consumption
tariff_code string The tariff code associated with previous consumption's rates

Each rate item has the following attributes

Attribute Type Description
start datetime The date/time when the rate starts
end datetime The date/time when the rate ends
value_inc_vat float The value of the rate including VAT. This is in pounds and pence (e.g. 1.01 = £1.01)
is_capped boolean Indicates if the rate has been capped by a configured price cap

Home Mini/Pro Entities#

Current Consumption#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_current_consumption

Warning

This will only be available if you have specified you have an Octopus Home Mini. Do not set unless you have one.

The latest gas consumption sent to Octopus Energy. By default, this will update every minute. This has been built to see the accumulation within the energy dashboard. If you are wanting a sensor to see the current day's accumulation, then you will need to use something like utility meter. It has been noticed that daily consumption reported in Home Assistant can differ to when looking at past data within Octopus Energy. It looks like this is because Octopus Energy will favour "official" data from your smart meter over the data they collect.

If current consumption data is unable to be retrieved, then the integration will attempt to retrieve missing data. This will be done up to 5 days behind to give a buffer before the API requires a higher interval and will not be changed.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter

Current Accumulative Consumption (m3)#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_current_accumulative_consumption_m3

Warning

This will only be available if you have specified you have an Octopus Home Mini. Do not set unless you have one.

The total consumption reported by the meter for the current day in m3. This is calculated/estimated using your set calorific value from the kWh data reported by Octopus Energy.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
charges array Collection of consumption periods for the current day broken down into 30 minute periods.
calorific_value float The calorific value used for the calculations, as set in your account.

Each charge item has the following attributes

Attribute Type Description
start datetime The date/time when the consumption starts
end datetime The date/time when the consumption ends
consumption float The consumption value of the specified period

Info

You can use the data_last_retrieved sensor to determine when the underlying data was last retrieved from the OE servers.

Current Accumulative Consumption (kWh)#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_current_accumulative_consumption_kwh

Warning

This will only be available if you have specified you have an Octopus Home Mini. Do not set unless you have one.

The total consumption reported by the meter for the current day in kWh. This is natively reported by Octopus Energy.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
charges array Collection of consumption periods for the current day broken down into 30 minute periods.
calorific_value float The calorific value used for the calculations, as set in your account.

Each charge item has the following attributes

Attribute Type Description
start datetime The date/time when the consumption starts
end datetime The date/time when the consumption ends
consumption float The consumption value of the specified period

Info

You can use the data_last_retrieved sensor to determine when the underlying data was last retrieved from the OE servers.

Current Total Consumption (m3)#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_current_total_consumption_m3

Warning

This will only be available if you have specified you have an Octopus Home Mini or have configured an Octopus Home Pro. Do not set unless you have one.

The total consumption reported by the meter for for all time in m3. This is calculated/estimated using your set calorific value from the kWh data reported by Octopus Energy. This will try and update every minute for Home Mini and every 10 seconds for Home Pro.

Warning

Because this is calculated from your set calorific value across the lifetime of your meter, the value will not be 100% accurate due to calorific values changing over time which cannot be captured.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
calorific_value float The calorific value used for the calculations, as set in your account.

Info

You can use the Home Mini data_last_retrieved sensor or Home Mini data_last_retrieved sensor to determine when the underlying data was last retrieved from the OE servers.

Current Total Consumption (kWh)#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_current_total_consumption_kwh

Warning

This will only be available if you have specified you have an Octopus Home Mini or have configured an Octopus Home Pro. Do not set unless you have one.

The total consumption reported by the meter for for all time in kWh. This is natively reported by Octopus Energy. This will try and update every minute for Home Mini and every 10 seconds for Home Pro.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
calorific_value float The calorific value used for the calculations, as set in your account.

Info

You can use the Home Mini data_last_retrieved sensor or Home Mini data_last_retrieved sensor to determine when the underlying data was last retrieved from the OE servers.

Current Accumulative Cost#

sensor.octopus_energy_gas_{{METER_SERIAL_NUMBER}}_{{MPRN_NUMBER}}_current_accumulative_cost

Warning

This will only be available if you have specified you have an Octopus Home Mini. Do not set unless you have one.

The total cost for the current day, including the standing charge.

Attribute Type Description
mprn string The mprn for the associated meter
serial_number string The serial for the associated meter
tariff_code string The tariff that determined the cost
standing_charge float The standing charge included in the cost. This is in pounds and pence (e.g. 1.01 = £1.01)
total_without_standing_charge float The total cost of the current day excluding the standing charge. This is in pounds and pence (e.g. 1.01 = £1.01)
total float The total cost for the current day. This is in pounds and pence (e.g. 1.01 = £1.01)
charges array Collection of consumption periods and costs for the current day broken down into 30 minute periods.

Each charge item has the following attributes

Attribute Type Description
start datetime The date/time when the consumption starts
end datetime The date/time when the consumption ends
rate float The rate the consumption is charged at. This is in pounds and pence (e.g. 1.01 = £1.01)
consumption float The consumption value of the specified period
cost float The cost of the consumption at the specified rate. This is in pounds and pence (e.g. 1.01 = £1.01)