Refreshing Rate Information from the Octopus API for Device

Posted on
Wed May 06, 2020 3:42 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Refreshing Rate Information from the Octopus API for Device

2020-05-06 22:32:36.743 Application Stopping plugin Octopus Energy (pid 65800)
2020-05-06 22:32:37.970 Application Stopped plugin Octopus Energy
2020-05-06 22:32:37.971 Application Upgrading plugin Octopus Energy to newer version 0.1.5 (previous version moved to trash)
2020-05-06 22:32:38.032 Application Loading plugin "Octopus Energy 0.1.5"
2020-05-06 22:32:38.036 Application Starting plugin "Octopus Energy 0.1.5" (pid 10373)
2020-05-06 22:32:39.113 Application Started plugin "Octopus Energy 0.1.5"
2020-05-06 22:32:39.128 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:39.657 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:40.107 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:40.639 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:41.090 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:41.519 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:41.982 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:42.420 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:42.913 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:43.344 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:43.782 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:44.213 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:44.681 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:45.140 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:45.622 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:46.071 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:46.551 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:46.967 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif
2020-05-06 22:32:47.436 Octopus Energy Refreshing Rate Information from the Octopus API for Device Octopus EnergyL Tarif


2020-05-06 22:32:39.116 DEBUG Plugin.debugLog: Starting device: Octopus EnergyL Tarif
2020-05-06 22:32:39.116 DEBUG Plugin.debugLog: 144136383 Octopus EnergyL Tarif
2020-05-06 22:32:39.126 DEBUG Plugin.debugLog: No need to update Current 2020-05-06T21:30:00Z Stored 2020-05-06T21:30:00Z for Octopus EnergyL Tarif
2020-05-06 22:32:39.127 DEBUG Plugin.debugLog: com.barn.indigoplugin.OctopusEnergy : (dict)
Device_Postcode : AB12 3CD (string)
Log_Rates : true (bool)
address : AB12 3CD (string)
device_gsp : M (string)
2020-05-06 22:32:39.127 DEBUG Plugin.debugLog: period_from=2020-05-06T00:00&period_to=2020-05-06T23:59
2020-05-06 22:32:39.420 DEBUG Plugin.debugLog: Updating yesterday rates
2020-05-06 22:32:39.638 DEBUG Plugin.debugLog: Standard Charge 21.0
2020-05-06 22:32:39.638 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tarif
2020-05-06 22:32:39.640 DEBUG Plugin.debugLog: Starting concurrent thread
2020-05-06 22:32:39.641 DEBUG Plugin.debugLog: Stopping device: Octopus EnergyL Tarif
2020-05-06 22:32:39.641 DEBUG Plugin.debugLog: Starting device: Octopus EnergyL Tarif
2020-05-06 22:32:39.641 DEBUG Plugin.debugLog: 144136383 Octopus EnergyL Tarif
2020-05-06 22:32:39.645 DEBUG Plugin.debugLog: No need to update Current 2020-05-06T21:30:00Z Stored 2020-05-06T21:30:00Z for Octopus EnergyL Tarif
2020-05-06 22:32:39.645 DEBUG Plugin.debugLog: com.barn.indigoplugin.OctopusEnergy : (dict)
Device_Postcode : AB12 3CD (string)
Log_Rates : true (bool)
address : AB12 3CD (string)
device_gsp : M (string)
today_rates : [{"valid_from": "2020-05-06T22:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T23:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T22:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T22:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T21:30:00Z", "value_exc_vat": 5.0, "valid_to": "2020-05-06T22:00:00Z", "value_inc_vat": 5.25}, {"valid_from": "2020-05-06T21:00:00Z", "value_exc_vat": 6.2, "valid_to": "2020-05-06T21:30:00Z", "value_inc_vat": 6.51}, {"valid_from": "2020-05-06T20:30:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T21:00:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T20:00:00Z", "value_exc_vat": 6.84, "valid_to": "2020-05-06T20:30:00Z", "value_inc_vat": 7.182}, {"valid_from": "2020-05-06T19:30:00Z", "value_exc_vat": 6.8, "valid_to": "2020-05-06T20:00:00Z", "value_inc_vat": 7.14}, {"valid_from": "2020-05-06T19:00:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:30:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:30:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:00:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:00:00Z", "value_exc_vat": 7.3, "valid_to": "2020-05-06T18:30:00Z", "value_inc_vat": 7.665}, {"valid_from": "2020-05-06T17:30:00Z", "value_exc_vat": 20.18, "valid_to": "2020-05-06T18:00:00Z", "value_inc_vat": 21.189}, {"valid_from": "2020-05-06T17:00:00Z", "value_exc_vat": 19.94, "valid_to": "2020-05-06T17:30:00Z", "value_inc_vat": 20.937}, {"valid_from": "2020-05-06T16:30:00Z", "value_exc_vat": 19.9, "valid_to": "2020-05-06T17:00:00Z", "value_inc_vat": 20.895}, {"valid_from": "2020-05-06T16:00:00Z", "value_exc_vat": 18.3, "valid_to": "2020-05-06T16:30:00Z", "value_inc_vat": 19.215}, {"valid_from": "2020-05-06T15:30:00Z", "value_exc_vat": 18.6, "valid_to": "2020-05-06T16:00:00Z", "value_inc_vat": 19.53}, {"valid_from": "2020-05-06T15:00:00Z", "value_exc_vat": 16.26, "valid_to": "2020-05-06T15:30:00Z", "value_inc_vat": 17.073}, {"valid_from": "2020-05-06T14:30:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T15:00:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T14:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:00:00Z", "value_exc_vat": 3.8, "valid_to": "2020-05-06T13:30:00Z", "value_inc_vat": 3.99}, {"valid_from": "2020-05-06T12:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T13:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T12:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T12:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T11:30:00Z", "value_exc_vat": 5.09, "valid_to": "2020-05-06T12:00:00Z", "value_inc_vat": 5.3445}, {"valid_from": "2020-05-06T11:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T11:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T10:30:00Z", "value_exc_vat": 4.04, "valid_to": "2020-05-06T11:00:00Z", "value_inc_vat": 4.242}, {"valid_from": "2020-05-06T10:00:00Z", "value_exc_vat": 4.66, "valid_to": "2020-05-06T10:30:00Z", "value_inc_vat": 4.893}, {"valid_from": "2020-05-06T09:30:00Z", "value_exc_vat": 4.0, "valid_to": "2020-05-06T10:00:00Z", "value_inc_vat": 4.2}, {"valid_from": "2020-05-06T09:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T09:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T08:30:00Z", "value_exc_vat": 4.94, "valid_to": "2020-05-06T09:00:00Z", "value_inc_vat": 5.187}, {"valid_from": "2020-05-06T08:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T08:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T07:30:00Z", "value_exc_vat": 6.4, "valid_to": "2020-05-06T08:00:00Z", "value_inc_vat": 6.72}, {"valid_from": "2020-05-06T07:00:00Z", "value_exc_vat": 6.56, "valid_to": "2020-05-06T07:30:00Z", "value_inc_vat": 6.888}, {"valid_from": "2020-05-06T06:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T07:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T06:00:00Z", "value_exc_vat": 5.4, "valid_to": "2020-05-06T06:30:00Z", "value_inc_vat": 5.67}, {"valid_from": "2020-05-06T05:30:00Z", "value_exc_vat": 5.82, "valid_to": "2020-05-06T06:00:00Z", "value_inc_vat": 6.111}, {"valid_from": "2020-05-06T05:00:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T05:30:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T04:30:00Z", "value_exc_vat": 4.56, "valid_to": "2020-05-06T05:00:00Z", "value_inc_vat": 4.788}, {"valid_from": "2020-05-06T04:00:00Z", "value_exc_vat": 4.44, "valid_to": "2020-05-06T04:30:00Z", "value_inc_vat": 4.662}, {"valid_from": "2020-05-06T03:30:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-06T04:00:00Z", "value_inc_vat": 4.956}, {"valid_from": "2020-05-06T03:00:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T03:30:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T02:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T03:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T02:00:00Z", "value_exc_vat": 4.16, "valid_to": "2020-05-06T02:30:00Z", "value_inc_vat": 4.368}, {"valid_from": "2020-05-06T01:30:00Z", "value_exc_vat": 3.32, "valid_to": "2020-05-06T02:00:00Z", "value_inc_vat": 3.486}, {"valid_from": "2020-05-06T01:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T01:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T00:30:00Z", "value_exc_vat": 5.16, "valid_to": "2020-05-06T01:00:00Z", "value_inc_vat": 5.418}, {"valid_from": "2020-05-06T00:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T00:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-05T23:30:00Z", "value_exc_vat": 3.58, "valid_to": "2020-05-06T00:00:00Z", "value_inc_vat": 3.759}, {"valid_from": "2020-05-05T23:00:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-05T23:30:00Z", "value_inc_vat": 4.956}] (string)
2020-05-06 22:32:39.651 DEBUG Plugin.debugLog: period_from=2020-05-06T00:00&period_to=2020-05-06T23:59
2020-05-06 22:32:39.894 DEBUG Plugin.debugLog: Updating yesterday rates
2020-05-06 22:32:40.070 DEBUG Plugin.debugLog: Standard Charge 21.0
2020-05-06 22:32:40.071 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tarif
2020-05-06 22:32:40.072 DEBUG Plugin.debugLog: Stopping device: Octopus EnergyL Tarif
2020-05-06 22:32:40.072 DEBUG Plugin.debugLog: Starting device: Octopus EnergyL Tarif
2020-05-06 22:32:40.072 DEBUG Plugin.debugLog: 144136383 Octopus EnergyL Tarif
2020-05-06 22:32:40.105 DEBUG Plugin.debugLog: No need to update Current 2020-05-06T21:30:00Z Stored 2020-05-06T21:30:00Z for Octopus EnergyL Tarif
2020-05-06 22:32:40.105 DEBUG Plugin.debugLog: com.barn.indigoplugin.OctopusEnergy : (dict)
Device_Postcode : AB12 3CD (string)
Log_Rates : true (bool)
address : AB12 3CD (string)
device_gsp : M (string)
today_rates : [{"valid_from": "2020-05-06T22:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T23:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T22:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T22:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T21:30:00Z", "value_exc_vat": 5.0, "valid_to": "2020-05-06T22:00:00Z", "value_inc_vat": 5.25}, {"valid_from": "2020-05-06T21:00:00Z", "value_exc_vat": 6.2, "valid_to": "2020-05-06T21:30:00Z", "value_inc_vat": 6.51}, {"valid_from": "2020-05-06T20:30:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T21:00:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T20:00:00Z", "value_exc_vat": 6.84, "valid_to": "2020-05-06T20:30:00Z", "value_inc_vat": 7.182}, {"valid_from": "2020-05-06T19:30:00Z", "value_exc_vat": 6.8, "valid_to": "2020-05-06T20:00:00Z", "value_inc_vat": 7.14}, {"valid_from": "2020-05-06T19:00:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:30:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:30:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:00:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:00:00Z", "value_exc_vat": 7.3, "valid_to": "2020-05-06T18:30:00Z", "value_inc_vat": 7.665}, {"valid_from": "2020-05-06T17:30:00Z", "value_exc_vat": 20.18, "valid_to": "2020-05-06T18:00:00Z", "value_inc_vat": 21.189}, {"valid_from": "2020-05-06T17:00:00Z", "value_exc_vat": 19.94, "valid_to": "2020-05-06T17:30:00Z", "value_inc_vat": 20.937}, {"valid_from": "2020-05-06T16:30:00Z", "value_exc_vat": 19.9, "valid_to": "2020-05-06T17:00:00Z", "value_inc_vat": 20.895}, {"valid_from": "2020-05-06T16:00:00Z", "value_exc_vat": 18.3, "valid_to": "2020-05-06T16:30:00Z", "value_inc_vat": 19.215}, {"valid_from": "2020-05-06T15:30:00Z", "value_exc_vat": 18.6, "valid_to": "2020-05-06T16:00:00Z", "value_inc_vat": 19.53}, {"valid_from": "2020-05-06T15:00:00Z", "value_exc_vat": 16.26, "valid_to": "2020-05-06T15:30:00Z", "value_inc_vat": 17.073}, {"valid_from": "2020-05-06T14:30:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T15:00:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T14:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:00:00Z", "value_exc_vat": 3.8, "valid_to": "2020-05-06T13:30:00Z", "value_inc_vat": 3.99}, {"valid_from": "2020-05-06T12:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T13:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T12:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T12:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T11:30:00Z", "value_exc_vat": 5.09, "valid_to": "2020-05-06T12:00:00Z", "value_inc_vat": 5.3445}, {"valid_from": "2020-05-06T11:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T11:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T10:30:00Z", "value_exc_vat": 4.04, "valid_to": "2020-05-06T11:00:00Z", "value_inc_vat": 4.242}, {"valid_from": "2020-05-06T10:00:00Z", "value_exc_vat": 4.66, "valid_to": "2020-05-06T10:30:00Z", "value_inc_vat": 4.893}, {"valid_from": "2020-05-06T09:30:00Z", "value_exc_vat": 4.0, "valid_to": "2020-05-06T10:00:00Z", "value_inc_vat": 4.2}, {"valid_from": "2020-05-06T09:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T09:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T08:30:00Z", "value_exc_vat": 4.94, "valid_to": "2020-05-06T09:00:00Z", "value_inc_vat": 5.187}, {"valid_from": "2020-05-06T08:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T08:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T07:30:00Z", "value_exc_vat": 6.4, "valid_to": "2020-05-06T08:00:00Z", "value_inc_vat": 6.72}, {"valid_from": "2020-05-06T07:00:00Z", "value_exc_vat": 6.56, "valid_to": "2020-05-06T07:30:00Z", "value_inc_vat": 6.888}, {"valid_from": "2020-05-06T06:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T07:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T06:00:00Z", "value_exc_vat": 5.4, "valid_to": "2020-05-06T06:30:00Z", "value_inc_vat": 5.67}, {"valid_from": "2020-05-06T05:30:00Z", "value_exc_vat": 5.82, "valid_to": "2020-05-06T06:00:00Z", "value_inc_vat": 6.111}, {"valid_from": "2020-05-06T05:00:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T05:30:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T04:30:00Z", "value_exc_vat": 4.56, "valid_to": "2020-05-06T05:00:00Z", "value_inc_vat": 4.788}, {"valid_from": "2020-05-06T04:00:00Z", "value_exc_vat": 4.44, "valid_to": "2020-05-06T04:30:00Z", "value_inc_vat": 4.662}, {"valid_from": "2020-05-06T03:30:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-06T04:00:00Z", "value_inc_vat": 4.956}, {"valid_from": "2020-05-06T03:00:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T03:30:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T02:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T03:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T02:00:00Z", "value_exc_vat": 4.16, "valid_to": "2020-05-06T02:30:00Z", "value_inc_vat": 4.368}, {"valid_from": "2020-05-06T01:30:00Z", "value_exc_vat": 3.32, "valid_to": "2020-05-06T02:00:00Z", "value_inc_vat": 3.486}, {"valid_from": "2020-05-06T01:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T01:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T00:30:00Z", "value_exc_vat": 5.16, "valid_to": "2020-05-06T01:00:00Z", "value_inc_vat": 5.418}, {"valid_from": "2020-05-06T00:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T00:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-05T23:30:00Z", "value_exc_vat": 3.58, "valid_to": "2020-05-06T00:00:00Z", "value_inc_vat": 3.759}, {"valid_from": "2020-05-05T23:00:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-05T23:30:00Z", "value_inc_vat": 4.956}] (string)
yesterday_rates : [{"valid_from": "2020-05-06T22:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T23:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T22:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T22:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T21:30:00Z", "value_exc_vat": 5.0, "valid_to": "2020-05-06T22:00:00Z", "value_inc_vat": 5.25}, {"valid_from": "2020-05-06T21:00:00Z", "value_exc_vat": 6.2, "valid_to": "2020-05-06T21:30:00Z", "value_inc_vat": 6.51}, {"valid_from": "2020-05-06T20:30:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T21:00:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T20:00:00Z", "value_exc_vat": 6.84, "valid_to": "2020-05-06T20:30:00Z", "value_inc_vat": 7.182}, {"valid_from": "2020-05-06T19:30:00Z", "value_exc_vat": 6.8, "valid_to": "2020-05-06T20:00:00Z", "value_inc_vat": 7.14}, {"valid_from": "2020-05-06T19:00:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:30:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:30:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:00:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:00:00Z", "value_exc_vat": 7.3, "valid_to": "2020-05-06T18:30:00Z", "value_inc_vat": 7.665}, {"valid_from": "2020-05-06T17:30:00Z", "value_exc_vat": 20.18, "valid_to": "2020-05-06T18:00:00Z", "value_inc_vat": 21.189}, {"valid_from": "2020-05-06T17:00:00Z", "value_exc_vat": 19.94, "valid_to": "2020-05-06T17:30:00Z", "value_inc_vat": 20.937}, {"valid_from": "2020-05-06T16:30:00Z", "value_exc_vat": 19.9, "valid_to": "2020-05-06T17:00:00Z", "value_inc_vat": 20.895}, {"valid_from": "2020-05-06T16:00:00Z", "value_exc_vat": 18.3, "valid_to": "2020-05-06T16:30:00Z", "value_inc_vat": 19.215}, {"valid_from": "2020-05-06T15:30:00Z", "value_exc_vat": 18.6, "valid_to": "2020-05-06T16:00:00Z", "value_inc_vat": 19.53}, {"valid_from": "2020-05-06T15:00:00Z", "value_exc_vat": 16.26, "valid_to": "2020-05-06T15:30:00Z", "value_inc_vat": 17.073}, {"valid_from": "2020-05-06T14:30:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T15:00:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T14:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:00:00Z", "value_exc_vat": 3.8, "valid_to": "2020-05-06T13:30:00Z", "value_inc_vat": 3.99}, {"valid_from": "2020-05-06T12:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T13:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T12:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T12:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T11:30:00Z", "value_exc_vat": 5.09, "valid_to": "2020-05-06T12:00:00Z", "value_inc_vat": 5.3445}, {"valid_from": "2020-05-06T11:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T11:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T10:30:00Z", "value_exc_vat": 4.04, "valid_to": "2020-05-06T11:00:00Z", "value_inc_vat": 4.242}, {"valid_from": "2020-05-06T10:00:00Z", "value_exc_vat": 4.66, "valid_to": "2020-05-06T10:30:00Z", "value_inc_vat": 4.893}, {"valid_from": "2020-05-06T09:30:00Z", "value_exc_vat": 4.0, "valid_to": "2020-05-06T10:00:00Z", "value_inc_vat": 4.2}, {"valid_from": "2020-05-06T09:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T09:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T08:30:00Z", "value_exc_vat": 4.94, "valid_to": "2020-05-06T09:00:00Z", "value_inc_vat": 5.187}, {"valid_from": "2020-05-06T08:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T08:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T07:30:00Z", "value_exc_vat": 6.4, "valid_to": "2020-05-06T08:00:00Z", "value_inc_vat": 6.72}, {"valid_from": "2020-05-06T07:00:00Z", "value_exc_vat": 6.56, "valid_to": "2020-05-06T07:30:00Z", "value_inc_vat": 6.888}, {"valid_from": "2020-05-06T06:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T07:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T06:00:00Z", "value_exc_vat": 5.4, "valid_to": "2020-05-06T06:30:00Z", "value_inc_vat": 5.67}, {"valid_from": "2020-05-06T05:30:00Z", "value_exc_vat": 5.82, "valid_to": "2020-05-06T06:00:00Z", "value_inc_vat": 6.111}, {"valid_from": "2020-05-06T05:00:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T05:30:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T04:30:00Z", "value_exc_vat": 4.56, "valid_to": "2020-05-06T05:00:00Z", "value_inc_vat": 4.788}, {"valid_from": "2020-05-06T04:00:00Z", "value_exc_vat": 4.44, "valid_to": "2020-05-06T04:30:00Z", "value_inc_vat": 4.662}, {"valid_from": "2020-05-06T03:30:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-06T04:00:00Z", "value_inc_vat": 4.956}, {"valid_from": "2020-05-06T03:00:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T03:30:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T02:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T03:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T02:00:00Z", "value_exc_vat": 4.16, "valid_to": "2020-05-06T02:30:00Z", "value_inc_vat": 4.368}, {"valid_from": "2020-05-06T01:30:00Z", "value_exc_vat": 3.32, "valid_to": "2020-05-06T02:00:00Z", "value_inc_vat": 3.486}, {"valid_from": "2020-05-06T01:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T01:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T00:30:00Z", "value_exc_vat": 5.16, "valid_to": "2020-05-06T01:00:00Z", "value_inc_vat": 5.418}, {"valid_from": "2020-05-06T00:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T00:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-05T23:30:00Z", "value_exc_vat": 3.58, "valid_to": "2020-05-06T00:00:00Z", "value_inc_vat": 3.759}, {"valid_from": "2020-05-05T23:00:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-05T23:30:00Z", "value_inc_vat": 4.956}] (string)
2020-05-06 22:32:40.107 DEBUG Plugin.debugLog: period_from=2020-05-06T00:00&period_to=2020-05-06T23:59
2020-05-06 22:32:40.394 DEBUG Plugin.debugLog: Updating yesterday rates
2020-05-06 22:32:40.616 DEBUG Plugin.debugLog: Standard Charge 21.0
2020-05-06 22:32:40.616 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tarif
2020-05-06 22:32:40.618 DEBUG Plugin.debugLog: Stopping device: Octopus EnergyL Tarif
2020-05-06 22:32:40.618 DEBUG Plugin.debugLog: Starting device: Octopus EnergyL Tarif
2020-05-06 22:32:40.618 DEBUG Plugin.debugLog: 144136383 Octopus EnergyL Tarif
2020-05-06 22:32:40.637 DEBUG Plugin.debugLog: No need to update Current 2020-05-06T21:30:00Z Stored 2020-05-06T21:30:00Z for Octopus EnergyL Tarif
2020-05-06 22:32:40.637 DEBUG Plugin.debugLog: com.barn.indigoplugin.OctopusEnergy : (dict)
Device_Postcode : AB12 3CD (string)
Log_Rates : true (bool)
address : AB12 3CD (string)
device_gsp : M (string)
today_rates : [{"valid_from": "2020-05-06T22:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T23:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T22:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T22:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T21:30:00Z", "value_exc_vat": 5.0, "valid_to": "2020-05-06T22:00:00Z", "value_inc_vat": 5.25}, {"valid_from": "2020-05-06T21:00:00Z", "value_exc_vat": 6.2, "valid_to": "2020-05-06T21:30:00Z", "value_inc_vat": 6.51}, {"valid_from": "2020-05-06T20:30:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T21:00:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T20:00:00Z", "value_exc_vat": 6.84, "valid_to": "2020-05-06T20:30:00Z", "value_inc_vat": 7.182}, {"valid_from": "2020-05-06T19:30:00Z", "value_exc_vat": 6.8, "valid_to": "2020-05-06T20:00:00Z", "value_inc_vat": 7.14}, {"valid_from": "2020-05-06T19:00:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:30:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:30:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:00:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:00:00Z", "value_exc_vat": 7.3, "valid_to": "2020-05-06T18:30:00Z", "value_inc_vat": 7.665}, {"valid_from": "2020-05-06T17:30:00Z", "value_exc_vat": 20.18, "valid_to": "2020-05-06T18:00:00Z", "value_inc_vat": 21.189}, {"valid_from": "2020-05-06T17:00:00Z", "value_exc_vat": 19.94, "valid_to": "2020-05-06T17:30:00Z", "value_inc_vat": 20.937}, {"valid_from": "2020-05-06T16:30:00Z", "value_exc_vat": 19.9, "valid_to": "2020-05-06T17:00:00Z", "value_inc_vat": 20.895}, {"valid_from": "2020-05-06T16:00:00Z", "value_exc_vat": 18.3, "valid_to": "2020-05-06T16:30:00Z", "value_inc_vat": 19.215}, {"valid_from": "2020-05-06T15:30:00Z", "value_exc_vat": 18.6, "valid_to": "2020-05-06T16:00:00Z", "value_inc_vat": 19.53}, {"valid_from": "2020-05-06T15:00:00Z", "value_exc_vat": 16.26, "valid_to": "2020-05-06T15:30:00Z", "value_inc_vat": 17.073}, {"valid_from": "2020-05-06T14:30:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T15:00:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T14:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:00:00Z", "value_exc_vat": 3.8, "valid_to": "2020-05-06T13:30:00Z", "value_inc_vat": 3.99}, {"valid_from": "2020-05-06T12:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T13:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T12:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T12:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T11:30:00Z", "value_exc_vat": 5.09, "valid_to": "2020-05-06T12:00:00Z", "value_inc_vat": 5.3445}, {"valid_from": "2020-05-06T11:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T11:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T10:30:00Z", "value_exc_vat": 4.04, "valid_to": "2020-05-06T11:00:00Z", "value_inc_vat": 4.242}, {"valid_from": "2020-05-06T10:00:00Z", "value_exc_vat": 4.66, "valid_to": "2020-05-06T10:30:00Z", "value_inc_vat": 4.893}, {"valid_from": "2020-05-06T09:30:00Z", "value_exc_vat": 4.0, "valid_to": "2020-05-06T10:00:00Z", "value_inc_vat": 4.2}, {"valid_from": "2020-05-06T09:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T09:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T08:30:00Z", "value_exc_vat": 4.94, "valid_to": "2020-05-06T09:00:00Z", "value_inc_vat": 5.187}, {"valid_from": "2020-05-06T08:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T08:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T07:30:00Z", "value_exc_vat": 6.4, "valid_to": "2020-05-06T08:00:00Z", "value_inc_vat": 6.72}, {"valid_from": "2020-05-06T07:00:00Z", "value_exc_vat": 6.56, "valid_to": "2020-05-06T07:30:00Z", "value_inc_vat": 6.888}, {"valid_from": "2020-05-06T06:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T07:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T06:00:00Z", "value_exc_vat": 5.4, "valid_to": "2020-05-06T06:30:00Z", "value_inc_vat": 5.67}, {"valid_from": "2020-05-06T05:30:00Z", "value_exc_vat": 5.82, "valid_to": "2020-05-06T06:00:00Z", "value_inc_vat": 6.111}, {"valid_from": "2020-05-06T05:00:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T05:30:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T04:30:00Z", "value_exc_vat": 4.56, "valid_to": "2020-05-06T05:00:00Z", "value_inc_vat": 4.788}, {"valid_from": "2020-05-06T04:00:00Z", "value_exc_vat": 4.44, "valid_to": "2020-05-06T04:30:00Z", "value_inc_vat": 4.662}, {"valid_from": "2020-05-06T03:30:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-06T04:00:00Z", "value_inc_vat": 4.956}, {"valid_from": "2020-05-06T03:00:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T03:30:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T02:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T03:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T02:00:00Z", "value_exc_vat": 4.16, "valid_to": "2020-05-06T02:30:00Z", "value_inc_vat": 4.368}, {"valid_from": "2020-05-06T01:30:00Z", "value_exc_vat": 3.32, "valid_to": "2020-05-06T02:00:00Z", "value_inc_vat": 3.486}, {"valid_from": "2020-05-06T01:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T01:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T00:30:00Z", "value_exc_vat": 5.16, "valid_to": "2020-05-06T01:00:00Z", "value_inc_vat": 5.418}, {"valid_from": "2020-05-06T00:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T00:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-05T23:30:00Z", "value_exc_vat": 3.58, "valid_to": "2020-05-06T00:00:00Z", "value_inc_vat": 3.759}, {"valid_from": "2020-05-05T23:00:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-05T23:30:00Z", "value_inc_vat": 4.956}] (string)
2020-05-06 22:32:40.637 DEBUG Plugin.debugLog: period_from=2020-05-06T00:00&period_to=2020-05-06T23:59
2020-05-06 22:32:40.914 DEBUG Plugin.debugLog: Updating yesterday rates
2020-05-06 22:32:41.069 DEBUG Plugin.debugLog: Standard Charge 21.0
2020-05-06 22:32:41.070 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tarif
2020-05-06 22:32:41.071 DEBUG Plugin.debugLog: Stopping device: Octopus EnergyL Tarif
2020-05-06 22:32:41.071 DEBUG Plugin.debugLog: Starting device: Octopus EnergyL Tarif
2020-05-06 22:32:41.071 DEBUG Plugin.debugLog: 144136383 Octopus EnergyL Tarif
2020-05-06 22:32:41.089 DEBUG Plugin.debugLog: No need to update Current 2020-05-06T21:30:00Z Stored 2020-05-06T21:30:00Z for Octopus EnergyL Tarif
2020-05-06 22:32:41.090 DEBUG Plugin.debugLog: com.barn.indigoplugin.OctopusEnergy : (dict)
Device_Postcode : AB12 3CD (string)
Log_Rates : true (bool)
address : AB12 3CD (string)
device_gsp : M (string)
today_rates : [{"valid_from": "2020-05-06T22:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T23:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T22:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T22:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T21:30:00Z", "value_exc_vat": 5.0, "valid_to": "2020-05-06T22:00:00Z", "value_inc_vat": 5.25}, {"valid_from": "2020-05-06T21:00:00Z", "value_exc_vat": 6.2, "valid_to": "2020-05-06T21:30:00Z", "value_inc_vat": 6.51}, {"valid_from": "2020-05-06T20:30:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T21:00:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T20:00:00Z", "value_exc_vat": 6.84, "valid_to": "2020-05-06T20:30:00Z", "value_inc_vat": 7.182}, {"valid_from": "2020-05-06T19:30:00Z", "value_exc_vat": 6.8, "valid_to": "2020-05-06T20:00:00Z", "value_inc_vat": 7.14}, {"valid_from": "2020-05-06T19:00:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:30:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:30:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:00:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:00:00Z", "value_exc_vat": 7.3, "valid_to": "2020-05-06T18:30:00Z", "value_inc_vat": 7.665}, {"valid_from": "2020-05-06T17:30:00Z", "value_exc_vat": 20.18, "valid_to": "2020-05-06T18:00:00Z", "value_inc_vat": 21.189}, {"valid_from": "2020-05-06T17:00:00Z", "value_exc_vat": 19.94, "valid_to": "2020-05-06T17:30:00Z", "value_inc_vat": 20.937}, {"valid_from": "2020-05-06T16:30:00Z", "value_exc_vat": 19.9, "valid_to": "2020-05-06T17:00:00Z", "value_inc_vat": 20.895}, {"valid_from": "2020-05-06T16:00:00Z", "value_exc_vat": 18.3, "valid_to": "2020-05-06T16:30:00Z", "value_inc_vat": 19.215}, {"valid_from": "2020-05-06T15:30:00Z", "value_exc_vat": 18.6, "valid_to": "2020-05-06T16:00:00Z", "value_inc_vat": 19.53}, {"valid_from": "2020-05-06T15:00:00Z", "value_exc_vat": 16.26, "valid_to": "2020-05-06T15:30:00Z", "value_inc_vat": 17.073}, {"valid_from": "2020-05-06T14:30:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T15:00:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T14:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:00:00Z", "value_exc_vat": 3.8, "valid_to": "2020-05-06T13:30:00Z", "value_inc_vat": 3.99}, {"valid_from": "2020-05-06T12:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T13:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T12:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T12:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T11:30:00Z", "value_exc_vat": 5.09, "valid_to": "2020-05-06T12:00:00Z", "value_inc_vat": 5.3445}, {"valid_from": "2020-05-06T11:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T11:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T10:30:00Z", "value_exc_vat": 4.04, "valid_to": "2020-05-06T11:00:00Z", "value_inc_vat": 4.242}, {"valid_from": "2020-05-06T10:00:00Z", "value_exc_vat": 4.66, "valid_to": "2020-05-06T10:30:00Z", "value_inc_vat": 4.893}, {"valid_from": "2020-05-06T09:30:00Z", "value_exc_vat": 4.0, "valid_to": "2020-05-06T10:00:00Z", "value_inc_vat": 4.2}, {"valid_from": "2020-05-06T09:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T09:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T08:30:00Z", "value_exc_vat": 4.94, "valid_to": "2020-05-06T09:00:00Z", "value_inc_vat": 5.187}, {"valid_from": "2020-05-06T08:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T08:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T07:30:00Z", "value_exc_vat": 6.4, "valid_to": "2020-05-06T08:00:00Z", "value_inc_vat": 6.72}, {"valid_from": "2020-05-06T07:00:00Z", "value_exc_vat": 6.56, "valid_to": "2020-05-06T07:30:00Z", "value_inc_vat": 6.888}, {"valid_from": "2020-05-06T06:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T07:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T06:00:00Z", "value_exc_vat": 5.4, "valid_to": "2020-05-06T06:30:00Z", "value_inc_vat": 5.67}, {"valid_from": "2020-05-06T05:30:00Z", "value_exc_vat": 5.82, "valid_to": "2020-05-06T06:00:00Z", "value_inc_vat": 6.111}, {"valid_from": "2020-05-06T05:00:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T05:30:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T04:30:00Z", "value_exc_vat": 4.56, "valid_to": "2020-05-06T05:00:00Z", "value_inc_vat": 4.788}, {"valid_from": "2020-05-06T04:00:00Z", "value_exc_vat": 4.44, "valid_to": "2020-05-06T04:30:00Z", "value_inc_vat": 4.662}, {"valid_from": "2020-05-06T03:30:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-06T04:00:00Z", "value_inc_vat": 4.956}, {"valid_from": "2020-05-06T03:00:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T03:30:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T02:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T03:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T02:00:00Z", "value_exc_vat": 4.16, "valid_to": "2020-05-06T02:30:00Z", "value_inc_vat": 4.368}, {"valid_from": "2020-05-06T01:30:00Z", "value_exc_vat": 3.32, "valid_to": "2020-05-06T02:00:00Z", "value_inc_vat": 3.486}, {"valid_from": "2020-05-06T01:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T01:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T00:30:00Z", "value_exc_vat": 5.16, "valid_to": "2020-05-06T01:00:00Z", "value_inc_vat": 5.418}, {"valid_from": "2020-05-06T00:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T00:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-05T23:30:00Z", "value_exc_vat": 3.58, "valid_to": "2020-05-06T00:00:00Z", "value_inc_vat": 3.759}, {"valid_from": "2020-05-05T23:00:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-05T23:30:00Z", "value_inc_vat": 4.956}] (string)
yesterday_rates : [{"valid_from": "2020-05-06T22:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T23:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T22:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T22:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T21:30:00Z", "value_exc_vat": 5.0, "valid_to": "2020-05-06T22:00:00Z", "value_inc_vat": 5.25}, {"valid_from": "2020-05-06T21:00:00Z", "value_exc_vat": 6.2, "valid_to": "2020-05-06T21:30:00Z", "value_inc_vat": 6.51}, {"valid_from": "2020-05-06T20:30:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T21:00:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T20:00:00Z", "value_exc_vat": 6.84, "valid_to": "2020-05-06T20:30:00Z", "value_inc_vat": 7.182}, {"valid_from": "2020-05-06T19:30:00Z", "value_exc_vat": 6.8, "valid_to": "2020-05-06T20:00:00Z", "value_inc_vat": 7.14}, {"valid_from": "2020-05-06T19:00:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:30:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:30:00Z", "value_exc_vat": 6.9, "valid_to": "2020-05-06T19:00:00Z", "value_inc_vat": 7.245}, {"valid_from": "2020-05-06T18:00:00Z", "value_exc_vat": 7.3, "valid_to": "2020-05-06T18:30:00Z", "value_inc_vat": 7.665}, {"valid_from": "2020-05-06T17:30:00Z", "value_exc_vat": 20.18, "valid_to": "2020-05-06T18:00:00Z", "value_inc_vat": 21.189}, {"valid_from": "2020-05-06T17:00:00Z", "value_exc_vat": 19.94, "valid_to": "2020-05-06T17:30:00Z", "value_inc_vat": 20.937}, {"valid_from": "2020-05-06T16:30:00Z", "value_exc_vat": 19.9, "valid_to": "2020-05-06T17:00:00Z", "value_inc_vat": 20.895}, {"valid_from": "2020-05-06T16:00:00Z", "value_exc_vat": 18.3, "valid_to": "2020-05-06T16:30:00Z", "value_inc_vat": 19.215}, {"valid_from": "2020-05-06T15:30:00Z", "value_exc_vat": 18.6, "valid_to": "2020-05-06T16:00:00Z", "value_inc_vat": 19.53}, {"valid_from": "2020-05-06T15:00:00Z", "value_exc_vat": 16.26, "valid_to": "2020-05-06T15:30:00Z", "value_inc_vat": 17.073}, {"valid_from": "2020-05-06T14:30:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T15:00:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T14:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T14:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T13:00:00Z", "value_exc_vat": 3.8, "valid_to": "2020-05-06T13:30:00Z", "value_inc_vat": 3.99}, {"valid_from": "2020-05-06T12:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T13:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T12:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T12:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T11:30:00Z", "value_exc_vat": 5.09, "valid_to": "2020-05-06T12:00:00Z", "value_inc_vat": 5.3445}, {"valid_from": "2020-05-06T11:00:00Z", "value_exc_vat": 5.2, "valid_to": "2020-05-06T11:30:00Z", "value_inc_vat": 5.46}, {"valid_from": "2020-05-06T10:30:00Z", "value_exc_vat": 4.04, "valid_to": "2020-05-06T11:00:00Z", "value_inc_vat": 4.242}, {"valid_from": "2020-05-06T10:00:00Z", "value_exc_vat": 4.66, "valid_to": "2020-05-06T10:30:00Z", "value_inc_vat": 4.893}, {"valid_from": "2020-05-06T09:30:00Z", "value_exc_vat": 4.0, "valid_to": "2020-05-06T10:00:00Z", "value_inc_vat": 4.2}, {"valid_from": "2020-05-06T09:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T09:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T08:30:00Z", "value_exc_vat": 4.94, "valid_to": "2020-05-06T09:00:00Z", "value_inc_vat": 5.187}, {"valid_from": "2020-05-06T08:00:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T08:30:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T07:30:00Z", "value_exc_vat": 6.4, "valid_to": "2020-05-06T08:00:00Z", "value_inc_vat": 6.72}, {"valid_from": "2020-05-06T07:00:00Z", "value_exc_vat": 6.56, "valid_to": "2020-05-06T07:30:00Z", "value_inc_vat": 6.888}, {"valid_from": "2020-05-06T06:30:00Z", "value_exc_vat": 6.0, "valid_to": "2020-05-06T07:00:00Z", "value_inc_vat": 6.3}, {"valid_from": "2020-05-06T06:00:00Z", "value_exc_vat": 5.4, "valid_to": "2020-05-06T06:30:00Z", "value_inc_vat": 5.67}, {"valid_from": "2020-05-06T05:30:00Z", "value_exc_vat": 5.82, "valid_to": "2020-05-06T06:00:00Z", "value_inc_vat": 6.111}, {"valid_from": "2020-05-06T05:00:00Z", "value_exc_vat": 5.6, "valid_to": "2020-05-06T05:30:00Z", "value_inc_vat": 5.88}, {"valid_from": "2020-05-06T04:30:00Z", "value_exc_vat": 4.56, "valid_to": "2020-05-06T05:00:00Z", "value_inc_vat": 4.788}, {"valid_from": "2020-05-06T04:00:00Z", "value_exc_vat": 4.44, "valid_to": "2020-05-06T04:30:00Z", "value_inc_vat": 4.662}, {"valid_from": "2020-05-06T03:30:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-06T04:00:00Z", "value_inc_vat": 4.956}, {"valid_from": "2020-05-06T03:00:00Z", "value_exc_vat": 4.2, "valid_to": "2020-05-06T03:30:00Z", "value_inc_vat": 4.41}, {"valid_from": "2020-05-06T02:30:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T03:00:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-06T02:00:00Z", "value_exc_vat": 4.16, "valid_to": "2020-05-06T02:30:00Z", "value_inc_vat": 4.368}, {"valid_from": "2020-05-06T01:30:00Z", "value_exc_vat": 3.32, "valid_to": "2020-05-06T02:00:00Z", "value_inc_vat": 3.486}, {"valid_from": "2020-05-06T01:00:00Z", "value_exc_vat": 4.4, "valid_to": "2020-05-06T01:30:00Z", "value_inc_vat": 4.62}, {"valid_from": "2020-05-06T00:30:00Z", "value_exc_vat": 5.16, "valid_to": "2020-05-06T01:00:00Z", "value_inc_vat": 5.418}, {"valid_from": "2020-05-06T00:00:00Z", "value_exc_vat": 3.6, "valid_to": "2020-05-06T00:30:00Z", "value_inc_vat": 3.78}, {"valid_from": "2020-05-05T23:30:00Z", "value_exc_vat": 3.58, "valid_to": "2020-05-06T00:00:00Z", "value_inc_vat": 3.759}, {"valid_from": "2020-05-05T23:00:00Z", "value_exc_vat": 4.72, "valid_to": "2020-05-05T23:30:00Z", "value_inc_vat": 4.956}] (string)
2020-05-06 22:32:41.091 DEBUG Plugin.debugLog: period_from=2020-05-06T00:00&period_to=2020-05-06T23:59
2020-05-06 22:32:41.343 DEBUG Plugin.debugLog: Updating yesterday rates
2020-05-06 22:32:41.508 DEBUG Plugin.debugLog: Standard Charge 21.0
2020-05-06 22:32:41.509 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tarif
2020-05-06 22:32:41.511 DEBUG Plugin.debugLog: Stopping device: Octopus EnergyL Tarif

Something tells me the plugin might be refreshing rate information....

Upgraded to .1.5 alpha and the plugin went round and round and round.

Reloaded the plugin, it had to be forced to kill by the Indigo host, but once it reloaded again it is now running ok.

Just a gremlin to watch out for somewhere.

Peter

Posted on
Wed May 06, 2020 3:58 pm
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: Refreshing Rate Information from the Octopus API for Dev

Thanks Peter - I will take a look tomorrow, it is working for me but I will try the upgrade

Posted on
Thu May 07, 2020 1:56 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Refreshing Rate Information from the Octopus API for Dev

Hi Neil,
The same thing happened to me when I installed this new version.
Reloading the plugin seems to have resolved the issue. :)

Posted on
Thu May 07, 2020 4:12 am
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: Refreshing Rate Information from the Octopus API for Dev

Doh... obviously in the new "robust" logic I missed something in the initialisation (I guess I restart too often when I was testing/building so missed the issue)

I should be able to replicate then which is good so thanks for letting me know.

I will add a comment to the pre-release version warning people and take a look probably this evening. It is all part of the learning, at least that is what I tell myself.

Thanks,
Neil

Posted on
Fri May 08, 2020 4:23 am
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: Refreshing Rate Information from the Octopus API for Dev

Hi both,

After some head scratching I tracked this one down (and it flushed a couple of other more minor flaws out).

- Root cause was an extra indent so the update.StatesOnServer call was subjected to an unintended condition (but on 9/10 situations the condition was met anyway, hence me not seeing the behaviour)

- I threw up a couple of other issues, that should now be resolved (my internal storage of the results JSON actually happened twice in a day so overwrote yesterday with a second copy of today). I don't yet consume that so no big deal but it would have messed me up later.

- I cleaned up the logic that determines what needs to happen in what circumstance (if only to make it easier for me to read)

It just shows I am still a python rookie, and even more rusty as a developer but really enjoying it. Will add more comprehensive regression testing to my QA and release process and maybe request a development license ! Thanks for your patience and support.

Hopefully one final interim version that will add device level action to write the rate information for today and yesterday to either the event log or to a CSV on demand. This will also allow time to test the daily cycles and to review the logging to make sure all is as I need.


https://github.com/neilkplugins/Octopus_Energy-indigo-plugin/releases/tag/0.1.6-alpha

Posted on
Fri May 08, 2020 4:34 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Refreshing Rate Information from the Octopus API for Dev

Just installed the new version and all is OK. :D

Posted on
Fri May 08, 2020 11:20 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Refreshing Rate Information from the Octopus API for Dev

autolog wrote:
Just installed the new version and all is OK. :D

So was mine - until 18:00...

2020-05-08 18:00:58.302 Octopus Energy Refreshing Daily Rate Information from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:00:58.302 Octopus Energy Refreshing the Afternoon Daily Rate Update from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:00:58.668 Octopus Energy Refreshing Daily Rate Information from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:00:58.668 Octopus Energy Refreshing the Afternoon Daily Rate Update from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:00:58.849 Octopus Energy Current Rate inc vat is 22.05
2020-05-08 18:00:59.100 Octopus Energy Current Rate inc vat is 22.05
2020-05-08 18:00:59.130 Octopus Energy Refreshing Daily Rate Information from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:00:59.130 Octopus Energy Refreshing the Afternoon Daily Rate Update from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:00:59.570 Octopus Energy Current Rate inc vat is 22.05
2020-05-08 18:00:59.601 Octopus Energy Refreshing Daily Rate Information from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:00:59.601 Octopus Energy Refreshing the Afternoon Daily Rate Update from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:01:00.013 Octopus Energy Refreshing Daily Rate Information from the Octopus API for Device Octopus EnergyL Tariff


2020-05-08 18:17:38.126 Octopus Energy Refreshing the Afternoon Daily Rate Update from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:17:39.270 Octopus Energy Error Octopus API refresh failure, Other error HTTPSConnectionPool(host='api.octopus.energy', port=443): Read timed out. (read timeout=1.0)
2020-05-08 18:17:39.271 Octopus Energy Error Octopus API Refresh, Error in getting current tariffs
2020-05-08 18:17:39.450 Octopus Energy Error Error in plugin execution ServerReplacedElem:

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 7.4/IndigoPluginHost.app/Contents/Resources/PlugIns/plugin_base.py", line 1179, in deviceUpdated
File "plugin.py", line 51, in deviceStartComm
File "plugin.py", line 268, in update
UnboundLocalError: local variable 'average_rate' referenced before assignment

2020-05-08 18:17:39.465 Octopus Energy Refreshing Daily Rate Information from the Octopus API for Device Octopus EnergyL Tariff
2020-05-08 18:17:39.466 Octopus Energy Refreshing the Afternoon Daily Rate Update from the Octopus API for Device Octopus EnergyL Tariff


2020-05-08 17:58:58.257 DEBUG Plugin.debugLog: No need to update Current 2020-05-08T16:30:00Z Stored 2020-05-08T16:30:00Z for Octopus EnergyL Tariff
2020-05-08 17:58:58.264 DEBUG Plugin.debugLog: No Need to update daily - same day as last update Octopus EnergyL Tariff
2020-05-08 17:58:58.265 DEBUG Plugin.debugLog: No Need for the Afternoon refresh - it is not 17:00Z for Octopus EnergyL Tariff
2020-05-08 17:58:58.265 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tariff
2020-05-08 17:59:58.277 DEBUG Plugin.debugLog: No need to update Current 2020-05-08T16:30:00Z Stored 2020-05-08T16:30:00Z for Octopus EnergyL Tariff
2020-05-08 17:59:58.279 DEBUG Plugin.debugLog: No Need to update daily - same day as last update Octopus EnergyL Tariff
2020-05-08 17:59:58.279 DEBUG Plugin.debugLog: No Need for the Afternoon refresh - it is not 17:00Z for Octopus EnergyL Tariff
2020-05-08 17:59:58.279 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tariff
2020-05-08 18:00:58.289 DEBUG Plugin.debugLog: Need to Update Current 2020-05-08T17:00:00Z Stored 2020-05-08T16:30:00Z for Octopus EnergyL Tariff
2020-05-08 18:00:58.301 DEBUG Plugin.debugLog: Then into update daily rate
2020-05-08 18:00:58.301 DEBUG Plugin.debugLog: period_from=2020-05-08T00:00&period_to=2020-05-08T23:59
2020-05-08 18:00:58.634 DEBUG Plugin.debugLog: Got the rates OK
2020-05-08 18:00:58.659 DEBUG Plugin.debugLog: Updating yesterday rates
2020-05-08 18:00:58.661 DEBUG Plugin.debugLog: Stopping device: Octopus EnergyL Tariff
2020-05-08 18:00:58.662 DEBUG Plugin.debugLog: Starting device: Octopus EnergyL Tariff
2020-05-08 18:00:58.662 DEBUG Plugin.debugLog: 144136383 Octopus EnergyL Tariff
2020-05-08 18:00:58.665 DEBUG Plugin.debugLog: Need to Update Current 2020-05-08T17:00:00Z Stored 2020-05-08T16:30:00Z for Octopus EnergyL Tariff
2020-05-08 18:00:58.665 DEBUG Plugin.debugLog: Then into update daily rate
2020-05-08 18:00:58.665 DEBUG Plugin.debugLog: period_from=2020-05-08T00:00&period_to=2020-05-08T23:59
2020-05-08 18:00:58.847 DEBUG Plugin.debugLog: Standard Charge 21.0
2020-05-08 18:00:58.849 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tariff
2020-05-08 18:00:58.910 DEBUG Plugin.debugLog: Got the rates OK
2020-05-08 18:00:58.935 DEBUG Plugin.debugLog: Updating yesterday rates
2020-05-08 18:00:59.099 DEBUG Plugin.debugLog: Standard Charge 21.0
2020-05-08 18:00:59.100 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tariff
2020-05-08 18:00:59.101 DEBUG Plugin.debugLog: Stopping device: Octopus EnergyL Tariff
2020-05-08 18:00:59.101 DEBUG Plugin.debugLog: Starting device: Octopus EnergyL Tariff
2020-05-08 18:00:59.101 DEBUG Plugin.debugLog: 144136383 Octopus EnergyL Tariff
2020-05-08 18:00:59.129 DEBUG Plugin.debugLog: Need to Update Current 2020-05-08T17:00:00Z Stored 2020-05-08T16:30:00Z for Octopus EnergyL Tariff
2020-05-08 18:00:59.129 DEBUG Plugin.debugLog: Then into update daily rate
2020-05-08 18:00:59.130 DEBUG Plugin.debugLog: period_from=2020-05-08T00:00&period_to=2020-05-08T23:59
2020-05-08 18:00:59.393 DEBUG Plugin.debugLog: Got the rates OK
2020-05-08 18:00:59.416 DEBUG Plugin.debugLog: Updating yesterday rates
2020-05-08 18:00:59.569 DEBUG Plugin.debugLog: Standard Charge 21.0
2020-05-08 18:00:59.570 DEBUG Plugin.debugLog: Update cycle complete for Octopus EnergyL Tariff

Posted on
Fri May 08, 2020 11:39 am
autolog offline
Posts: 3988
Joined: Sep 10, 2013
Location: West Sussex, UK [GMT aka UTC]

Re: Refreshing Rate Information from the Octopus API for Dev

Likewise, but no crash just repeating:
Code: Select all
2020-05-08 18:22:23.800   DEBUG   Plugin.debugLog:   Stopping device: Octopus Energy
2020-05-08 18:22:23.801   DEBUG   Plugin.debugLog:   Starting device: Octopus Energy
2020-05-08 18:22:23.801   DEBUG   Plugin.debugLog:   505903605 Octopus Energy
2020-05-08 18:22:23.802   DEBUG   Plugin.debugLog:   No need to update Current 2020-05-08T17:00:00Z Stored 2020-05-08T17:00:00Z for Octopus Energy
2020-05-08 18:22:23.802   DEBUG   Plugin.debugLog:   Then into update daily rate
2020-05-08 18:22:23.802   DEBUG   Plugin.debugLog:   period_from=2020-05-08T00:00&period_to=2020-05-08T23:59
2020-05-08 18:22:24.009   DEBUG   Plugin.debugLog:   Got the rates OK
2020-05-08 18:22:24.021   DEBUG   Plugin.debugLog:   Updating yesterday rates
2020-05-08 18:22:24.136   DEBUG   Plugin.debugLog:   Standard Charge 21.0
2020-05-08 18:22:24.136   DEBUG   Plugin.debugLog:   Update cycle complete for Octopus Energy
2020-05-08 18:22:24.136   DEBUG   Plugin.debugLog:   Stopping device: Octopus Energy
2020-05-08 18:22:24.136   DEBUG   Plugin.debugLog:   Starting device: Octopus Energy
2020-05-08 18:22:24.136   DEBUG   Plugin.debugLog:   505903605 Octopus Energy
2020-05-08 18:22:24.137   DEBUG   Plugin.debugLog:   No need to update Current 2020-05-08T17:00:00Z Stored 2020-05-08T17:00:00Z for Octopus Energy
2020-05-08 18:22:24.138   DEBUG   Plugin.debugLog:   Then into update daily rate
2020-05-08 18:22:24.138   DEBUG   Plugin.debugLog:   period_from=2020-05-08T00:00&period_to=2020-05-08T23:59
2020-05-08 18:22:24.316   DEBUG   Plugin.debugLog:   Got the rates OK
2020-05-08 18:22:24.329   DEBUG   Plugin.debugLog:   Updating yesterday rates
2020-05-08 18:22:24.447   DEBUG   Plugin.debugLog:   Standard Charge 21.0
2020-05-08 18:22:24.447   DEBUG   Plugin.debugLog:   Update cycle complete for Octopus Energy

Until 18:30 and then back to normal. :)

Posted on
Fri May 08, 2020 12:02 pm
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: Refreshing Rate Information from the Octopus API for Dev

It turns out I broke the thing I didn't know was broken a different way when I fixed the other thing that used to be broken.

Sorry Gentlemen, and apologies to my son who may have had his vocabulary increased just after 18:00Z

New version pending.........

Posted on
Fri May 08, 2020 1:09 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Refreshing Rate Information from the Octopus API for Dev

Hehe, the best way of breaking things it to fix them...

Or is it the best way of fixing things is to break them...

Either way, don't worry about!

Posted on
Fri May 08, 2020 3:11 pm
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: Refreshing Rate Information from the Octopus API for Dev

https://github.com/neilkplugins/Octopus_Energy-indigo-plugin/releases/tag/0.1.7-Alpha

Just published, I did test the mechanism that tripped up at 18:00, but no guarantee that I haven't had another brain fade ! Added the plugin menu item actions to dump the rates, raw device data as well as device level actions that will create the csv's on demand for today and yesterdays rates.

To quote the support director at a previous company "It's not as broken as it was !"

Thanks for you help on this, I will make sure this is solid before pushing out to the store

Posted on
Fri May 15, 2020 12:03 pm
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Refreshing Rate Information from the Octopus API for Dev

I just came to Indigo and found my Octopus device showing "No Update" in red, and the "Current_From_Period" is showing 17:00Z which is 2 hours ago.

What does that mean?

(I'm still on 0.1.7 - will upgrading help - thought I'd stay where I was in case it fixes it by upgrading)

Posted on
Fri May 15, 2020 3:16 pm
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: Refreshing Rate Information from the Octopus API for Dev

Peter,
I will check into this tomorrow, I know I was seeing some API timeouts yesterday and the rate information has been published late. The published version has more validation of the API responses but it is possible that it is not catching all unexpected behaviour.
Neil

Posted on
Sat May 16, 2020 3:56 am
neilk offline
Posts: 714
Joined: Jul 13, 2015
Location: Reading, UK

Re: Refreshing Rate Information from the Octopus API for Dev

Peter,
I am pretty sure this will be addressed by upgrading to https://github.com/neilkplugins/Octopus_Energy-indigo-plugin/releases/download/0.2.0/OctopusEnergy.indigoPlugin.zip as I did find what looks like an API outage at the same time, but my later version recovered at the next update cycle correctly. I cleaned up the update logic in those interim versions, so even though I caught the failed request it did not recover. Of course it could have been a failure mode that was different so I will keep watching, and future versions may have more intelligent retry mechanisms. Another potential gotcha this week from the API is that the afternoon rates have been published later in the day than intended. If this is common (the API forum looks like it is not that common) then I will move to testing if the required extra hour is available rather than just relying on leaving a long time window beyond when it is due.

I will also add a "force refresh" option so that if the devices do get in an indeterminate state then you can force an update (or maybe at plugin restart) in the next version.

Thanks,
Neil

Posted on
Sat May 16, 2020 4:02 am
howartp offline
Posts: 4559
Joined: Jan 09, 2014
Location: West Yorkshire, UK

Re: Refreshing Rate Information from the Octopus API for Dev

That's fine, i'll grab 0.2.0

Peter

Who is online

Users browsing this forum: No registered users and 0 guests

cron