It is very annoying that it keeps changing it to the light theme.
It happens every 5-10 minutes.
Now it keeps changing the theme to graphite theme.
My guess is that is related to the puppet add-on that takes screenshots for a display.
How can this be fixed?
I removed the theme from the puppet job and now it just keeps switching to light theme instead of to graphite light theme.
This is really annoying.
Nobody else that has this issue?
What did you select here for Design?
Auto may use the host system’s properties and switch to light depending on the time.
I have it set to “Home Assistant” and Dark.
But it keeps switching to “use default theme” and Light.
OK, did the same here to check if I can reproduce your issue at my side.
What do I have to do to trigger the problem?
Nothing?
I don’t know.
I’m not doing anything.
Sometimes it just switches while I’m browsing on the dashboard, sometimes when I open the app.
And sometimes it’s actually dark mode. But that isn’t common.
I think I have found the issue.
when my automation uses the puppet add-on to generate the image it visits a dashboard that is with light theme and this causes HA to switch to light theme for me.
I waited for the automation to trigger and sure enough, as it triggered the theme switched.
So this action in an automation:
- action: open_epaper_link.drawcustom
data:
rotate: 0
dither: "2"
ttl: 60
dry-run: false
payload:
- type: dlimg
url: >-
http://192.168.1.147:10000/dashboard-test/0?viewport=480x290&zoom=1&wait=6000&lang=en-GB&next=890
x: -15
"y": -25
xsize: 420
ysize: 310
- type: text
value: >-
{% for s in
state_attr('sensor.nordpool_kwh_se4_sek_3_10_025','raw_today')-%}
{% if s.end > now() -%}
Pris nu: {{ s.value | round(2) }} kr/kWh
{% break %}
{% endif %}
{%- endfor -%}
anchor: rt
font: ppb.ttf
x: 380
"y": 9
size: 17
color: black
background: white
target:
device_id:
- e47f3ca41627532210bebd1b65d7119d
is most likely the issue.
It uses home-assistant-addons/puppet at main · balloob/home-assistant-addons by @balloob
I found this now…
It is the puppet add-on. HASS theme changes for all sessions of the user whose token was used for the Puppet addon · Issue #59 · balloob/home-assistant-addons
