# \[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:** 1\
**Showing post:** 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)

---

_[View the full topic](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535)._
