CardMod is not working as expected in kioskmode.
Yngve0 opened this issue · comments
My Home Assistant version: 2024.1.3
My lovelace configuration method (GUI or yaml):GUI
I am running a Raspberry pi with HyperPixel 4.0 in kiosk mode
What I am doing:
I want to increase the fontsize for a widget
card_mod:
style: |
ha-card {
font-size: 220%;
}
What I expected to happen:
I expected that fontsize is increased to 220% for the actual widget in the dashboard
What happened instead:
In Kioskmode (--kiosk): fontsize is default size
Without --kiosk: fontsize is increased to 220%
(Same user on both tests)
By putting an X in the boxes ([]) below, I indicate that I:
-
Understand that this is a channel for reporting bugs, not a support forum (https://community.home-assistant.io/).
-
Have made sure I am using the latest version of the plugin.
-
Have followed the troubleshooting steps of the "Common Problems" section of https://github.com/thomasloven/hass-config/wiki/Lovelace-Plugins.
-
Understand that leaving one or more boxes unticked or failure to follow the template above may increase the time required to handle my bug-report, or cause it to be closed without further action.
I can confirm this behavior. Very interestingly, kiosk mode is not the only similarity in my case, but I am also seeing this problem on a Raspberry Pi (Pi3) with a touchscreen (although the screen model is different, it's an older, cheaper one but has the same resolution as the OP's display).
I am using card-mod to dynamically enlarge entity-cards. Works like a charm on all my devices and browsers, including mobile app. Also works on the RasPi in chromium browser - unless I run it in kiosk mode.
Not sure what could be helpful for further debugging here, but if I can provide anything, I'll be happy to do so, this is a major problem for me right now.
Just one hunch: both displays have the same, quite low resolution (800x480) compared to regular PCs or smartphones. Could that be an issue?