-
-
Notifications
You must be signed in to change notification settings - Fork 194
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
[BUG] Grid Card showing 6 visible entities in 4x2 layout instead of 3x2 in case some entities are hidden by state (EU version) #1190
Comments
hey, the decision on which page is going to be used is made before any further rendering of the config, so it's purely based on the number of entities in the config I added a workaround for this use the page type "cardGrid1" instead of "cardGrid" to force it to the 3x2 layout. (No need to update the tft firmware, just update the appdaemon app to main) |
Hmm, this seem to work only first time the screen is touched after app restart. Subsequently touching the screensaver brings 4x2 card again
|
That workaround didn't work because first iteration overwrites nspanel-lovelace-ui/apps/nspanel-lovelace-ui/luibackend/pages.py Lines 781 to 787 in e33875e
If you want a quick fix, edit this file locally by commenting out lines 783-784 and restart appdaemon until it's officially fixed in proper way. I think cardGrid1 should get a dedicated page same as cardGrid2 so cardGrid becomes a "dynamic" page compared to the 1&2 static ones with 6&8 entities.
|
PROBLEM DESCRIPTION
If you have 6 entities defined in the Grid Card, everything is fine. As soon as you define 7th entity in YAML, layout switches to 4x2 despite that 7th entity is hidden by state.
I'm trying to make the first position on the Grid Card switch between two entities based on the opposite state. These two can never be shown at the same time. Yet, the software still seems like trying to accommodate for possible 7th entity shown.
Take a look at the first two entities. They are service calls to vacuum cleaner to start cleaning or stop cleaning which obviously cannot exist at the same time.
REQUESTED INFORMATION
Make sure your have performed every step and checked the applicable boxes before submitting your issue. Thank you!
TO REPRODUCE
Steps to reproduce the behavior:
Create Grid Card with 7 entities, set
state: "off"
to one of them which is currently off to hide it, remaining 6 entities show in 4x2 layout with the last two spots emptyEXPECTED BEHAVIOUR
A clear and concise description of what you expected to happen.
If 6 entities are visible, show them in 3x2 layout. Switch to 4x2 layout only when 7th or 8th entity becomes visible
SCREENSHOTS
If applicable, add screenshots/pictures to help explain your problem.
ADDITIONAL CONTEXT
Add any other context about the problem here.
Please note here in case you are using ioBroker
PANEL / FIRMWARE VERSION
Please add the Panel/Firmware Version you are using (EU, US-L or US-P)
EU
The text was updated successfully, but these errors were encountered: