iobroker.energy-compare
v0.2.1
Published
Compare daily energy consumption between Octopus Energy and Inexogy
Readme

ioBroker.energy-compare
Tests:
ioBroker.energy-compare
The Energy Compare adapter periodically fetches daily electricity consumption data from Octopus Energy (Kraken API) and Inexogy (Discovergy/Statistics API), saving it automatically within your ioBroker object tree.
Its key purpose is identifying discrepancies in billing/measurement between your intelligent smart meter (Inexogy) and your energy supplier (Octopus Energy). Every night, the adapter compares both datasets and flags daily discrepancies that exceed a configurable threshold mathematically.
🌟 Features
- Full Kraken GraphQL Support: Authenticates via your Octopus JWT tokens and dynamically resolves your Home Property ID to download daily smart meter consumption edges.
- Inexogy Differential Statistics: Leverages Discovergys modern Statistics endpoint to accurately extrapolate exact 24-h chunks minimizing trailing comma discrepancies.
- 30-Day Zero Load Caching: Upon startup (or daily execution via Cron at 02:00 AM), the adapter retroactively reviews the past 30 days. To strictly minimize heavy API loads, the adapter queries its own ioBroker cache first — it only fires external web requests for days that are actively missing from your history tree.
- Dynamic IO-Trees: Automatically structures all datasets by real dates under the
history.YYYY-MM-DDparent tree.
⚙️ Installation
To install this adapter seamlessly into your ioBroker environment:
- Open your ioBroker Admin UI in the browser.
- Ensure Expert Mode is enabled (headman icon).
- Navigate to "Adapters".
- Click the GitHub / Custom URL icon ("Install from custom URL").
- Switch to the Custom tab and paste the raw GitHub repository URL:
https://github.com/tipp88/ioBroker.energy-compare - Click install. Once downloaded, create a new instance (the little
+button).
🔧 Configuration
Octopus Energy (Kraken):
- Enter your standard Octopus login credentials (Email & Password).
- Input your Account Number (usually starts with
A-). - (Optional) Property ID: If Kraken refuses to dynamically match your
propertyId, you can explicitly set it here to hard-override the Graph query.
Inexogy:
- Enter your Inexogy portal Email & Password. The adapter automatically manages Basic Auth parsing and translates it into Discovergy API queries.
General Settings:
- Discrepancy Threshold: Defines how many
kWhdifference must be present between Octopus and Inexogy to trigger thehasDiscrepancy: truestate flag. Default is0.1 kWh.
- Discrepancy Threshold: Defines how many
Once configured, the adapter handles the rest! It sets an internal Cronjob scaling back 30 days every night. Data manifests under the energy-compare.0.history path.
Changelog
0.2.1 (2026-05-05)
- (tipp88) Fixed adapter checker warnings and errors.
0.2.0 (2026-04-23)
- (tipp88) Added data retention setting and aggregated history JSON states.
0.1.0 (2026-04-23)
- (tipp88) Initial release with 30-day API cache sweep and deep property introspection.
License
MIT License
Copyright (c) 2026 tipp88
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

