I have tried all I can think of now. With initial values, without initial, with recorder (in hope of resumed state) and without recorder - and a great deal of restarts.
I even changed the input selectors names and deleted the database - but to no avail.
What I really want is HA to resume the selected state it had before a restart. Any tips would be much appriciated.
Hmm… if I remove ALL automations (leave the folder empty), no errors in the log.
It seems to be related in some way:
As soon as I put any automation back - not in any way related to the input_selects - the lines are back in the log.
Interesting. I’ve been seeing something similar in my logs (also on Hass.io) for awhile now about invalid input_select options, but I haven’t had the time to chase it down because when I checked all my automations they definitely had the correct values.
Yes and no. I’m more of a Windows kind of guy so i use Samba ang Notepad++.
But I searched for all occurrences of “Morgonbelysning PÅ” (from the log) and changed the spelling in the automation files to all lowercase just to see from where it originated.
I have spent most of the afternoon on this, but I still can’t explain how it occurred.
What I know is this:
I moved all my automation files to another drive.Then I restarted hass.io (several times just in case), checking the log after each restart. No errors. Then I took my automation files and searched and replaced the old name “heater_entryfloor” with “heater01”. Moved all files back. Restarted. And BAM. No error in the log, Everything works as expected.
I can’t explain why it works now. Best guesses:
Something about underscore in the name? Any relation to swedish letter “ä” in en friendly name? Some mix-up in the resume state-function?
I have the old files in a backup if you want them for deeper analysis, but I’m fine now and my log is clean and good looking again
Just because I’m curious I just had to keep trying.
And yes, I managed to re-create the error.
I added a new option “Alla lampor av” to the input_select.lights01 and reloaded Scripts and Automations. I had no automation calling this new option, but still I got an error in the log. And after restart - it’s back.
Once again with reference to wrong input_select (which is what is really strange):
The “Morgonbelysning av” is a reference to was previously was the first option in the input_select.
After my addition, “Alla lampor av” is the first option.
So if I try to create an explanation:
If you add a new option to an input_select and then reload scripts and/or automation, hass.io suddenly think that the previously first option in your first input_select belong to your other input_select. Which it doesn’t, and therefore it produces an error.
Phew. It doesn’t seem very likely, but now it has happened twice.
Now I know how to get rid of it, but it still seems like it would be worth investigating.
Hmm…
It also takes the first option “Av” from the second input_select as an input to you first input_select. Also wrong.
But at least there is some kind of logic in that.
I have two completely unrelated input selects and warnings in the home assistant log that that options for one input select are invalid for the other. I’ve been over all my automations and scripts and I only have valid options for the input select set value service calls.
Invalid option: Forest (possible options: Off, Powerful Heat, Normal Heat, Silent Heat, Powerful Cool, Normal Cool, Silent Cool)
Again, Forest is an option for a completely unrelated input_select and nowhere in my automations do I try to select it as an option for the air-conditioner input_select.