# \[APP\]\[Pro\] Power by the Hour: Insights per hour, day, month and year

**URL:** <https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535>\
**Category:** Apps\
**Tags:** app, tools\
**Created:** [November 10, 2019, 10:06pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535 "2019-11-10T22:06:03Z")\
**Posts on this page:** 20\
**Page:** 1

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 10, 2019, 10:06pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1 "2019-11-10T22:06:03Z")

</div>

Appstore stable version: [https://homey.app/a/com.gruijter.powerhour](https://homey.app/a/com.gruijter.powerhour)  
Appstore test version: [https://homey.app/a/com.gruijter.powerhour/test](https://homey.app/a/com.gruijter.powerhour/test)

# **Power by the Hour**

**Power by the Hour (PBTH)** turns Homey into a complete Home Energy Management System. Track power, gas, and water usage, forecast solar yield, optimize home battery storage, and automate appliances using dynamic European Day-Ahead energy spot prices.

[![Power by the Hour](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/a/8/a8ed184b7e76574ec29e1545a74d889743661132.jpeg)](https://github.com/gruijter/com.gruijter.powerhour/blob/master/assets/images/large.jpg)

* * *

## **🎯 Use Case Directory**

Select a use case below for detailed setup instructions, settings guides, and community-proven flow recipes:

| **Use Case** | **Core Driver** | **Detailed Guide** |
| --- | --- | --- |
| ⚡ **Track Electricity Usage & Standby Power** | Power Summarizer (`power`) | [→ README.power.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.power.md) |
| 🛢 **Monitor Gas Consumption & Leak Alarms** | Gas Summarizer (`gas`) | [→ README.gas.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.gas.md) |
| 💧 **Track Water Usage & Dripping Taps** | Water Summarizer (`water`) | [→ README.water.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.water.md) |
| ☀ **Forecast Solar Production & Self-Consumption** | Solar Forecaster (`solar`) | [→ README.solar.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.solar.md) |
| 🔋 **Optimize Home Battery Balancing & ROI** | Home Battery Manager (`battery`) | [→ README.battery.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.battery.md) |
| 💶 **Dynamic Electricity Spot Prices (1H & 15M)** | Day-Ahead Pricing (`dap` / `dap15`) | [→ README.dap.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.dap.md) |
| ⚡ **Dynamic Gas Spot Prices** | Gas Day-Ahead Pricing (`dapg`) | [→ README.dapg.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.dapg.md) |
| 💻 **App-to-App & HomeyScript Developer API** | Inter-App API | [→ README.dap-api.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.dap-api.md) |

* * *

## **🚀 Quick Start — The Most Popular Setup**

Get dynamic electricity tracking running in 3 simple steps:

1. **Add Day-Ahead Pricing:** Add a `Day-ahead Pricing` device, select your Bidding Zone (e.g. `NL`, `BE`, `DE-LU`, `NO1`, `SE3`, `DK1`), and set **Tariff Update Group** to `1` in device settings.
2. **Add Power Summarizer:** Add a `Power Summarizer` device and select your P1 Smart Meter or main energy meter as the source.
3. **Connect Tariff Broadcast:** Set **Tariff Update Group** to `1` in the Power Summarizer settings.

_Your Power Summarizer now updates its electricity tariff automatically every hour based on official market spot prices!_

* * *

## **💡 Shared Core Concepts**

To avoid repeating configuration steps across guides, key shared mechanisms are explained here:

### **1. Tariff Update Groups**

Tariff Update Groups link pricing providers (`dap`, `dap15`, `dapg`) to consumer summarizer devices (`power`, `gas`).

- Assign a group number (e.g. `1`) to both the pricing device and the summarizer device.
- Whenever prices update or time slots change, the pricing device automatically broadcasts updated tariffs to all summarizers in that group.

### **2. Annual Budget Distribution Models**

PBTH compares real-time usage against annual reference targets using seasonal distribution models:

- **Linear:** Equal allocation for each month (30.4 days/month).
- **Dutch 2023 Price Ceiling (`el_nl_2023` / `gas_nl_2023`):** Weighted according to seasonal heating and household consumption profiles.
- **Solar PV:** Weighted according to typical European solar irradiance curves.

### **3. Virtual Meter Setup**

For source devices with non-standard capability names or split tariffs:

1. Select **VIRTUAL\_METER** during driver pairing.
2. Push cumulative meter readings via a Flow using the action **Update Virtual Meter Value**.
3. Pass total net cumulative energy: $\text{kWh}_{\text{total}} = (\text{consumed}_{\text{high}} + \text{consumed}_{\text{low}}) - (\text{returned}_{\text{high}} + \text{returned}\_{\text{low}})$.

* * *

## **📡 Market Data Providers**

PBTH integrates data directly from official European energy market exchanges:

- **Electricity Spot Prices:** [ENTSO-E Transparency Platform](https://transparency.entsoe.eu/) & [Nordpool](https://www.nordpoolgroup.com/)
- **Gas Spot Prices:** [EEX (European Energy Exchange)](https://www.eex.com/) & [EasyEnergy](https://www.easyenergy.com/)
- **AI Price Forecasting:** [Stekker.ai](https://stekker.ai/)

* * *

## **👨‍💻 Developer API**

Other Homey apps and HomeyScript can query prices or listen for real-time slot pushes via the PBTH Inter-App API:

- `GET /dap-prices` — fetch all current future price slots.
- Realtime event `dap-prices-updated` — emitted on slot changes and price updates.

See **[README.dap-api.md](https://github.com/gruijter/com.gruijter.powerhour/blob/master/README.dap-api.md)** for full API reference and code examples.

* * *

## **❤ Donate & Support**

If Power by the Hour helps you save energy and money, consider supporting development:

[![Donate with PayPal](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/4/1423e3c95178543a5c372db26303450941a6dbbc.svg)](https://www.paypal.me/gruijter)

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 10, 2019, 10:07pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/2 "2019-11-10T22:07:39Z")

</div>

![Screenshot_20220129-115050](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/55d1f95545e8389c18729221bf901a71321811fb.jpeg)

 ![Screenshot_20200309-142623_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/8/28d7ce408131aea62f440c3dec915ac3db71c293.jpeg)

 ![Screenshot_20220126-165237_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/2/3/238b5a7c7a3495dd4e375d5b8f3621ccc97b8bf6.jpeg)

 ![Screenshot_20220124-210301_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/8/2/82484b1d91daf9c85aa71ccb88b17bcd413d8513.jpeg)

 ![Screenshot_20220124-192913_Chrome](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/d/4d66a18295c0e18112eed0150d22ca9864a2773c.jpeg)

 ![Screenshot_20220124-192032_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/8/f8cc0b5421e3bde96e6f5e1a8802456a766a8612.jpeg)

 ![Screenshot_20191111-155857](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/8/1891a3a50d7ed8f5edd938187c8f296ded2e37ab.png)

 ![2020-03-09](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/a/baa3b13efead1746b98d0f833833879f1ba00b53.png)

 ![Screenshot_20200309-131518_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/f/4/f414e36c3f75f487b782df16e485a9e0c0593969.jpeg)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/1/2/12a1275dde87ca9c92c8d79ce12db4f586e2866b.jpeg)

 ![Screenshot_20220126-170909_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/9/e/9e042588960650673df577334dc1c2815e1bcc08.jpeg)

 ![image](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/2/e28dcd7047993eea713aa9d2cbcf0f583c297c7c.png)

![2022-01-29](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/5/55e82da0ff03a2e8357db5e83bf71d458e72040b.png)

 ![Screenshot_20220225-154411_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/5/b536b76cdb308d7d3745e087f17280ac481600b4.jpeg)  
 ![Screenshot_20220225-152114_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/d/7/d7947c7317f9ba62cd07085f19ee3800c1d2dd74.jpeg)

 ![Screenshot_20230109_164651_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/5/0/50cf03f760502098a2a017832b2b1aeb9948c6d5.jpeg)  
 ![Screenshot_20230109_164612_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/b/eb351c9862c58b958f7dc0b7f2fd5da5f1af0aff.jpeg)

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 10, 2019, 10:19pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/3 "2019-11-10T22:19:06Z")

</div>

By popular demand, and because of my frustration that Athom is not providing better energy insights, I created this app. It is now still pending approval by Athom in the appstore.

If you want to have insights of your daily/monthly power use, or power production of your solar panels, this app is for you. You can bind it to any Homey device that has a meter\_power capability.

Let me know what you think of it.

---

<div class="post-metadata">

**Author:** ![Otter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/otter/32/11467_2.png) [@Otter](https://community.homey.app/u/Otter)\
**Post date:** [November 11, 2019, 6:49am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/4 "2019-11-11T06:49:56Z")

</div>

Nice! Pass it through Athom

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [November 11, 2019, 7:30am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/5 "2019-11-11T07:30:01Z")

</div>

Great job Robin, can’t wait to try it!

---

<div class="post-metadata">

**Author:** ![Rob](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob/32/10272_2.png) [@Rob](https://community.homey.app/u/Rob)\
**Post date:** [November 11, 2019, 8:05am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/6 "2019-11-11T08:05:25Z")

</div>

Super!

---

<div class="post-metadata">

**Author:** ![anon2681894](https://avatars.discourse-cdn.com/v4/letter/a/c67d28/32.png) [@anon2681894](https://community.homey.app/u/anon2681894)\
**Post date:** [November 11, 2019, 8:48am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/7 "2019-11-11T08:48:32Z")

</div>

This should be done by Athom in the first place…  
Thnx man, wonderfull

---

<div class="post-metadata">

**Author:** ![DaneedeKruyff](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/daneedekruyff/32/964_2.png) [@DaneedeKruyff](https://community.homey.app/u/DaneedeKruyff)\
**Post date:** [November 11, 2019, 10:04am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/8 "2019-11-11T10:04:51Z")

</div>

> [@anon2681894](#):
>
> This should be done by Athom in the first place…

I’m actually glad an active and committed community developer made this, and not Athom. Now I’m sure questions will be answered, bugs will be fixed and feature requests will be looked at.  
But that’s just me.

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 11, 2019, 4:39pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/9 "2019-11-11T16:39:17Z")

</div>

Athom didnt approve it today. I hope tomorrow…

If you want to give it a go already, you can get it from github

> **[gruijter/com.gruijter.powerhour](https://github.com/gruijter/com.gruijter.powerhour)**
>
> Homey app to summarize power meters per hour, day and month - gruijter/com.gruijter.powerhour

---

<div class="post-metadata">

**Author:** ![Rob](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/rob/32/10272_2.png) [@Rob](https://community.homey.app/u/Rob)\
**Post date:** [November 11, 2019, 5:59pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/10 "2019-11-11T17:59:57Z")

</div>

I think that Athom is busy with implementing this app in release 3.1…

---

<div class="post-metadata">

**Author:** ![Kevin](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/kevin/32/7999_2.png) [@Kevin](https://community.homey.app/u/Kevin)\
**Post date:** [November 11, 2019, 7:15pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/11 "2019-11-11T19:15:36Z")

</div>

4.X you mean (still hoping for the zigbee update announced donkey years ago) 😁

Thanks @Gruijter saves me about 10 flows of calculating variables which tend to get void when accidentally running the wrong flow 😉

---

<div class="post-metadata">

**Author:** ![Skorpion](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/skorpion/32/275_2.png) [@Skorpion](https://community.homey.app/u/Skorpion)\
**Post date:** [November 11, 2019, 11:27pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/12 "2019-11-11T23:27:24Z")

</div>

Was planning to make multiple flows to do exactly this. This is way better. Thanks!

---

<div class="post-metadata">

**Author:** ![Tangodelta](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/tangodelta/32/9471_2.png) [@Tangodelta](https://community.homey.app/u/Tangodelta)\
**Post date:** [November 12, 2019, 9:19am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/13 "2019-11-12T09:19:53Z")

</div>

Perfect in combination with Tibber home and pulse, thx! Possible to add year too?

---

<div class="post-metadata">

**Author:** ![Morgan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/morgan/32/15416_2.png) [@Morgan](https://community.homey.app/u/Morgan)\
**Post date:** [November 12, 2019, 2:36pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/14 "2019-11-12T14:36:19Z")

</div>

This app will be very useful. Good work!  
Maybe Athom should rename their Energy to Power? 🙂

---

<div class="post-metadata">

**Author:** ![JPe4619](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jpe4619/32/9017_2.png) [@JPe4619](https://community.homey.app/u/JPe4619)\
**Post date:** [November 12, 2019, 2:52pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/15 "2019-11-12T14:52:44Z")

</div>

> [@Morgan](#):
>
> Maybe Athom should rename their Energy to Power

> **Electricity** is measured in Watts and kilowatts
> 
> **Electricity** is measured in **units of power** called Watts, named to honor James Watt, the inventor of the steam engine. A Watt is the **unit** of **electrical power** equal to one ampere under the pressure of one volt.

according to Google.

---

<div class="post-metadata">

**Author:** ![Morgan](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/morgan/32/15416_2.png) [@Morgan](https://community.homey.app/u/Morgan)\
**Post date:** [November 12, 2019, 3:14pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/16 "2019-11-12T15:14:00Z")

</div>

**Energy** is power during a time, measured in J, Wh or kWh.  
**Power** is energy per unit of time, measured in J/s, W or kW.  
_According to me_

**Electricity** is the set of [physical](https://en.wikipedia.org/wiki/Physics) [phenomena](https://en.wikipedia.org/wiki/Phenomenon) associated with the presence and motion of matter that has a property of [electric charge](https://en.wikipedia.org/wiki/Electric_charge).  
_According to Wikipedia._

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 13, 2019, 6:57am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/17 "2019-11-13T06:57:32Z")

</div>

Still not released today. I guess Athom is busy getting the new app store running. Most of my published apps went missing😱

---

<div class="post-metadata">

**Author:** ![Jan\_Willem\_Visser](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem_visser/32/10747_2.png) [@Jan\_Willem\_Visser](https://community.homey.app/u/Jan_Willem_Visser)\
**Post date:** [November 13, 2019, 9:01am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/18 "2019-11-13T09:01:13Z")

</div>

Maybe the are busy with the Zigee rewrite 🤣

---

<div class="post-metadata">

**Author:** ![Jan\_Willem](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jan_willem/32/7326_2.png) [@Jan\_Willem](https://community.homey.app/u/Jan_Willem)\
**Post date:** [November 13, 2019, 12:42pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/19 "2019-11-13T12:42:18Z")

</div>

Nu homey chrashes when i use insights. So i am not so happy with it because accidentaly hit the button

---

<div class="post-metadata">

**Author:** ![Gruijter](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/gruijter/32/1973_2.png) [@Gruijter](https://community.homey.app/u/Gruijter)\
**Post date:** [November 13, 2019, 1:01pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/20 "2019-11-13T13:01:57Z")

</div>

Hi Jan\_Willem, I’m not sure what you mean. What button makes your Homey crash? Do you mean something the Power by the Hour app is doing? Or something else?

[Next page](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535.md?page=2)
