custom_components/broadlinkcover/cover.py
async def _async_handle_command(self, command, *args):
        """We have cover.* triggered command. Reset assumed state and known_position processsing and execute"""
        self._assume_uncertain_position = True
        self._processing_known_position = False
        if command == "close_cover":
            cmd = "DOWN"
            self._state = False
            await self.hass.services.async_call("homeassistant", "turn_on", {"entity_id": self._close_script_entity_id}, False)

        elif command == "open_cover":
            cmd = "UP"
            self._state = True
            await self.hass.services.async_call("homeassistant", "turn_on", {"entity_id": self._open_script_entity_id}, False)

        elif command == "stop_cover":
            cmd = "STOP"
            self._state = True
            await self.hass.services.async_call("homeassistant", "turn_on", {"entity_id": self._stop_script_entity_id}, False)

        _LOGGER.debug(self._name + ': ' + '_async_handle_command :: %s', cmd)
        
        # Update state of entity
        self.async_write_ha_state()
We have cover.* triggered command. Reset assumed state and known_position processsing and execute
We have cover.* triggered command. Reset assumed state and known_position processsing and execute
We have cover . * triggered command . Reset assumed state and known_position processsing and execute
async def _async_handle_command(self, command, *args):
        self._assume_uncertain_position = True
        self._processing_known_position = False
        if command == "close_cover":
            cmd = "DOWN"
            self._state = False
            await self.hass.services.async_call("homeassistant", "turn_on", {"entity_id": self._close_script_entity_id}, False)
        elif command == "open_cover":
            cmd = "UP"
            self._state = True
            await self.hass.services.async_call("homeassistant", "turn_on", {"entity_id": self._open_script_entity_id}, False)
        elif command == "stop_cover":
            cmd = "STOP"
            self._state = True
            await self.hass.services.async_call("homeassistant", "turn_on", {"entity_id": self._stop_script_entity_id}, False)
        _LOGGER.debug(self._name + ': ' + '_async_handle_command :: %s', cmd)
        self.async_write_ha_state()
async def _async_handle_command ( self , command , * args ) : self . _assume_uncertain_position = True self . _processing_known_position = False if command == "close_cover" : cmd = "DOWN" self . _state = False await self . hass . services . async_call ( "homeassistant" , "turn_on" , { "entity_id" : self . _close_script_entity_id } , False ) elif command == "open_cover" : cmd = "UP" self . _state = True await self . hass . services . async_call ( "homeassistant" , "turn_on" , { "entity_id" : self . _open_script_entity_id } , False ) elif command == "stop_cover" : cmd = "STOP" self . _state = True await self . hass . services . async_call ( "homeassistant" , "turn_on" , { "entity_id" : self . _stop_script_entity_id } , False ) _LOGGER . debug ( self . _name + ': ' + '_async_handle_command :: %s' , cmd ) self . async_write_ha_state ( )
We have cover.
We have cover .
"""We have cover.* triggered command. Reset assumed state and known_position processsing and execute""" # Update state of entity
self
command