# Electricity meter - variable prices

**URL:** <https://community.homey.app/t/electricity-meter-variable-prices/107185>\
**Category:** Questions & Help\
**Created:** [March 27, 2024, 9:49am UTC](https://community.homey.app/t/electricity-meter-variable-prices/107185 "2024-03-27T09:49:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Damian](https://avatars.discourse-cdn.com/v4/letter/d/34f0e0/32.png) [@Damian](https://community.homey.app/u/Damian)\
**Post date:** [March 27, 2024, 9:49am UTC](https://community.homey.app/t/electricity-meter-variable-prices/107185/1 "2024-03-27T09:49:30Z")

</div>

Hi,

I would like to purchase a device, e.g. from Shelly, to count electricity consumption.

In my house, electricity rates vary depending on the day of the week and time of day.

From Monday to Friday, from 1-3 p.m. and 10-6 p.m., electricity is cheaper + on weekends and holidays.

The remaining days are more expensive. Can you suggest me how I can create variables to calculate electricity at the correct rates for these variables?

---

<div class="post-metadata">

**Author:** ![johan\_W](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/johan_w/32/17556_2.png) [@johan\_W](https://community.homey.app/u/johan_W)\
**Post date:** [March 27, 2024, 10:13am UTC](https://community.homey.app/t/electricity-meter-variable-prices/107185/2 "2024-03-27T10:13:28Z")

</div>

Maybe you can look to the app Power by the hour

> [@\[APP\]\[Pro\] Power by the Hour: Insights per hour, day, month and year](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535):
>
> Appstore stable version: [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour) Appstore test version: [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test)Power by the Hour Get data from a Homey power/gas/water meter device, and show the usage / production per hour, per day, per month and per year. Know the monetary value and use dynamic tariffs. Know how much your Always-on appliances are using and safe hundreds of Euros per year! This app can be used for instance together with the Enelogic and Youl…

There is a selection off Energy provider in it.  
Then you can use a Shelly or Eaton device to count your Consumtion.  
Maybee with the combination off a Eaton and all so the app from HomeWizard ([HomeWizard | Homey](https://homey.app/nl-nl/app/com.homewizard/HomeWizard/) )

Then You have a serius good inight off your use off electricity

---

<div class="post-metadata">

**Author:** ![DirkH](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/dirkh/32/78952_2.png) [@DirkH](https://community.homey.app/u/DirkH)\
**Post date:** [March 27, 2024, 11:19am UTC](https://community.homey.app/t/electricity-meter-variable-prices/107185/3 "2024-03-27T11:19:20Z")

</div>

I guess Power by the Hour is the best solution.  
If you do not want to have an extra _device_ and you want to calculate the actual price and costs on your own, I would suggest the app cronjob ([https://homey.app/de-lu/app/dev.schweiger.cron-job/](https://homey.app/de-lu/app/dev.schweiger.cron-job/)), which makes it easy to do the calculation at certain times and days of week in one step in advanced flows.  
You only need the numeric variables TotalElectricityCosts LastTotalConsumption to view the costs in Insight. If you want to create a monthly report, you probably need some extra variables or tools, I am not familiar with.  
A variable CurrentPricePerKWH would be helpful to understand the development
