Custom Garage Door Opener

Is in it possible to make a garage door opener like you can with a thermostat? I have a linear garage door in opener that keeps having issues with the tilt sensor. Because it doesn’t know the status, it won’t open or close the door.

I’d like to build my own garage door opener with a relay and a separate tilt sensor. I did something similar creating a “thermostat” for my bathroom heater using a switch for the bathroom heater and a temp sensor connected to a D1 mini.

Cami do the same thing for a cover entity? If so, can someone point me to an exame configuration?

So I found this:

Just need to figure out how to implement it. If anyone has some examples that would help. Otherwise I’ll post my solution if I figure it out.

That is the one to use. There’s an example in the documentation. Post your config here if you have questions or issues with it.