-
-
Notifications
You must be signed in to change notification settings - Fork 233
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
HabPanel not switching back to first dashboard #2569
Comments
I see the issue directly in the browser: I see the URL changing but the page does not reload with |
I could fetch the following error in the console:
|
I ended up deleting my "first" dashboard as I think it was "corrupted". |
Background
HabPanel allows OH to control the currently displayed Dashboard using one of the panel settings:
It is usually defined as an item such as:
The idea is that changing the content of the string, HabPanel will switch to that Dashboard, should the string match an existing Dashboard. Simple, yet very powerful.
Sample use case
I was experimenting with a simple use case that I provide here only to illustrate how I got there.
Let's consider I have 3 dashboards:
A
:Main
B
:Doors & Windows
C
:Foobar
Below I will refer to Dasboards A, B and C since what they are does not matter much.
In my case, usually, HabPanel shows
Main
(A). When a door or window is opened, it will switch toDoors & Windows
(B). After N seconds, it will come back toMain
(A).Nice story but that does not work.
The problem
The rule switching A -> B works fine. A window is opened (for instance), OH will update the
HabPanel_Screen
content and the B Dashboard will be shown.So far, everthing works as expected.
The issue is related to coming back to Dashboard A. I am using a timer (but that part does not matter) and switching back to A is simply ignored.
Expected behavior
Considering 2 Dashboards both of the following work:
A
toB
B
back toA
A
being the main "default" dashboard.Steps to reproduce
A
), create a second dashboardString HabPanel_Screen "HabPanel Screen" <screen>
HabPanel_Screen
to switch dashboardYour environment
Browser console
Browser network traffic
Additional information
It is important to notice that I run into this issue ONLY if
A
is the first/default dashboard.It you already have a dashboard and create 2 new dashboards for the test, it will be working all fine as it does for me.
The text was updated successfully, but these errors were encountered: