# Flow and Insights

In fact, I will try with that. Thank you

Nevertheless, here are the flows.

Required
â a Countdown or Timer app like Chronograph or CountDown
â 2 numeric variables (e.g. ConOld, ConCalc)

WhenâŚ
â Every 24 hours
ThenâŚ
â Set Energie to variable ConOld

WhenâŚ
â Time is 23:59
ThenâŚ
â Start Timer/Countdown with 59 s

WhenâŚ
â Timer/Countdown is finished
ThenâŚ
â Calculate ConCalc as {{round(Energie - ConOld,2)}}

WhenâŚ
â Time is 10:00
ThenâŚ
â Push Notification âYesterdayâs consumption was ConCalc kW/hâ

Info
â The result represents the previous dayâs consumption of 23 hours, 59 minutes and 59 seconds. So 1 second is missingâŚ
â The result is given in kW/h with 2 decimals. If the result should be given in W, the formula must be as follows: {{((Energie - ConOld)*1000)}}

I hope I havenât made a mistake, because I havenât tried it myselfâŚ

Or just use Power by the Hour, and send yourself the total kWh a few seconds after midnight.Or open the PBTH device in the Homey app to see the totals of today and yesterday and last month.
Or open Insights and see the totals.

That is actually why I created PBTH, so that you do not need to create complex flows or create graphs/reports from exported data.

Thatâs what I was trying to do but in the âwhenâ it just tells me that I can select when a value âgreaterâ âless thanâ changes there is no âreadâ command.

How can I do that?

You can select any value as tag from the PBTH device:

So there must be some truth in it. But some people need multiple reminders before a message sinks in

1 Like

Nice work, I will try and I hope to succeed.
Thank you

1 Like

I succeeded thank you, Iâm a beginner. Excuse

Thank you so much for your help

1 Like

No worries for asking help on the forum. That is what it is for, as long as you are willing to put in effort yourself. And you did, with success as result

1 Like

Is it possible in any way to recall via link or http command the âInsightsâ graph of a certain sensor and a certain time slot (example 24h)?

Example: