Is it possible to get an change to the Dummy widget to configure it to navigate to an url or dashboard if you press it.
Usage:
I have an Dummy that shows Outdoor Temperature and i want to se an dashboard with an graph of the Temperature when i press it.
Group Weather_Chart (Weather)
Number Chart_Period "Zeitraum [MAP(period.map):%s]"
Number Weather_Temp_Max "Maximum heute [%.1f °C]" <temperature> (Weather_Chart)
Number Weather_Temp_Min "Minimum heute [%.1f °C]" <temperature> (Weather_Chart)
String WeatherMinMax "Min-Akt-Max: [%s]" <temperature>
Number Current_Temp "WUnderground Außentemp. [%.1f °C]" <temperature> (Weather_Chart) { weather="locationId=home, type=temperature, property=current, scale=1", knx="15/7/0" }
Transform/period.map:
1=1 Stunde
2=4 Stunden
3=8 Stunden
4=12 Stunden
5=24 Stunden
6=3 Tage
7=7 Tage
8=2 Wochen
9=1 Monat
10=2 Monate
11=4 Monate
12=1 Jahr
Rules/*.rules:
rule "Update max and min temperatures"
when
Item Current_Temp changed or
Time cron "0 0 0 * * ?"
then
Weather_Temp_Max.postUpdate(Current_Temp.maximumSince(now.withTimeAtStartOfDay).state)
Weather_Temp_Min.postUpdate(Current_Temp.minimumSince(now.withTimeAtStartOfDay).state)
if(Current_Temp.state instanceof DecimalType && Weather_Temp_Max.state instanceof DecimalType && Weather_Temp_Min.state instanceof DecimalType)
WeatherMinMax.postUpdate(Weather_Temp_Min.state.format("%.1f")+" °C / "+Current_Temp.state.format("%.1f")+" °C / "+Weather_Temp_Max.state.format("%.1f")+" °C")
end
Persistence/rrd4j.persist:
/ persistence strategies have a name and a definition and are referred to in the "Items" section
Strategies {
// for rrd, we need a cron strategy
everyMinute : "0 * * * * ?"
}
Items {
// let's only store temperature values in rrd
Temperature*,Weather_Chart* : strategy = everyMinute
Chart_Period : strategy = everyMinute, everyChange, restoreOnStartup
}
What i am asking for is an widget that can show an value from an item and if i press that widget it redirects to another dashboard.
The button Widget can not show an value from an item.
It’s not possible right now but you can easily make one, for example:
<a style="position:absolute; top:0; left:0; width:100%; height:100%"
href="#/view/{{config.dashboard}}"
ng-init="model={ item: config.item, font_size: 20, unit: config.unit, iconset: config.icon_iconset, icon: config.icon }">
<!-- ^^ add attributes with other config settings as needed - check
https://github.com/openhab/org.openhab.ui.habpanel/blob/master/web/app/widgets/dummy/dummy.widget.js#L76
for a list of all possible dummy widget model attributes -->
<widget-dummy ng-model="model"></widget-dummy>
</a>
Config settings to add:
dashboard type String (or possibly Choices on a recent snapshot with a prefilled list)
item type Item
unit type String
icon type Icon (only available on recent snapshots)