Skip to content

Releases: badguy99/octoblock

v0.3.0 Make import and export codes configurable

17 Dec 15:55
562a566
Compare
Choose a tag to compare

import_code and export_code can be specified, they default to AGILE-FLEX-22-11-25 and AGILE-OUTGOING-19-05-13 respectively.

Note: This updates the previous hardcoded value for import which used the very out of date AGILE-18-02-21 which was capped at 35p

v0.2.2

29 Dec 17:47
cb34a06
Compare
Choose a tag to compare
  • Add ability to get price for next import / export period
  • Code clean up

v0.2.1

06 Jun 12:59
fdff4a2
Compare
Choose a tag to compare
  • Fixes an issue when using timezone/daylight saving with start/end time limits
  • Fixes an IndexError: list index out of range error when using Lookaheads trying to look further ahead than we have data for

v0.2.0

01 Jun 20:14
7bc72ed
Compare
Choose a tag to compare

NOTE: Breaking Changes!! New YAML format required

This release is a very large rewrite, so now there only needs to be one instance of the module defined in the Appdaemon apps.yaml file.
This also cuts down on the number of requests to the octopus.energy api - only one if you are only getting import data, and two if you are also getting export date, rather than one per module instance in the past.
Blocks can also have custom names, which override the default names. See the new yaml example below and README.md for more information.

Alongside the rewrite for the "blocks" functionality, it also adds "lookaheads"

Lookaheads provide a Home Assistant sensor that will be set to true if the price will go below or above (depending upon operation setting) a specified point, x, within the next duration_ahead hours, up to the maximum look ahead that Octopus Energy provide price data for.

Setting operation to above or below and and_equal to True or False in the yaml file give different functions; namely: greater than, less than, greater than & equal, and less than and equal. Such that it should be possible to set up required trigger points looking at prices in the future for automations.

NEW yaml Format:

octoblock:
  module: octoblock
  class: OctoBlock
  region: H
  use_timezone: False
  blocks:
    - hour: 1
      import: True
      start_period: now
      name: octopus_1hour
    - hour: 1.5
      start_period: today
      name: octopus_vacuum
      limits:
        start_time: '07:00'
        end_time: '16:00'
    - hour: 2
      import: True
      start_period: now
    - hour: 0
      start_period: now
      name: octopus_current_import
    - hour: 0
      export: True
      import: False
      start_period: now
      name: octopus_current_export
  lookaheads:
    - price: 3.0
      operation: below
      and_equal: True
      duration_ahead: 12
      name: hw_via_electric_not_gas

OLD Format (For reference, no longer supported):

octo_block_1hour:
  module: octoblock
  class: OctoBlock
  region: H
  hour: 1
  use_timezone: False

octo_block_90minutes:
  module: octoblock
  class: OctoBlock
  region: H
  hour: 1.5
  start_period: today
  use_timezone: True
  limits:
    start_time: '07:00'
    end_time: '16:00'

v0.1.8

26 Apr 11:04
1783f9d
Compare
Choose a tag to compare

Fixes an issue seen when using time limits and start_period: today which could cause a traceback to be seen when run between 23:30 and 00:00

v0.1.7

13 Apr 13:49
7e64457
Compare
Choose a tag to compare

Add ability to set start and end limits when searching today

  start_period: today
  limits:
    start_time: '07:00'
    end_time: '16:00'

When using today for the start_period it can be limited further usings limits > start_time and/or limits > end_time (please note the formating in the example yaml above) to restrict the period searched. This may be useful for example if you have something that you only want to run within certain times of the day, due to noise issues etc.

v0.1.6

11 Apr 14:55
6c1f72f
Compare
Choose a tag to compare

This release adds the ability to get the current import or export price
Setting hours to 0 with start_period set to now in apps.yaml will return the current import or export price

The sensors now update when the integration is initialised and then on 00 and 30 minute past the hour, boundaries.

A fix has been included as a midnight trigger point could be missed.
When using today rather than now if the best period starts at 00:00 the trigger point could be missed as the automated trigger is likely to run before the best period data is updated. This fix changes the date the last calculation of the day uses, so that when it runs after 23:30, it uses tomorrows date, so that the new best period is inplace before automated triggers may run at 00:00

v0.1.5

29 Mar 16:17
Compare
Choose a tag to compare

Add ability to query the Agile Outgoing Tariff to find highest export price

import and export should be set to True or False as required,
import = True and export = False for the Agile Octopus tariff
and import = False and export = True for the Agile Outgoing Octopus tariff.

The defaults if these options are not found in the apps.yaml file
are: import = True and export = False

v0.1.4

28 Mar 22:38
Compare
Choose a tag to compare

use_timezone can be set to True or False, and defaults to False, it allows you to specify if the date/time should be displayed in UTC (False), or using Europe/London (True) as the timezone. For example, 2020-03-29T02:00:00Z or 2020-03-29T03:00:00 BST respectively.

v0.1.3

26 Mar 17:18
55b2601
Compare
Choose a tag to compare

Add the ability to configure start_period

start_period can be added to the configuration in apps.yaml and set to either
now or today. now reevaluates the cheapest block every 30 minutes and today
calculates the absolute cheapest block for the day.