I don’t think that’s going to work. It’s not even showing in my automation list. I think it’s no longer a valid numeric state. Might need 2 sensors still??
OK… PEBKAK… LOVELACE doesn’t have all automations by default and I needed to manyally add it there. Sigh.
However, it is working as is if I manually trigger the automation.
See this is one thing I find incredibly confusing. I can’t seem to find any good documentation on templates etc.
For instance, you said up above before that for a number 0 I should not put quotes around it. But the inbuilt automation editor put the quotes in in the first place! I also have another automation that uses numeric_state and it seems fine also with it in ‘0’ quotes.
Also, it seems sometimes, it can be either single or double quotes (or even no quotes) but there don’t seem to be any rules about where to use which!
Also with value_template… sometimes it’s written as:
value_template: >
sometimes
value_template: >-
It’s just confusing and I’d love to read up on it and understand best practices.
the after ‘16:00:00’ and before are in quotes but they should NOT have quotes and the below ‘25’ is in quotes but it shouldn’t be because it is a number?
Your times needs quotes becouse they contain :
The below does not need it, but you can use it, HA should convert the content to int, this is may not be valid for other systems
ok duh! a : is not an alpha-numeric character. (I misread/misunderstood so that makes more sense now)
but what’s the difference between:
below: '25'
and
above: '0'
because you are indicating the above one should NOT have quotes? Incidentally, the ‘0’ automation trigger isn’t tested (damn my awesome power supply)… again just trying to understand.
I’m enjoyoing t his conversation because I agree the documentation could do with formalising and bringing together. (Thanks @ludeeus for some interesting info).
But as far as this goes don’t forget that you can use the States page of the Developer Tools to force a state for testing.
I have this in my configuration file but HA loads the components in random order. Needles to say that my automations doesn’t work. I tried placing some other sensors in between but didn’t have any effect.
I never understood what is the actual benefit adding it twice and not creating the template sensor?
Awesome component btw! Thank you for the creators!
Home Assistant is a community of people that care about home automation and we are all volunteers working hard on making this possible.
I’m not going to let people take our work for free and then come and harass us. Spend your time like you wish, don’t belittle us for what we do. That behavior does not belong in any part of this community.