openhab / org.openhab.ui.habpanel

OUTDATED repo - HABPanel has moved to the openhab-webui repo!
https://github.com/openhab/openhab-webui
Eclipse Public License 1.0
97 stars 93 forks source link

[Feature Request] Go to 'default' dashboard aftert inactivity #350

Open vzorglub opened 5 years ago

vzorglub commented 5 years ago

To have an option to select a 'default' dashboard and a timeout value. The HABpanel would go back to this dashboard after the timeout period if no activity. Use case: Different tablets in different rooms. The tablets should go back to the specific room default dashboard after a while. The default dashboard (on each tablet) have the relevant controls for that room. If a tablet is used to check the weather (for example) the tablet should return to the room's control dashboard automatically.

LuckyMallari commented 5 years ago

I actually have an active PR for that feature. This is basically a screensaver.

https://github.com/openhab/org.openhab.ui.habpanel/pull/287

mrumpf commented 5 years ago

There has been a similar discussion in the community: https://community.openhab.org/t/refresh-back-to-main-habpanel-after-a-set-time-limit/22701/3

As a workaround, using a template widget on all dashboards and transition back to the base URL basically works.

Name: Reload Main View Template: <META HTTP-EQUIV="refresh" CONTENT="60; URL=http://openhab:8081/habpanel/index.html#">

NOTE: When copying the HTML template code, make sure that the quotes do not get transformed. You can check with the browser developer tools whether the meta tag has been inserted correctly.

The drawback of this workaround is that in fully packed dashboards, a scrollbar shows up, even if the background is set to transparent.

8666 commented 5 years ago

I would prefer the option to get an item updated when you use the HABpanel. It should be updated by all browsers with some unique ID. Then you can configure different habpanel instances (different tablets) to watch for an item update and switch to that dashboard (this is already available).

Then you can write rules/logic in Openhab and not having configs in the browsers.

That way, for example, if the house is armed and we are away the tablets will go to the alarm keyboard panel and stay on that page. In normal case, some will go to a default home page, some will go to a room specific page, etc.