WTH is states always a string in conditions?

When I create an automation and using a condition for example for number helper the state is always a string

condition: state
entity_id: input_number.lufter_stufe_tag
state: "0"

input_number is giving a number not a string so it is false.

Using numeric state does not work because it only check for above or below value but not equal value

condition: numeric_state
entity_id: input_number.lufter_stufe_tag
above: 0
below: 0

So make the numeric_State equal an option or state something else then string.

Just adding some context: The trick here is: States of entities are always strings. Home Assistant doesn’t store anything else. The numeric state condition thus works by converting the state to a numeric value before comparing.

Good to know but then i would say we need numeric value to Check for above. Below and equal values.