I just want to know what is the difference between them, or… what are the differences, because one I already know, but I don’t know why and I can’t explain it.
Till today, I thought that both of the lines are “identical”… and working in the same way, but… not quite
I know about the Warning info, using that instead of that… but, I don’t understand why they recommend this, in the same time as the first line is working better than the second, or proper. At least in this case, which is very important for me, to know when an entity is defined or not.
I don’t understand why they recommend states("") instead of states…, while the states("") can’t tell me if an enity exists or not. On the other part, states… it is giving me a proper answer…
Using both lines… I don’t get any error at HA startup…
This is precisely the failure situation mentioned in the documentation; if an entity isn’t ready at startup it fails to exists and attempts to access its state value using the first format will potentially fail and cause an error message.
I am trying to understand, but… anyway, let’s do it in the recommended way, there is any proper solution in order to find out if an entity exists or not, with a template?
If I use state("") without “is defined”, only simple state, which I see I get “unknown” for an inexistent entity… is the “unknown” state, a proper state for non existing entity, or this state status can be because of multiple other reasons?