j’ai trouvé aussi cela pour le stop des covers
Open cover#
Only implement this method if the flag SUPPORT_OPEN is set.
class MyCover(CoverEntity):
Implement one of these methods.
def open_cover(self, **kwargs):
« »« Open the cover. »« »
async def async_open_cover(self, **kwargs):
« »« Open the cover. »« »
Close cover#
Only implement this method if the flag SUPPORT_CLOSE is set.
class MyCover(CoverEntity):
Implement one of these methods.
def close_cover(self, **kwargs):
« »« Close cover. »« »
async def async_close_cover(self, **kwargs):
« »« Close cover. »« »
Set cover position#
Only implement this method if the flag SUPPORT_SET_POSITION is set.
class MyCover(CoverEntity):
Implement one of these methods.
def set_cover_position(self, **kwargs):
« »« Move the cover to a specific position. »« »
async def async_set_cover_position(self, **kwargs):
« »« Move the cover to a specific position. »« »
Stop cover#
Only implement this method if the flag SUPPORT_STOP is set.
Copy
class MyCover(CoverEntity):
Implement one of these methods.
def stop_cover(self, **kwargs):
« »« Stop the cover. »« »
async def async_stop_cover(self, **kwargs):
« »« Stop the cover. »« »