Hi everyone!
Here’s my custom widget allowing you to jump to another dashboard.
The widget is based on great HABPanel feature - “Switch dashboard with item value”.
In order to make this widget work, after you import it you need to set a few things up:
Create String Item in openHAB that stores your HABPanel dashboard name (I called mine “HABPanel”)
In HABPanel settings menu under “Switch dashboard with item value” select the item you just created.
Place Dashboard Link
widget somewhere
In Settings type the following:
Dashboard name - tapping the widget will redirect to this dashboard
HABPanel Item - the item you created and linked with switching dashboards
Font size (e.g. 42px) and Label (e.g. “Go to Lights”) - adjust the display
Here’s this widget in action:
dashboard-link.widget.json (986 Bytes)
9 Likes
ysc
(Yannick Schaus)
December 4, 2016, 1:01am
2
Great maybe a simpler way without needing an item would be:
<a class="dashboard-link" href="#/view/{{config.dashboard_name}}">
{{config.label}}
</a>
2 Likes
NCO
(E. Gerland)
February 18, 2017, 2:24pm
3
Tried it - nothing happens
<a class="dashboard-link" href="#/view/{{config.Security}}">
{{config.label}}
</a>
Foxejoe
(Lorenzo Giordano)
February 18, 2017, 7:14pm
4
Did you create a “Security” and “label” in the Setting menù?
NCO
(E. Gerland)
February 18, 2017, 7:39pm
5
Thanks for your response.
I just solved it with the help of this post:
ysc:
Button widgets can indeed act as links to other dashboards (Action type combobox in the General tab), and you can define colors for the background as well as the text. If you prefer you can build a template with a link, either ad-hoc in a template widget or in a custom widget - custom widgets are basically like template widgets but reusable (you define configuration options for each instance of the widget but the template is shared).
1 Like
Yeah! Thanks for the mini-tutorial, I’m keen to give it a go now that I have a few gadgets set up and soon Kodi. Being able to jump to different panels will be immensely useful. Thanks again
1 Like
lysol
(lysol)
August 28, 2017, 11:40pm
7
ysc:
<a class=“dashboard-link” href="#/view/{{config.dashboard_name}}">
{{config.label}}
</a>
Do you create a string or something in the configuration settings of the clickable widget you are creating? Confused about this one.
halloween
(Hallo Ween)
November 14, 2017, 9:31am
8
Not working for me… I´m on 2.2 snapshot.
I made all your settings.
But when i click on the icon, nothing happens.
EDIT:
Works now… I removed all and did it again.
Panel-names are case sensitive!