UMIS SDK
    Preparing search index...

    Function shellySwitchSetBody

    • The body of a Shelly Gen3 Switch.Set call as JSON-RPC text, ready to be signed and posted to /rpc: {"id":1,"src":"station","method":"Switch.Set","params":{"id":0,"on":true,"toggle_after":3}}. toggleAfter is the flip-back timer in seconds: a relay switched on with it falls back to off by itself.

      Parameters

      • i: {
            on: boolean;
            rpcId: number;
            src?: string;
            switchId: number;
            toggleAfter?: number;
        }

      Returns string