# GivEnergy (Octopus Energy)

**URL:** <https://community.homey.app/t/givenergy-octopus-energy/124857>\
**Category:** Questions & Help\
**Created:** [December 20, 2024, 10:20pm UTC](https://community.homey.app/t/givenergy-octopus-energy/124857 "2024-12-20T22:20:11Z")\
**Posts on this page:** 1\
**Showing post:** 5

<div class="post-metadata">

**Author:** ![Peter\_Kawa](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/peter_kawa/32/173848_2.png) [@Peter\_Kawa](https://community.homey.app/u/Peter_Kawa)\
**Post date:** [May 13, 2025, 12:44am UTC](https://community.homey.app/t/givenergy-octopus-energy/124857/5 "2025-05-13T00:44:02Z")

</div>

Octopus Energy data can be fetched with Homeyscript

> [@Help with how to build a script](https://community.homey.app/t/help-with-how-to-build-a-script/130690/11):
>
> Thanks for all the help so far. I used Chat GPT to build some scripts for me. This script returns the unit rates I’m on based on the hours of the day: // Replace with your actual API key const apiKey = ‘YOUR API HERE’; // Define the product code and tariff code for Octopus Go const productCode = ‘GO-VAR-22-10-14’; const tariffCode = ‘E-1R-GO-VAR-22-10-14-A’; // Define the date range for fetching tariff data const periodFrom = new Date().toISOString(); const periodTo = new Date(Date.now…

---

_[View the full topic](https://community.homey.app/t/givenergy-octopus-energy/124857)._
