index.js
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);
}
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);
}
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 ) ; }
Execute Fritz API command for device specified by AIN
Execute Fritz API command for device specified by AIN