# \[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:** 76

<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: [May 20, 2023, 3:40pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1536 "2023-05-20T15:40:49Z")

</div>

Have a look at this great work by @Stikstof to get very nice looking pricing graphs:

> [@\[Inspiration\] Daily energy prices chart (using Power by the Hour)](https://community.homey.app/t/inspiration-daily-energy-prizes-chart-using-power-by-the-hour/80821):
>
> Hi all. I’ve been working on a set of flows to create a chart of the energy prices of the next day (using the [Power by the Hour App](https://homey.app/en-us/app/com.gruijter.powerhour/Power-by-the-Hour)). When the new prices come in, the chart is generated and sent to myself in a notification. As I think it might be useful for others, I’d like to share my work with you. Chart The chart itself looks like this (and is configurable), for which I use a free online tool called [Image Charts](https://www.image-charts.com/). With this tool, I can send the chart configuration encoded in the URL and it wi…

---

<div class="post-metadata">

### Author: ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)
#### Post date: [May 21, 2023, 1:09pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1537 "2023-05-21T13:09:11Z")

</div>

Hi,  
I noticed that since a couple of days, this card does activate more than once per day. It should only activate at the lowest price of the day (right?)?

 ![Screenshot_20230521-150926_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/d/bd56157b913972227ebc97f4264096298f1cbb2c.jpeg)

 ![Screenshot_20230521-150551_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/0/f/0f162c84461a739633cd3f2a6d5e986c8a12f769.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: [May 21, 2023, 1:39pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1538 "2023-05-21T13:39:26Z")

</div>

Normally yes, but yesterday the price at 14h was exactly the same at 15h. So that is why it triggered twice.

---

<div class="post-metadata">

### Author: ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)
#### Post date: [May 21, 2023, 5:42pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1539 "2023-05-21T17:42:59Z")

</div>

@Gruijter I see why it happens when the price is exactly the same. But the log shows 5 triggers for today, between 11 and 15h.  
Any idea how that happened?  
7b1110f9-b3ec-49df-9165-c3a426fa3888

---

<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: [May 21, 2023, 6:40pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1540 "2023-05-21T18:40:30Z")

</div>

I checked the log, but I don’t see anything weird. So I don’t know what happened. Maybe a Homey reboot is needed?

---

<div class="post-metadata">

### Author: ![Glenn\_Dijkstra](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/glenn_dijkstra/32/17251_2.png) [@Glenn\_Dijkstra](https://community.homey.app/u/Glenn_Dijkstra)
#### Post date: [May 21, 2023, 6:49pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1541 "2023-05-21T18:49:58Z")

</div>

Thanks for checking it out.  
I will do a reboot, but just to be sure:

 ![afbeelding](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/e/f/efae99d8ee5b4929d88f18860b8b712af0ad60ec.png)

Nothing wrong in that flow right ?  
Could it be, that it sees every 0 as the lowest point and everything under 0 as the same?

---

<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: [May 21, 2023, 7:00pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1542 "2023-05-21T19:00:39Z")

</div>

you could try replacing the trigger card to ‘is the lowest today’ in stead of ‘is lowest one of 1 lowest today’

---

<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: [May 21, 2023, 7:52pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1543 "2023-05-21T19:52:42Z")

</div>

Work in progress:

 ![Screenshot_20230521_215138_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/6/66a44be3e23fb8da187ab1380d240713d2dbcffb.jpeg)

---

<div class="post-metadata">

### Author: ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)
#### Post date: [May 22, 2023, 5:54am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1544 "2023-05-22T05:54:54Z")

</div>

Nice 😀.  
Request: can you make this chart customisable (with setting in advanced settings) to choose for prices for 24 hours of current day (your example), or all known future prices starting at current hour (like Zonneplan app)? 😁

---

<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: [May 22, 2023, 6:38am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1545 "2023-05-22T06:38:54Z")

</div>

> [@Torch1969](#):
>
> all known future prices

I think I can add that.

There is however a weird problem with images on Homey in general. Sending them via a flow works for some apps, but not all, and also depends on platform HP2016/2019 vs HP2023.

edit: @Jorden Can you give a clue why your image apps (Image grabber and Telegram Bot) are able to send the .png, while other apps (like Telegram, or Homey Push Notifications on HP2023) fail to do so?

---

<div class="post-metadata">

### Author: ![Jorden](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/jorden/32/8856_2.png) [@Jorden](https://community.homey.app/u/Jorden)
#### Post date: [May 22, 2023, 8:13am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1546 "2023-05-22T08:13:37Z")

</div>

I heard that sending images with the Telegram bot on Homey Pro 2023 doesn’t work. I don’t have one, haven’t ordered it yet (it’s on the list but since my home is so automated, I wanted to wait a bit to see if all worked well before I upgrade my home) so I cannot test it currently.  
I think it sends as a .bin file and could be that I just need to set the extension differently in some cases. It might be a ‘bug’ in Homey, where I use the image.getStream code to get the image. The filename parameter might be unfilled on the HP2023. Here is the code in the Telegram Bot app:

```
				const stream = await image.getStream();
				form.append('photo', stream, {
					contentType: stream.contentType,
					filename: stream.filename,
					name: 'photo',
				});

```

---

<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: [May 22, 2023, 9:34am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1547 "2023-05-22T09:34:34Z")

</div>

v5.6.0 was just released as test version: [Power by the Hour App for Homey | Homey](https://homey.app/a/com.gruijter.powerhour/test/)

- DAP: added pricing graphs as images.
- DAP: Added future prices trigger flow card.
- Battery: Improved hedge strategy.

So this adds pricing graphs that can be viewed from the device tile, and can also be used to send as image in a flow (note, not all apps support sending these images)

 ![Screenshot_20230522_113352_Homey](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/b/6/b6c38be18f6511932e99b57a7d69fb4767a07ad4.jpeg)

Also I added a trigger flow card that provides all known future prices as JSON, starting at the present hour (especially for you @Torch1969 !)

---

<div class="post-metadata">

### Author: ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)
#### Post date: [May 22, 2023, 11:02am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1548 "2023-05-22T11:02:32Z")

</div>

Great work @Gruijter.  
Can you take a look at the hours on the x-axis? I think they should be adjusted starting from current time… 😉

 ![Schermafbeelding 2023-05-22 om 12.58.49](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/4/2/42d59567189587dd4fd31017a97c26cd020176ae.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: [May 22, 2023, 11:03am UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1549 "2023-05-22T11:03:34Z")

</div>

> [@Torch1969](#):
>
> current time

the current hour is always 0. Maybe I will change it. Maybe not 😉

---

<div class="post-metadata">

### Author: ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)
#### Post date: [May 22, 2023, 1:07pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1550 "2023-05-22T13:07:21Z")

</div>

Ok, then the meaning of number on x-axis is “# hours from current hour”. Still little hard to recalculate the real hour. On the other hand, how to handle the hours on next day, starting again from zero…. 🤔

Another “bug”: After showing (or rebuilding for new hour?) the graph several times, the drop-down grows….

 ![Schermafbeelding 2023-05-22 om 15.02.28](https://us1.discourse-cdn.com/flex025/uploads/athom/original/3X/6/1/61bdfa95dce0b062ae634dc6323533c4aeb856e8.png)

---

<div class="post-metadata">

### Author: ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)
#### Post date: [May 22, 2023, 1:21pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1551 "2023-05-22T13:21:57Z")

</div>

The picture with the graphs stays black on my homey 2023 pro.

---

<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: [May 22, 2023, 1:48pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1552 "2023-05-22T13:48:06Z")

</div>

That’s what I get from adding new features 😮‍💨

The dropdown growing is only on my HP2016, not on my HP2023.  
The screen staying black on HP2023 is not what I have. On my HP2023 all is good…

Must be a Homey bug, or something not/badly documented on how to use camera images.

Will dig into it tonight (maybe).

---

<div class="post-metadata">

### Author: ![Bulletcather](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/bulletcather/32/13738_2.png) [@Bulletcather](https://community.homey.app/u/Bulletcather)
#### Post date: [May 22, 2023, 2:03pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1553 "2023-05-22T14:03:09Z")

</div>

Thanks and take your time.  
If you need logs or help let me know

---

<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: [May 22, 2023, 3:23pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1554 "2023-05-22T15:23:29Z")

</div>

new version 5.6.1 is ready for testing. In my test Homey’s it all works fine …

---

<div class="post-metadata">

### Author: ![Torch1969](https://sea1.discourse-cdn.com/flex025/user_avatar/community.homey.app/torch1969/32/33305_2.png) [@Torch1969](https://community.homey.app/u/Torch1969)
#### Post date: [May 22, 2023, 3:33pm UTC](https://community.homey.app/t/app-pro-power-by-the-hour-insights-per-hour-day-month-and-year/20535/1555 "2023-05-22T15:33:14Z")

</div>

> [@Gruijter](#):
>
> Also I added a trigger flow card that provides all known future prices as JSON, starting at the present hour (especially for you @Torch1969 !)

Thx for this, but which trigger flow card is this? I cannot find it…🤔

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

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