[RELEASE] Watchtower long-term metrics app

Really love this app and looking forward to seeing how it will evolve.

I have a question about the following graph of a smart outlet, why is the power graph broken up in some places?

It is safe to ignore the extremely wild Voltage fluctuations, this is the primary reason I am logging this, so that I can send this to my utility company and complain.

1 Like

When the line is broken, the smart outlet was turned off (switch = off).

But the graph doesn't look so good with all that broken lines. Maybe it should go to zero.

Ah, that makes sense, but indeed, that does make the graph look a bit weird :slight_smile:

Now I wonder, as we are now logging information from devices via this tool, would it be possible to create a text tile that can inform about total on/off time or accumulated data (total x) from the available data? I am aware that the outlets already accumulate energy, days on etc, but it is not as easy to view.

1 Like

You can already see this information using the time resolution picker.

For instance in this graph:
{A173434B-CEF1-41D2-A3AB-4AC53B8E74CB}

  • We are using the 1d (1 day) time resolution; each data point represents one value for 1 whole day.
  • From 8 Oct 00:00 to 9 Oct 00:00 the "Livingroom - Entrance" light was on for 74.55% of this time interval. That is about 17.90 hours.

For this graph:
{9197B968-B10F-4474-80BD-87151B3ACC21}

  • We are using the 1w (1 week) time resolution; each data point represents one value for 1 whole week.
  • From 30 Sept 00:00 to 7 Oct 00:00 the "Livingroom - Entrance" light was on for 80.20% of this time interval. That is about 135.7 hours.

You can also get the raw data from the csv files in the File Manager.

1 Like

Thanks for this super useful app. Truly amazing!

I really need to play around with this and get some sort of display worked out.
Something to pull the hourly voltage value from a graph and display it on a Dashboard tile.
Sure wish programming stuff didn't make my head hurt. :wink:

1 Like

Coming back after a month or so of playing, I think for me a dealbreaker is not being able to get more specific with what shows up on a graph. My example I gave above is still one of my best, but I need to pick different attributes from each device and plot them on the same graph to be useful in my usecases today. Right now, I either have to pick broadly across "all temperatures" (for an example) or "multiple things in one device" - and I really need more specificity, ideally with dual axis capability too.

Are you thinking about any of this as you progress with the app? Thank you so much!!!

1 Like

This is kind of a big change. Not saying that I won't do it sometime, cause I see its value, but I need the find a big chunk of time to tackle it. Thank you for the request.

1 Like

Released version 2.1.0 with the following changes:

Added

  • Add option to render zero for missing values - @Kulfsson
  • Add option to edit dashboard tiles - @briguy

Changed

  • Change tooltip title to display the datapoint time interval

This release contains only UI / dashboard changes, with just a very small fix on the Groovy / data collection part. Hope I did not break anything, it was a bit of a rush job :slight_smile:

Have fun!

4 Likes

Thanks for another great update!
Unfortunately, something did break...

A device can be added to a new or existing dashboard.
However, adding a second device in the same session replaces the device that was just added.
Saving and closing after adding a single device allows for another device to be added.

2 Likes

Fixed in 2.1.1, update from HPM.
You are now automatically enrolled in the beta testers team :slight_smile:

6 Likes

Since you enrolled me to the beta testers team...
I would like to report some minor issues for you to review when you have some time, no rush or not very important :grinning:

1. Chart zoom selection when mouse gets out of bounds

Works perfect every time for Hubitat Hub graphs

Does not work for most of my other graphs and chops out really fast

2. Graph shading and Chart min/max

Min/max not selected – there is shading under the graph

Tile updated with min/max – shading disappears (first graph)

3. Option to edit dashboard tiles

This option works great on all my dashboard tiles, except the Hubitat Hub dashboard.

Initial selection shows all chart attributes:

Selecting option again, the attributes options disappear and attributes cannot be changed again. Also, Y-axis changes to Auto from fixed

2 Likes

Released 2.2.0 with the following changes:

Added

  • Add load, zoom, and pan transition animations

Fixed

  • Edit device widget does not load attributes for "Hubitat Hub" - @iEnam
  • Add/edit device widget ignores Y-scale dashboard setting - @iEnam

Have fun!

1 Like

If you get the mouse of the tile widget bounds, the zoom resets. The first chart has a scale on the right side (RAM MB Size), so your mouse does not get out of the tile bounds. Cannot fix this, sorry.

Edit: You can start the zoom from the right side and move to the left, maybe this will help a bit.

When the graph has more than 2 datasets, it changes from area-type chart to line-type chart, otherwise the multiple area overlapping (color mixing) will look bad. By adding the min/max, you are adding 2 more datasets.

Both bugs were fixed in 2.2.0. Thank you very much for taking the time to report this. You rock!

1 Like

Amazing work and thank you!

1 Like

Mr. Dandanache .. Nice work as always :slight_smile:
Was wondering if you could add the hub ram and temp to watchtower ?
Kinda like with the [Hub-a-Dashery] or is there a way to do it ?
On My Charts it only shows current. ( see Pic ) Thaks !

1 Like

You should already be able to chart hub stats, not only current values. There is a special device named "Hubitat Hub" that has 4 metrics. Try to add a tile like this:

1 Like

Got it .. I guess I added it wrong :expressionless:
Thanks for the quick response. Working great now :slight_smile:

One thing as a suggestion .. Can we have the scroll wheel zoom like on [Hub-a-Dashery]
I kinda like the new way .. but the [Hub-a-Dashery] way was / seems easier somehow.

Anyway thanks for the help! And App !

1 Like

Just updated to : 2.3.9.201
And got this error during a reboot .. not sure if it matters.

1 Like

Released version 2.3.0 with the following change:

Added

  • Add Status Map chart type - @briguy

The new Status Map chart can render only non-numerical attributes that have 2 states (switch:on/off, contact:open/closed, motion:active/inactive, presence:present/not present, etc.).

This is how it looks with some lights in my apartment:

This is not exactly what you had in mind, but I hope it's close enough :slight_smile:

Have fun!

4 Likes

Sorry, not going back to that; it bugged me that the mouse wheel was zooming the graphs when I wanted to scroll the dashboard page. I believe that Hub-a-Dashery has only a few tiles available, not enough to require a page scroll, so it didn't bother me back then.

Plus, I believe that using the selection box, you have more control on the portion of the graph that you want to zoom in.

Thank you for reporting this :+1:. I will try to reproduce and fix it.

1 Like