'Turn the device off.'

def turn_off(self, **kwargs):

    request = requests.get('{}/{}'.format(self._resource, self._func), timeout=10, params={'params': '0'})
    if (request.status_code == 200):
        self._state = False
    else:
        _LOGGER.error("Can't    turn    off    function    %s    at    %s", self._func, self._resource)
