I do not have an EV, but the app probably has some kind of trigger like “Remaining Charge time changed” or something? Usethat to trigger the homey script card. Add the following code:
/**
* HomeyScript: Calculate EV Charge End Time
*
* Usage in Homey Flow (Advanced Flow or Standard Flow):
* 1. Use the "Run Code with Argument, and return Text-tag" card.
* 2. Pass the remaining charging minutes (number or text tag) as the argument.
* 3. The script returns a text tag formatted as "HH:mm" (24-hour format).
*/
const TIMEZONE = 'Europe/Amsterdam';
const LOCALE = 'nl-NL';
// 1. Retrieve the argument passed to the script from the Flow card
// args[0] contains the input passed into the HomeyScript Flow card.
// For testing directly in the HomeyScript Web Editor, it falls back to 90 minutes.
const rawArgument = args[0] !== undefined && args[0] !== '' ? args[0] : 90;
// 2. Parse and validate the input minutes
const remainingMinutes = Number(rawArgument);
if (isNaN(remainingMinutes) || remainingMinutes < 0) {
throw new Error(`Invalid input argument: "${rawArgument}". Please provide a valid positive number of minutes.`);
}
// 3. Get the current time and add the remaining charging minutes
const now = new Date();
const endTime = new Date(now.getTime() + remainingMinutes * 60000); // 1 minute = 60,000 milliseconds
// 4. Extract and format the hours and minutes using the specified locale and timezone
const hours = endTime.toLocaleString(LOCALE, { timeZone: TIMEZONE, hour: '2-digit', hour12: false }).padStart(2, '0');
const minutes = endTime.toLocaleString(LOCALE, { timeZone: TIMEZONE, minute: '2-digit' }).padStart(2, '0');
const formattedEndTime = `${hours}:${minutes}`;
// Log the result to the console for easy testing in the HomeyScript editor
log(`Remaining minutes: ${remainingMinutes}`);
log(`Calculated End Time (${TIMEZONE}): ${formattedEndTime}`);
// 5. Return the text value so it can be used as a resulting Tag in your Flow
return formattedEndTime;
I’m using the Arrow widget in Dashboard Studio to build an energy flow diagram of my home. The arrows show these flows:
Solar panels → house
Solar panels → grid (export)
Grid → house (import)
House → EV charger
I’d like the animation speed to depend on the amount of power flowing, so a low power gives a slow animation and a high power gives a fast one.
Where I’m setting it
I’m using a payload formula in the arrow’s settings under Animations & effects → animation(s), in the field “Animation Speed (s)”. This field is a duration in seconds, so a lower value means a faster animation. That means I have to map high power to a low value.
Hi Gunter,
The errors occurs because Dashboard Studio’s Payload Formula engine is a custom mathematical expression evaluator, not standard JavaScript. (the code also did the opposite of what you asked)
You can do this:
max(0.5, min(5, round(5 - (abs({{p1-meter/measure_power}}) / 875), 1)))
5.0s (at 0 W) and 0.5s (at high power).
Did you use AI to generate that code? If so you need to give the AI model a bit of understanding about the formulas. you can give it this link Or just copy paste (there is a copy button if you hover on top of the header text) it in the prompt.
Hi, thanks for the help! I’ll try out both solutions later. And yes, I did try to generate it with AI. Next time I’ll remember to include the example code.
Hello, I’ve tried the formulas, but neither seems to work for me. I think I might be entering them in the wrong place. I’ve attached two images: the first shows the settings for “enable animation,” and the second shows the settings for “animation speed.”
In this example I have made a slider that goes from 0 to 3500 (watt)
The further the slider the faster the animation. When the slider is 0 the animation is stopped.
I just simulate the measure power and send this to a local topic. A local topic is a topic with local/ in front of it. This does not leave the dashboard. This is just for simulation. you can use the data from zonnepanelen/measure_power
This is the arrow widget. I made both “enable animation” and “Animation speed” dynamic and added to both the same topic I used for the slider:
The higher the number the lower the faster the animation speed goed (the number decreases, for this). I used “value” inside the formula, if you only use a single topic in the formula this is better. It uses the topic you have added in the dropdown box.
The “Enable Animation” also already work fine immediately when you add the dynamic topic: This is a boolean (yes / no) input and when the value is 0 this equals to “no” (or false to be accurate). Every other value is not 0 so yes (or true). But to be neat I have added to following formula:
When you want a formula, you should set the transform mode to “Numeric Payload Formula”.
This formula: if(value < 1, 0, 1)
Sets the animation off if the value goes below 1.
Now that Dashboard Studio can handle pretty much everything in 2D, is there anything left to be desired?
An increasingly interesting development is the emergence of interactive 3D dashboards. Currently, Dashboard Studio does not offer the ability to display or integrate web pages.
Would it be feasible and desirable for @Satoer to explore 3D floor plans? A great challenge for a graphic designer, I think.
Some interesting developments are already underway for Homey, where you can zoom in from a view of your entire home to a specific floor, and then down to an individual room containing controllable devices and reading measurements.
The developer of Mikonus (3D floorplan creator) actually reached out to me about potentially building a custom widget to integrate 3D floor plans. It is an interesting project, but I am not entirely sure how a good integration would even work in practice.
For Dashboard Studio to feel right, everything has to be completely seamless. Dashboard Studio is built entirely around topics where every setting can be made dynamic, acting like a flexible set of modular building blocks that talk to each other to keep the interface clean and unified. Sticking a standalone 3D world into that setup just does not feel like a natural fit and might end up being too clunky.
Plus, from my own experience, while 3D interfaces look super cool, day to day they usually take a few extra steps compared to a flat view. When I first started, I thought I wanted full control over every single bulb, but with over 25 Hue lights in a room it is just not practical. Simple scene buttons or smart automations work so much better because a great dashboard should only surface what you actually need right then with a single tap, rather than making you click through multiple layers or pages. Just my take on things, though I know other users might feel the exact opposite.
So it is around in the back of my mind, but I have not quite figured out any concrete plans for it yet. Besides, there is enough on the stack I want to do first.
I agree with you that, in most cases, you want to be able to operate standard lights and curtains automatically with as little effort as possible. At the same time, I also want to retain the option to easily deviate from that standard.
Have you seen the Homey Homedeck app yet? Maybe not to integrate, but to use some 3D ideas in a DS style.
I just took a look at it and my stance hasn’t changed. I don’t think it convenient to have to open a floor plan and navigate to a room just to dim a light or tweak the temperature. I am not bashing on that software though, I am sure some users want to control their home that way. But integrating something like this in Dasboard Studio… Where does this even stop. It starts with a simple floorplan editor, and before you know it people are asking for a massive 3D asset library, custom model imports, day and night lighting simulations, multi-story staircases, animated garage doors, color pickers floating over lamps, animations…
If we go down that road, Dashboard Studio slowly turns into a full-blown CAD program or interior design tool. I am not entirely against the idea to integrate 3D floor plans, but I believe the 3D design belongs outside the scope of DS. It is in the back of my mind like I mentioned, but I have no immediate plans for it. There are other priorities to handle first.
The graph widget had been fully rewritten with lots of new additions and improvements. I think most graphs will convert fine in this new widget. But layered graphs on top of each other might need some re-aligning. I think I now have included almost all request that I have received in this topic.
You can now plot several lines or bars together on the same graph. Each graph can have its own data topic, custom name, line and fill colors, and soft gradient, automatically styled with your dashboard theme colors.
Easily browse and connect live data to your graph with the new visual picker. It detects incoming Homey Insights, data streams, and device values, showing live mini preview charts and current readings so you can set up graphs with one click.
New: Smooth Graph Animations
Graphs can now smoothly animate when opening a page or receiving live updates. Watch lines draw in across the screen, bars rise from the baseline, and data points smoothly glide into their new positions.
The graph automatically creates a legend and can be docked along any side of the graph or dragged anywhere on your canvas as a floating panel. You can resize it from any edge or corner, and clicking a graph in the legend toggles that line on and off.
Duration graphs can now continuously glide forward with the real clock, giving you a live view even if sensor readings only update every once in a while.
You can now rotate labels, date and time labels at an angle so longer labels fit comfortably without bumping into each other or getting clipped.
Improved: Neat Time and Date Steps
Timelines now line up with natural calendar units, such as the top of the hour or midnight, without repeating identical times.
Improved: Cleaner Settings Layout
Renamed graph settings and moved them to spots that actually make more sense.
Fixed: Automatic Minimum Fits Your Data
Automatic graph scaling used to always force the bottom of the chart to zero, even when all your numbers were much higher (such as room temperatures between 19° and 23°). The scale now properly fits your actual lowest data value.
Fixed: Negative Values with Fixed Limits
Setting a fixed minimum limit previously caused negative readings to disappear as blank gaps; they now correctly display as positive bars or lines in their configured negative color.
Fixed: Bar Chart Labels Now Centered
Labels and tick marks on bar graphs used to be pulled toward the far left and right edges. They now sit directly underneath the center of each bar.
Fixed: Widget Title No Longer Cuts Off Bottom Labels
Adding a title label to the graph widget previously pushed the chart down and cut off the dates, times, and tick marks along the bottom edge.
Fixed: Repeating Time Labels on the Axis
The time axis no longer repeats identical hour or date numbers when spacing out timeline markers.
Fixed: Zero Baseline Overlapping Numbers
The zero baseline grid line no longer clashes or overlaps with nearby axis numbers.
You can easily navigate your dashboard using swipe gestures with either your mouse or a touchscreen. You can swipe to flip through pages, loop back to the start, jump to a specific page, or even trigger your own custom flows. It even lets you skip certain pages, like if you have a screen that is only meant for a dialog. I still consider this to be in beta because it is not exactly flawless and I am still fighting with the default iOS gestures. Give it a shot and let me know if it is actually useful or if I should just scrap it. Since nobody has actually requested this yet, it might be something that no one even ends up using.
Fixed: Topic Page Switching
Linking a widget’s page setting to a live data topic now instantly moves the widget to the received page as soon as the value arrives.
This was a bit of a personal annoyance for me. In the previous version, I restricted widgets from going over the edge of the canvas, but they still found ways to sneak outside. You could still manually enter coordinates to move them off-screen or change the canvas size to push them out. Other things caused it too, like some auto-sizing widgets. Instead of fighting this behavior, I decided to loosen the restrictions and allow widgets to be placed anywhere. They are now shown as a vague silhouette with their name when they are off-canvas, and you can still scale or move them around..
Fixed: Preserving Custom Canvas Sizes
Upgrading older dashboards with custom resolutions no longer accidentally resets your screen size back to the default canvas size.
Fixed: Toolbar Selection Clicking
Clicking on the canvas right next to the toolbar now reliably deselects the current widget and returns you to main settings without an invisible dead zone.
Fixed: Restored Widget Settings
Restored several missing appearance controls in the editor, including Gradient Width on arrows, Focus Glow Color on edit boxes, Toggle Color (Off) on light grids, and Separator Gap on menus.
Calendar Integration
New: Outlook and Exchange Calendars
You can now connect published calendar links from Outlook.com and Microsoft Exchange. Recurring events stay on their exact scheduled times across Daylight Saving Time changes, and special calendar characters are cleaned up so events display neatly in your tables.
Kiosk & System Stability
Improved: Kiosk & Wall Display Stability
Improved stability and memory efficiency on 24/7 wall displays.
Fixed: Analog Clock Midnight Spin
Clock hands no longer spin backwards a full turn at midnight. (Has anyone noticed this one? )
Fixed: Arrow and Line Colors
Arrow and Line widgets no longer turn invisible or lose their color when connected to smart light data topics or custom color settings.
The Widget Arsenal tab in About & Statistics is now called Widget Info. It features an interactive table showing every widget’s version, category, release date, and how many times it is used on your dashboard, with expandable rows showing the full update history for that widget.
New: Redesigned Release Notes
The website changelog and in-app release notes now feature clean category badges, prominent titles, and easy-to-read paragraphs.
User problems / requests
Can you check if this new version has fixed your problem Bjarte? (you need to install the test version)
Can you check if 2.3.0 has fixed this problem for you?
I overhauled the graph widget and added some new features based on this feedback. These are meant for streaming data instead of static data. Now adding the same value again actually adds a new data point. You can set the graph to “real time” mode now, which makes it flow continuously with time instead of jumping at every data interval. Give these settings a spin and let me know if they work for you.
The time distribution on the x-axis is way better now. It doesn’t show the same hours or dates multiple times anymore, and it anchors right on the exact hour or date change.
Took a couple of month’s but your wish was hopeful enough
I noticed that you’ve just released an update to the Graph Widget. Unfortunately, it seems to have introduced some significant performance issues at my end.
Before the update, my dashboards and graphs were running beautifully, with everything responding quickly and updating reliably. Since the update, however, the dashboards have become extremely slow, and some graphs either take a very long time to refresh or don’t update at all.
It’s quite a noticeable step backwards compared to how well everything worked before.
Could you perhaps have a look at what might be causing this?
That’s not good. I didn’t run into any performance issues while I was testing. Can you send me a debug report? Open the editor, click the DS logo, go to “Diagnostics,” and hit the “Copy Debug Report” button at the bottom. That’ll help me figure out what the problem is. Is it just the graphs that are slow or is the whole dashboard lagging? How does the demo page run on the demo page?