Can't get duration to work

VPN/Proxy erkannt

Es scheint, dass Sie einen VPN- oder Proxy-Dienst verwenden. Bitte beachten Sie, dass die Nutzung eines solchen Dienstes die Funktionalität dieser Webseite einschränken kann.

  • Hi,

    I've been trying to download a schedule into the Plug S + V2. Can get most of the parts of the schedule to work, but can't get the duration function to load. I had Claude try everything that we could conceive and could never get a delay and state change.

    { "method": "Switch.Set", "params": { "id": 0, "on": True, "duration": 22000 # Milliseconds of mystical transformation }}

  • Do replace "duration" with "toggle_after"! The unit is second, not millisecond.

    https://shelly-api-docs.shelly.cloud/gen2/Component…witch#switchset

    An Cloud-/Szenen-Benutzer (insbesondere für Regelungen): Was erwartest du, wenn Internet oder Cloud sabotiert werden? Nicht nur dafür meine kleine Skripteinführung  8)

    Die einzig existierende Konstante ist der Wandel. Oft liegt die größte Schwierigkeit darin, das Anliegen des Klienten zu verstehen.

    Einmal editiert, zuletzt von eiche (24. Mai 2025 um 22:41)

  • Thank you -I'll try that. I found that all of the other time entries had to be in milliseconds though, in order to work. ---

    I tried it and it worked!!! Thanks so much! - Douglas