How to use this state in my endstopcover?

Please don’t post pictures of text. Post the actual text correctly formatted for the forum.

Are you perhaps looking for the template cover?

As far as I am aware the endstop cover is only an esphome component, not a cover platform in Home Assistant.