I’m trying to use a template to count how many input_numbers are not zero:
{% set i = 0 %}
{% if states('input_number.sunday') | int != 0 %}
i++
{% elif states('input_number.monday') | int != 0 %}
i++
{% elif states('input_number.tuesday') | int != 0 %}
i++
...
{% endif %}
{{i}}
i is always zero. Even if I could get it to work, it seems cumbersome. Alternatively, I tried adding the days to a group & iterating through the group, but I couldn’t find anyway to get that to work either. For my programming knowledge, I’d love help with both approaches if there are such…