code: def handle_event(self, event):
          
          if event.get('command'):
              if event['command'] == 'on':
                  cmd = 'off'
              else:
                  cmd = 'on'
  
              task = self.send_command_ack(event['id'], cmd)
              self.loop.create_task(task)
docs: Handle incoming packet from rflink gateway.