Revisiting this post again as it’s one of the only decent garage door sensor posts, and I’m trying to get a sensor working how I want it with my n00b skills.
All this code seems a little too complicated for what it needs to do. Or I’m not understanding it totally.
So from my point of view I wanted to discuss with @SpikeyGG and @NeilDuToit92 who have their heads around it.
Home Assistant cover has 4 states I want it to see. Open, Closed, Opening, Closing.
With two sensors on the door we can have logic to get that.
Open = Open switch closed
Closed = Closed switch closed
Opening = State change of Closed switch to open
Closing = State change of Open switch to open
Should it not be as simple as a lambda with states for open and closed and an on_release state for opening or closing?
I can’t seem to get the code right. and the doc’s aren’t quite the best either for what I’m trying to do.
Note, I’m only trying to deal with sensors and not any control.