BottlecapDave / HomeAssistant-OctopusEnergy

Unofficial Home Assistant integration for interacting with Octopus Energy
https://bottlecapdave.github.io/HomeAssistant-OctopusEnergy/
MIT License
572 stars 57 forks source link

Add "being used now" calculated sensor as shown in the octopus smart meter in £/hr #511

Open michaelp23 opened 11 months ago

michaelp23 commented 11 months ago

The octopus smart meter shows values of the usage per hour in pounds (£/hr)

which is (current demand) x (current rate) / 1000

Whilst this can be calculated as a custom sensor within home assistant:

{{ ( states('sensor.electricity_current_rate') | float * states('sensor.electricity_current_demand') | float /1000 ) | round(2) }}

it is handy to have it built in.

BottlecapDave commented 10 months ago

Hi sorry for the lack of response. As this can be solved via a template sensor for the moment, this will be further down on my to-do list.