[APP][DEV][PRO] Octopus Energy Integration

Consequences - App Crashes

When I released V1.0.31 I accidentally left some test code in the App. This data would allow you to create Smart Energy Devices even though you don’t have an Intelligent Tariff and don’t have any Smart Devices. If you are an Intelligent Tariff customer you might have created devices that don’t really exist on your account.

The release of V1.0.33 has exposed the consequences of my error and the app is crashing for some of you as it tries to update a Smart Energy Device that doesn’t actually exist. You can stop this happening simply be deleting the device.

I have made a change in the code which means that, for most of you, the offending device will be marked UNAVAILABLE in Homey (a Red Triangle with an exclamation mark on the device). If you show the capabilities panel for the device there will be a message “bad device; please delete”. Please follow the suggestion!

I believe that at least one user who is affected by the problem is an Intelligent Tariff customer (maybe it’s you @SirSh0rty?). In this case I have hardened the code. The app should run normally but the erroneously created device will never update because it never receives any new data (because it doesn’t exist on the Octopus account).

Please look out for this circumstance and delete the offending device.

These changes will be published as V1.0.34

Please accept my apologies for the mess-up and its consequences.

V1.0.34 Handle Crashes from Devices Created From Test Data

Further to my post, above, V1.0.34 has been created to help overcome the consequences. The hardening of the code is the only change made.

Once again “we apologise for the inconvenience”.

Alec's best of the forum (and elsewhere) thread | Frontier Forums

V1.0.34 Usage Analysis

Good news - ironed out the kinks caused by my mistake of including test data in the published version. Making steady progress towards integrating Dispatches into the Energy Account device; Tariff devices should follow pretty quickly because they will use the same concepts (and reuse code).

Version Installs Crashes Crash Types Comment
1.0.34 9 107 0 Weird new bug, ouch
1.0.30 2 0 0 Robust for non-intelligent tariff customers
1.0.29 3 0 0 OK so far…
1.0.28 1 1 1 Query returning malformed response
1.0.21 1 98 4* Stupid typo I should have spotted (12/13)
1.0.9 1 24924 6 Early release with simplistic assumptions

Updated 2025-12-03 11:30

* Release 1.0.21 is interesting - the number of crash types has not really doubled since the last version of this table. One user is still on Homey 12.8.2 (current Homey release is 12.9.0). If your Homey device supports the upgrade I recommend you install it. Homey reports crash-types against each Homey release - it’s the same two faults but in two different Homey releases.

Please Upgrade

Still quite a few users running old (some very old) releases. Given these are less stable, that must be causing you some annoyance from crashes. Can I please encourage you to upgrade. You will get extra functionality too.

Working great for me so far thank you!

Will keep an eye on it over the next few days. Great work @David_Piper thank you!

1 Like

Intelligent Tariff Users

Any feedback on the Dispatch Starts and Dispatch Ends trigger flow cards?

All Users

Any requests for additional Flow Cards?

Weird Crash “Just Started” in V1.0.34

Something weird has happened in V1.0.34 that I don’t understand. Having run without problems since its release, it has started crashing for at least one user. It’s also crashing in a weird place that gets executed many-many-many times and hasn’t crashed before - a file that has not changed since V1.0.28 (12th November). So I am at a bit of a loss to explain what is going on.

The crash started at 2025-12-02T11:30 and was last seen at 13:17 (the same day). If you have experienced these crashes please get in contact so I can try and work out what is happening. The simplest solution is probably simply to uninstall and reinstall.

Thanks!

V1.0.34 Bug #12

The fault that appeared in V1.0.34 yesterday has been logged as bug #12. The fix will be released along with an improved Energy Account device that takes Dispatch Pricing into account. Defects permitting, I anticipate making this release tomorrow morning.

V1.0.35 Implement Intelligent Dispatches in Energy Account Device

For Intelligent Tariff users, Dispatch Pricing will be reflected in the Energy Account device (but not yet in the Tariff devices - coming in the next version). If there are Smart Devices registered on the Octopus account then a new boolean capability will be displayed - “In Dispatch” - it says “Yes” or “No”. This Capability is hidden if there are no Smart Devices registered.

In addition the device displays the Import Price - when a dispatch is active, this will show the Dispatch Unit Price; when a dispatch is not active it shows the normal Tariff Unit Price. Two additional capabilities are added - Chunk Consumption and Chunk Value. The term “chunk” is being used as the label for the 30 minute periodicity imposed by the UK Smart Metering network.

These two capabilities will be of interest to @Brettus_Maximus. If you plot the insights of these two capabilities you will see consumption and cost per half hour. Note it’s half an hour “in arrears” because at 10:00 (for example) Homey logs consumption from 09:30-10:00.

Here are my insights for the last 24 hours…

Alongside pricing information - notice how consumption aligns to the lowest price :grin:

Bug #12

The code has been strengthened to work around this bug. It is not resolved since I don’t understand the root cause.

Next…

Extend Intelligent Dispatches to the (import) Tariff device.

V1.0.35 Usage Analysis

Version Installs Crashes Crash Types Comment
1.0.35 10 0 0 So far…
1.0.30 2 0 0 Robust for non-intelligent tariff customers
1.0.29 3 0 0 OK so far…
1.0.28 1 1 1 Query returning malformed response
1.0.21 1 111 3* Stupid typo I should have spotted (12/13)
1.0.9 1 25924 6 Early release with simplistic assumptions
Totals 18 :scream: 11* 1.0.21 = 3 crash types across 2 Homey vns

Across the 18 installs there are 38 different Homey devices instantiated.

@2025-11-04 11:40

Please Upgrade

At the risk of becoming a repetitive bore, please can I ask users on the oldest releases to upgrade.