Always wanted to know how long your device is running or how much energy it used?
With this app you can compare these (or basically any kind of number) data in Homey.
Current features:
Start/Stop duration (Calculate time in between)
Start/Stop comparison with value - (Calculate difference of numbers)
Convert number to currency
Calculation with 2 numbers ([+] [-] [/] [*])
Convert number to specified decimal number
Trigger flow when duration or calculation is done. (Use outcome as tags in flows)
CHORE Update homey api to latest specs thanks to @martijnpoppen
FIX Token creation error for wrong type
1.4.6
FIX Error handling setting flow tokens
1.4.5
NEW Added duration in seconds to global and trigger (flow) tags
NEW Added currency formats for Norway, Sweden & Denmark
NEW Add support for Norwegian language
FIX Language locales for Norway, Sweden & Danmark
1.4.1
NEW Trigger cards for individual devices in zone, with tags available in flow
NEW Action cards for converting text to lowercase, uppercase, first letter uppercase & first letter from every word uppercase
FIX Trigger cards for individual devices in zone turned off
1.3.7
FIX: Small bugfix
1.3.6
FIX: App crashes on restart
1.3.5
NEW: Trigger flowcards:
– When devices in Zone turned on
– When devices in Zone turned off
NEW: Action flowcards:
– Set Color of (all) devices in Zone
– Set Percentage of (all) devices in Zone (Dim, Color temperature, Window coverings, Volume)
NEW: Contain variable data on app restart (FYI: @TomBoz )
Q1: How do I know which tag is used for the outcome of the flow card?
Answer: Every End flow card has written in the hint section which variable name is used to store the outcome. You can click the icon next to the flow card title to see this text.
Q2: Can I add variables via the homey web app? Answer: Not directly in the homey web app, but you can go to https://tools.developer.homey.app/tools/app-settings here you can find and app emulator and change the app settings for the app.
Example: compare & convert energy data into usage and price.
Start flow
Stop flow Note: kwhPrijs is a homey logic variable set with a prefix number. If you have high and low tarifs there are some examples on the forum to set these based on time.
NOTICE: the app needs to be reinstalled , since we had to made an ID change. The first app is not available in the store anymore!
Current flows continue to work, but it’s advised to install the new app and change the flow cards. After that you can remove the old app with version number : 0.1.1.
You can see the version number on the mobile app: More → Apps → Flow Utilities
I really like this idea, did find a bug, and have some feature requests:
Bug:
I needed to reboot the app before all variables/tokens were created/registered after creating them in the app settings, would result in error(s) before I did so.
Feature requests:
A popup warning for the “delete all” button, people with fat finger Will accidentally delete all their variables.
I Assume these are already on your to-do list:
Trigger card(s), for when variables have changed, like the duration, for example the “stop duration” could be stopped in several flows, adding all calculations in all those flows is kinda redundant.
Also better for flow management, as you really know when a value has changed/updated to the new value, delays in the flow cards work, but could result in (edge case) mishaps (and the end result can come in faster, not after at least 4 seconds when using all calculations).
I’ve installed the app but haven’t figured it out yet. But I hope it should work.
I want to calculate the consumption of my kWh meter for the day.
So “start position” meter, “end position” meter and calculate as end position - start position = daily consumption.
Start standings at 00:01 and end standings at 23:59.
Can you give me a hint ?
If I create a variable in the Homey app, I see it immediately on the web app.
If I create a variable in the web app, I see it immediately in the Homey app.
I don’t have to restart the app.
Awesome that you installed the app. For just your case we created this app.
I think you need te following setup: Note: 1 & 10 will be your tag/variable of your energie meter to get current counter. The ? will be the tag created by Flow Utilities app (For some reason this doesn’t show in shared flows). So in this case Kwhmeter verschil or if you have English setup it will be Kwhmeter difference
The kwhPrijs is in my case a fixed value setup as variable in homey. Since my power consumption price is the same for high and low tariffs.
But if you don’t have that you can have a flow setting the current value from 2 other variables(high/low) based on time/date. Setting the 3rd and use that value for the calculation.
Thank you for the explanation. I was misled by your used 1 and 10. Because I want to know the difference of the same meter, I have to enter the same twice. As in the example with both flows, a 1. I fill there the aggregated meter reading, that should be my daily consumption with the solar panels included. And when I manually execute the flows, calculations are also made. So it works. Thank you.
And I bought you a beer.