Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 101645

Numeric_state - why no 'equal to'?

$
0
0

@klogg wrote:

I’d rather not add noise to the feature requests if this isn’t valid.
So, is this a valid feature request?

Using ‘numeric_state’, if you want to know if an entity is exactly n you have to use below and above which is fine so long as you know the precision of the number you are dealing with.

What if you don’t?
I’m resorting to using the slightly ridiculous below: 0.001 to check for exactly zero which is fine as I am checking an input_number which I defined to have a step of 0.1 (and I know it can’t be negative). But what if the entity state was a floating number of indeterminate precision?

Or even what if in the future I change the step for my input_boolean? It could break some automations and that can’t be right.

Posts: 8

Participants: 4

Read full topic


Viewing all articles
Browse latest Browse all 101645

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>