I am sure this is very simple but as a noob to Hassio I am not sure how to get the theme I put on it to stay after a reboot. It goes back to the default each time. I setup a theme.yaml with my themes in it which are showing up under the user’s account to chose one. I chose say “dark_green” it says until I restart it… how do you make is permanent or at least until I change it?
So I put the automation section in the automation.yaml but where does the input_text go in the configuration.yaml? Thanks @Jackwilsdon for all your help.
What about the state of my input selector with all my themes… although i think it goes back to default each time. But perhaps if made a sensor that would be the state of the last selected them and then that automation based off the state of that sensor… assuming the sensor didn’t change when you restart. I’m not sure
@jackwilsdon - Well worked great until I rebooted host then it changed back… I am getting this “Theme Dark-Green is not defined.” I put in this on configuration.yaml:
Can you manually call the service frontend.set_theme with the data { "name": "Dark - Green" } using the services screen and see if that works? I don’t really know how theme names are used in frontend.set_theme.
Ok the solution is what SeanM post but one minor change. I takes only the title name of the theme not the name of the yaml file. It will stay after reboot once you log in!
automation:
- alias: 'System - Set Custom Theme at Startup'
initial_state: 'true'
trigger:
platform: homeassistant
event: start
action:
service: frontend.set_theme
data:
name: Dark - Green
I have to revisit this because something has cause this to stop working now. I still have the below but after rebooting now during the last two upgrades that automation is not being applied.