How do I tell if an attribute on any given sensor is text or an integer? I know that states are text, but attributes can be anything. Dev tools/states lists the attributes of this particular sensor as
Specifically I am interesed in the days attribute. I did an automation on it that didn’t trigger, and I suspect it is because the automation editor put quotes around the trigger value, but that it shouldn’t have one.
I don’t know if this helps, but if you write {{ state_attr('sensor.your_sensor', 'days') }} in Developer Tools → Template, on the right hand side you will have Result type (number, boolean, string).