Hello all,
i am struggling to find out a way to open a subpage in a sitemap by an openhab:// link.
I would like to include a link in a PushOver message that then opens the Openhab app in a special submenue.
But if I call the link (openhab://Haus/Haus/AlarmMenue, this seems to be the best variant), the app opens, shows the main sitemap page, switches to a empty sub-page (with correct title Alarmoptionen)?, and shows an error: Diese Seite beinhaltet keine sichtbaren Widgets.
I tried many combinations of links/parameters as well but I didn t find the right one.
Maybe, the magic can be found in the intent-filter definition (https://github.com/openhab/openhab-android/blob/main/mobile/src/main/AndroidManifest.xml) or in the main activity class (https://github.com/openhab/openhab-android/blob/main/mobile/src/main/java/org/openhab/habdroid/ui/MainActivity.kt). But I cannot understand these files in detail.
Haus.sitemap:
sitemap Haus label="Übersicht"
{
Frame label=""
{
Text item=AlarmMenue icon="siren"
{
Text item=Cam1MotionAlarm
Default item=Cam1EnableMotion
}
}
}
alarmmenue.items:
String AlarmMenue "Alarmoptionen"
Switch Cam1EnableMotion "MotionAlarm on/off" { channel="ipcamera:dahua:camera1:enableMotionAlarm" }
Switch Cam1MotionAlarm "Aktivität [%s]" <siren> { channel="ipcamera:dahua:camera1:motionAlarm" }
Some additional information: I use OpenHAB v3.4.0 and Android app 3.7.0/Basic UI
Can anyone help?
Minuoe