[APP][Pro] Dashboard Studio - A completely free-form dashboard designer

I agree with this, as realtime is not really realtime, in most instances it’s a polling frequency. Commonly, as long as a new value is not available, the most recent value is the actual value and as said, this approach results in a more ‘smooth’ (or: less ‘jumpy’) graph.
Anyway, it’s just a ‘nice to have’ and in case you implement, it’s off course up to you how (but I should not choose another optional setting, as the list of options already is huge (which is both an advantage and disadvantage)).

Hi Michel,

Step by step getting into the Dashboard Studio world. Trying to find as much as possible in all the wiki’s which are available. But i get a bit lost when i want to re-create your example with prices by the hour. I expected it would be a default insight in Homey and then i probably would manage it, but unluckily my thinking was a bit to easy. Can you please help me a bit on my way?

My setup is pretty specific. I basically put 5 graphs on top of each other to show as much information as possible in a limited space.

  • Current energy prices (the thick bars)
  • Current energy usage (red small bars = energy consumption, green small bars = energy pushed back to the grid)
  • Solar production (not visible in this graph, but it is a line graph)
  • Battery charging / discharging schedule: green block below the graph is charging, red is discharging
  • Numbers below it (this is basically a text graph, with just 0, 2, 4, 6… in the data)
  • Each graph has its own scale indicated by the top left labels. Energy price is max 42ct and consumption max 5.8kW

But like I said, this is a really particular setup just for my situation. Normally you do not combine graphs with different units together (prices and watts). Also, this was made using pre- Dashboard Studio V1. I still use it this way, haha. I’m too busy developing the software to use it myself.

Currently the graph widget has become way more advanced, and you can now combine multiple data sources in a single graph. Also the hours below the graph are redundant the way I did it. At the time when I was the only user, I did not bother to add the X and Y labels. But this is also fully integrated now. (easiest way to configure a graph is using the presets in the widget section of the graph widget.)

Anyhow… when you want to create a graph of the prices by the hour:
I use the app power by the hour.
This has cards that can retrieve the prices:


You can dump the data json has created directly to Dashboard Studio:

OMG!! 91 cent per kW… I wish it was just demo data :scream:

Anyway, all the other graphs that have insight information from Homey, you can send with the insight graphs. I linked the section in the help file. Did you follow the Homey start tutorial? I explain how to set up all the data linking in more depth there, but you could also use the new Auto Widget Gallery to easily add widgets already preconfigured for the data that comes in.

If you want to combine graphs with not compatible units, you can disable the “show Container” in the “container Style” section. This will hide the container, and you can stack multiple on top of each other. Combining the same units (like solar energy and electricity usages in watts) just add a graph inside the same graph:

Edit: If you tried the energy prices using the Homey test button, make sure the example JSON is valid. I just found out it actually isn’t. Otherwise, use it this way:

:+1:

How-to request: Generic Popup window

Probably should have asked this before I did it, but anyways – is there a clever way to create a generic popup window?
I’ve got three floors plans with several lights. Clicking on one of the lights brings up the generic popup configured for that specific light and I can do on/off, dim etc. for the light. Selecting a different light on the floor plan, and I can control that light in the popup.

I just went ahead and did it the straight-forward way – a variable that holds the popup title that corresponds to the light to be controlled. Selecting a light on the floor plan sets this variable and kicks off the popup setup flow/script (actually, it sets a “setup” variable that holds the title, light capabilities and the page the light is on).

Then I had to throw a counter into the mix to ensure every click has a unique value or else the flow won’t trigger - if you want to control the same light repeatedly. This is where I started to question my design…

I’m sure there are people out there who are eager to tell me how I should have done it :blush:

I could not get hold of the payload through the “Dashboard Studio triggered” card. The hoover-tip says “Value” is available but didn’t find it in the THEN card when trying to pass it on to my script. I “solved” it by setting a logic var and listening for changes on that instead.

Q: When setting a logic var from the dashboard, is it possible to include a timestamp in the payload (like time since epoc)? Then I wouldn’t need the counter because every value set from the dashboard would be unique.

Yes, I call it “teleporting”. Create the popup on any empty page. Basically create a container first and add all the widgets you want to see in your popup on top of it. Then group them. Once they are grouped, you can make the “Override Page(s)” dynamic.


Now when you want the popup to show on your page, just send the page number you want to that topic. You can use a button to show the popup by changing the “On Value” to the page where you want the popup to show:

You can add a similar button in the group to move the group back where it came from.
And if you also enable “Blur Background When Visible” in the group settings, the background gets blurred.
Just press “Core Telemetry” for a demo on the demo page.

I didn’t go into all the details with this popup: There is a detailed tutorial in the tips section of the documentation. Note: If you want a simple “are you sure” dialog for a button, that is already built into the button.

About your other question. You have a map with lights and you want to click one to control its settings. It makes sense that you don’t want to make a separate dialog for every light. You’re looking for a solution for that, right?

(just a sidenote: Have you played with the “light grid” widget?, it does not let you do what you want but it does let you change every light easily)

I don’t totally get the counter part. When you trigger a topic, like with a button press, it always triggers that topic even if the value is the same. I also don’t get why the value isn’t becoming available in the tags. I just did a quick test to check if any bugs crawled in:

Simple button with some text in the “on value” payload.

Homey flow:

The Homey said the payload perfectly fine, even if I press the button a bunch of times. (Annoyed wife looking in my direction :sweat_smile: )

Already doing the teleporting trick. :slight_smile:

As for the value not coming over…ehh…let’s forget about that. As my kids say - that didn’t happen :see_no_evil_monkey:
The the page to show the popup is controlled through a logic var. Each popup has a “resting page” and pressing a light on the floor plan sets the page to show the popup to the same as the light that was pressed. Close-button or timeout sends it back to its resting page. It works, but I do it via a logic vars inside a script. Maybe there is more direct way?

So if I understand right, you want to know how to close a popup with a timer in Dashboard Studio without using Homey logic. Right?

Well, if that’s the case you’ll be happy with the next 2.4.0 release. It’s actually online already for testing, but it’s not ready for a Homey release yet. It adds built-in timers to payload formulas. It’s mostly designed to take a date or time and show the remaining time as text, but while I was coding I got all kinds of ideas. Now it can also trigger booleans or integers and percentages to control things like gauges. You can see a crude demo over here. (need a lot of ui polish :sweat_smile: ) I already wrote the documentation for it.

Please let me know if this new addition is a solution for your countdown problem.

Anyway, working with timers, dates and times is a headache because of all the localisation logic behind it. Every continent likes to invent its own rules. I’m still working on streamlining that with a new localization slide-out in the main settings.

Hi,

Is it possible to use icons (.svg) from other Homey apps in a markdown generated by Homeyscript? And if yes does it work with passing the url to the .svg? Or do I need provide the .svg files in the Dashboard Studio image gallery?

You can do both Vincent. You can send the URL as a value to the URL section to display the svg, but you can also set the source type to “Animated Vector Graphic”:

Send the raw SVG code to the raw SVG setting. Just a heads up, some users have made massive files this way. These SVGs are cached by default, so if you go overboard it might cause a memory crash. There are options to mitigate that in the settings, but there are trade-offs.

Here I am again. In the gauges there are three colours. Is it in a way possible to define a threshold for each color. eg 0-50 → color1, 50-75 → color2, 75-100 color3? Or did I miss a setting somewhere?

By the way…great product. Totally addicted to it. Now designing a 2560x1440 dashboard.

First dashboard for my bedroom tablet.

No, sorry. Originally there were only two colors, but I added a third one in the middle later because of a new “Baseline” feature (this lets the gauge start in the middle or somewhere else). The third color automatically adjusts between the left and right ones unless you change it.

Thanks :slightly_smiling_face:

Looks great. I personally wouldn’t do gradients at all. The “luchtvochtigheid” (humidity) is a great example for the baseline feature:

50% is considered the ideal humidity. Way lower and way higher isn’t good. So with the baseline, it goes from 50% toward 0% or from 50% toward 100%.

I don’t know of this can be of any use to somebody? It’s a visual aid to layout the basics of a markdown.

Nice, maybe I should integrate that :slightly_smiling_face:

Having an issue with the blinking state of an icon. I want to icon to blink as long as the battery is not at 100. Here’s what i’ve tried but I can’t get it to work. The battery value is in {{homey/event/tablet_slaapkamer_batterij}} and the value to toggle the icon is {{homey/event/tablet_slaapkamer_power}}

You need to add the topic and the formula to the setting you want to control.
First enable the “blink on active”


Then make the “Default state” dynamic (I should rename this to just “state”)

Add the topic homey/event/tablet_slaapkamer_batterij in there
click the binding options and add this formula: if(value < 100, 1, 0)
If the value (the value is the value of the attached payload) is below 100 then the result is 1 (true) otherwise 0 (false). (Or formula ‘if(value == 100, 0, 1)’ should work as wel)

I don’t understand this part. You are trying to blink an icon right?

I’m trying to blink the icon as long as the battery isn’t at 100 and it’s connected to the charger. Otherwise the icon should stay on (not blinking). So the Default state is connected to {{homey/event/tablet_slaapkamer_power}} to indicate the tablet is on the charger or not.
Two different icons are used for on and off. When the state is on I want to have a dynamic value for the blinking of the icon. I hope I made myself clearer now.

I can give you the HTML if you want :slight_smile:

I’ve done it this way, so the colors blend into one another: