code: function executeCommand(sid, command, ain, options, path)
  {
      path = path || '/webservices/homeautoswitch.lua?0=0';
  
      if (sid)
          path += '&sid=' + sid;
      if (command)
          path += '&switchcmd=' + command;
      if (ain)
          path += '&ain=' + ain;
  
      return httpRequest(path, {}, options);
  }
docs: Execute Fritz API command for device specified by AIN