Reload theme templates without restart HA

Hi all,

is it possible to reload a part of HA so new changes in theme yaml file will be active without restart HA at all… Same like automation, scrips?

Yes. Use the service frontend.reload_themes in the developer tools / services tab.

11 Likes

hi, i created my own button “Theme Reload”:

- type: "custom:button-card"
            template: dash_button
            entity: zone.home
            icon: 'mdi:restart'
            name: Theme Restart
            tap_action:
              action: none
            hold_action:
              action: call-service
              service: frontend.reload_themes
              data:
                message: "Your message goes here"
                title: "Custom subject"
            styles:
              card:
                - color: var(--primary-text-color)

How can i start a “Info message” for the Restart?
I don’t know if it was restarted

2 Likes

Use the logbook custom entry service: https://www.home-assistant.io/integrations/logbook/#custom-entries

Or create a persistent notification. https://www.home-assistant.io/integrations/persistent_notification/

1 Like

Why is it not on the settings menu like the rest of the restart options?

2 Likes

I think it is because all the other reload options are backend functions. :man_shrugging: