Skip to content
This repository has been archived by the owner on Jan 20, 2021. It is now read-only.
/ octocost Public archive

Octocost is an app which works under AppDaemon within Home Assistant which gets yearly and monthly cost and usage of Octopus Energy Agile Octopus Tariff

License

Notifications You must be signed in to change notification settings

badguy99/octocost

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

13 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

octocost

Octocost is an app which works under AppDaemon within Home Assistant which shows the yearly and month cost and usage of the Octopus Energy Agile Octopus Tariff It creates and sets sensors for yearly and monthly cost (£) and usage (kWh), up to yesterday:

sensor.octopus_yearly_cost
sensor.octopus_yearly_usage
sensor.octopus_monthly_cost
sensor.octopus_monthly_usage

The data is updated once every two hours, although in reality the data Octopus Energy gets only seems to be updated once a day, so this is a compromise between trying to be up-to-date, and not hammering their servers, when the data doesn't update very frequently anyway.

hacs_badge

Installation

Use HACS or download the octoblock directory from inside the apps directory here to your local apps directory, then add the configuration to enable the octocost module.

Apps.yaml Configuration

octocost:
  module: octocost 
  class: OctoCost 
  region: H
  mpan: <13 digit MPAN number>
  serial:  <Serial number>
  auth: <Octopus Energy API Key>
  startdate: 2020-02-23

The module and class sections need to remain as above, other sections should be changed as required.

Field Changeable Example
Title Yes octocost
module No octocost
class No OctoCost
region Yes H
mpan Yes 2000012345678
serial Yes 20L123456
auth Yes sk_live_abcdefg
startdate Yes 2020-02-23

The startdate setting should be set to the date you started on the Agile Octopus tariff, not the date you joined Octopus Energy. It is used to adjust the start point if you joined within the current year or month, it should not be left blank if you joined earlier. region is the region letter from the end of E-1R-AGILE-18-02-21-H which can be found on the Octopus Energy developer dashboard webpage in the Unit Rates section for your account.

Lovelace UI Cards

Once the sensors are created, they can be displayed as cards within the Lovelace UI. For example:

      - entities:
          - entity: sensor.octopus_yearly_usage
            icon: 'mdi:flash'
            name: Yearly Usage (kWh)
          - entity: sensor.octopus_yearly_cost
            icon: 'mdi:cash'
            name: Yearly Cost (£)
          - entity: sensor.octopus_monthly_usage
            icon: 'mdi:flash'
            name: Monthly Usage (kWh)
          - entity: sensor.octopus_monthly_cost
            icon: 'mdi:cash'
            name: Monthly Cost (£)
        show_icon: true
        title: Octopus Usage / Cost
        type: glance

Example Lovelace UI Usage and Cost glance card

About

Octocost is an app which works under AppDaemon within Home Assistant which gets yearly and monthly cost and usage of Octopus Energy Agile Octopus Tariff

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages