Help, how can i create, set and record a state?

Hi,

I have a window roller blind that I’ve automated via esphome and a motor. There are two switches, one at the top, and one at the bottom. These switches are used to stop the blind when it reaches its limit in either direction.

What im looking to do is find a way to report to homeassistant if the blind is open or closed.

Making the blind automated was done with the help of people on here.

My thought was find a way to assume the blind is closed and set as open when it hits the top switch. But how do i always assume its closed?
Would a binary switch work here?

Thank you for your help and time.

Robin

I think a template cover would be what you’re after:

1 Like

Thank you Brookben11

I’ll give that a read through and see if I can get it working