Hi, im trying to create following template sensor.
i want to know and count all humidity more than 62% but smaller than 72%.
Only this range 62-72.
im new with HA and do it by google and try & error, but can’t fix it by myself
could someone help me please.
That likely will work for the given range, but for most cases you should cast the state value to an integer to avoid the oddities of string comparisons and therefore insure an accurate count. FWIW, you can avoid the expand() by using map('states') since you don’t need the entire state object.