right… my code was an example, and ofc based on an entity with its specific states. I dont think your entity has state 'backed_up’ so adjust to your specific setting and needs
how do you find the state of your entity?
(not trying to be a pain here, but trying to help you find out yourself)
that seems like var(--disabled-text-color) but you could simply test that and check your theme?
or, it could be what ever color is in your paper-item-icon-color:.
ofc you can also put var(--paper-item-icon-color) in the case
yes, thats a familiar error, when you dont ‘guard’ your templates. The state you use in the template isnt yet properly initialized at startup, and thus can not be used in the template.
it throws these until the state is ready, and you probably see no issues after that?
I would strongly suggest you find the incorrect templates, because if things go wild, you might not be able to reach the frontend at all, and all you see is frontend errors in your log
its a matter of elimination. comment them all and see if the error is gone? ok?
than enable half of them and retry. error still gone? enable half of the rest. if not, check in the last enabled section…
but, you dont need to do this in all your custom-ui templates, just the ones where the state is created during startup. Mostly HA template sensors, or things made by python scripts etc etc
wouldnt think so no, only templates. but, with the method above, its easily checked
btw, a state.state will most likely ever be ‘unavailable’ , not ‘Unavailable’. you need to check the true state in the state machine, not what is shown in the Frontend
it checks if attributes are available, And if a certain attributes is available, And then if that attributes is true. in all other cases it returns the exception
I also have this but do not have it in configuration.yaml!
2022-02-04 03:04:40 WARNING (MainThread) [homeassistant.components.version] Configuration of the Version platform in YAML is deprecated and will be removed in Home Assistant 2022.4; Your existing configuration has been imported into the UI automatically and can be safely removed from your configuration.yaml file
2022-02-04 03:04:40 WARNING (MainThread) [homeassistant.components.version] Configuration of the Version platform in YAML is deprecated and will be removed in Home Assistant 2022.4; Your existing configuration has been imported into the UI automatically and can be safely removed from your configuration.yaml file
Also already removed from configuration.yaml:
Logger: homeassistant.components.androidtv.config_flow
Source: components/androidtv/config_flow.py:179
Integration: Android TV (documentation, issues)
First occurred: 3:04:56 AM (1 occurrences)
Last logged: 3:04:56 AM
Host [192.168.1.91] already configured. This yaml configuration has already been imported. Please remove it
And I can’t for the life of me the source for this!
Logger: homeassistant.helpers.script
Source: helpers/script.py:638
First occurred: 3:05:29 AM (1 occurrences)
Last logged: 3:05:29 AM
Error in 'condition' evaluation: In 'template' condition: UndefinedError: list object has no element 157