Page 1 of 1

How to add energy dashboard button!

Posted: Sunday 19 April 2026 11:08
by psubiaco
To add a button beside "Dashboard" "FloorPlan" "Switches"...to see the energy dashboard (without entering Setup -> Energy Dashboard), just

Code: Select all

cd ~pi/domoticz/www
cp index.html index.html.orig
sed -i "s|<li ng-show=\"config.EnableTabDashboard\"|<li ng-class=\"{'current_page_item':getClass('/Energy')}\" id=\"mEnergy\"><a id=\"cEnergy\" href=\"#Energy\"><img src=\"images/energy.png\"> <span data-i18n=\"Energy\">Energy</span></a></li>\n<li ng-show=\"config.EnableTabDashboard\"|" index.html
energydashboard.jpg
energydashboard.jpg (69.67 KiB) Viewed 86063 times

Re: How to add energy dashboard button!

Posted: Sunday 19 April 2026 11:36
by imautohuttraeger
Wow! How cool is that? With new nightglas theme

viewtopic.php?t=44563

it even works on my Smartphone in portrait mode.

Only with the default themes, the word "Energy" is not automatically hidden.

Can't reboot Domotiz now: Will it persist permanently?!

Re: How to add energy dashboard button!

Posted: Sunday 19 April 2026 12:32
by imautohuttraeger
imautohuttraeger wrote: Sunday 19 April 2026 11:36 Can't reboot Domotiz now: Will it persist permanently?!
I confirm that it persists after reboot. Great!

Re: How to add energy dashboard button!

Posted: Sunday 06 September 2026 21:13
by imautohuttraeger
BTW: I am using it ever since then and really appreciate it. Thank you again!

Would be nice to have it as an option built in in domoticz, so you don't have to run the command after every (beta) update.

Re: How to add energy dashboard button!

Posted: Tuesday 08 September 2026 9:36
by pfloryann
you can display it in the dynamic dashboard
viewtopic.php?t=45154