I have a template which works fine in the developer tools, but when I open/close my garage door it does not update the state. I can’t seem for force the value template to re-evaluate. There are no errors in my log, and I see the correct state update when I watch the template in the developer tools. I had opening/closing states, but simplified it as the basic open/close doesn’t get updated when the contact switch changes.
I made a few updates, and it seems to be working now. If can get stuck in ‘closing’ state if the garage doesn’t actually close, which is almost a feature.
thank you. I finally got a decent cover working in esphome which is what i really wanted. I prefer having that fail safe if HA ever goes down. I’m curious though, what is b_ts? and s_ts? are those unique to your naming scheme or are they apart of timestamp function? I googled them with time stamp but didnt see anything from a quick search
I define them at the top of the template. Basically, after you press the button the door should be ‘opening’ or ‘closing’ as it’s neither ‘open’ or ‘closed’. My tilt sensor is at the top panel of the garage, so if it’s open 1 foot or more, then the sensor is ‘on’, but it may not be fully open yet.