Exemplo n.º 1
0
    def apply_action(self, cmd_name, *args):
        """Apply Action to Device."""
        from tahoma_api import Action

        action = Action(self.tahoma_device.url)
        action.add_command(cmd_name, *args)
        self.controller.apply_actions("HomeAssistant", [action])
Exemplo n.º 2
0
 def apply_action(self, cmd_name, *args):
     """Apply Action to Device."""
     from tahoma_api import Action
     action = Action(self.tahoma_device.url)
     action.add_command(cmd_name, *args)
     self.controller.apply_actions('HomeAssistant', [action])
Exemplo n.º 3
0
def apply_action(controller, cmd_name, dev_url, *args):
    """Apply Action to Device."""
    action = Action(dev_url)
    action.add_command(cmd_name, *args)
    controller.apply_actions('Test', [action])
Exemplo n.º 4
0
    def apply_action(self, cmd_name, *args):
        """Apply Action to Device."""

        action = Action(self.tahoma_device.url)
        action.add_command(cmd_name, *args)
        self.controller.apply_actions("OpenPeerPower", [action])