Schedule create and update do not work

  • Hi! I found from here commands I need to setup schedules automatically: https://shelly-api-docs.shelly.cloud/gen2/Component…vices/Schedule/

    List, Delete and DeleteAll work fine as HTTP GET requests. Also I can do Create and Update, and both commands give successfull response like told in those examples.

    For example I do like this (command from example) to existing schedule. It gives response {"rev": 81} but it is not changed when looking with List command (enable=true still) or from shelly www page/phone app.

    http://192.168.33.1/rpc/Schedule.Update?id=3&enable=false

    Create command makes schedules (command from example) with succesfull response code and those can be viewed with List command.

    http://192.168.33.1/rpc/Schedule.Create?timespec="0 0 22 * * FRI"&calls=[{"method":"Shelly.GetDeviceInfo"}]

    But when looking from Shelly's www page, there is "Error: {}" and no schedules are shown at all. If I use Delete command for that schedule id, it is disappeared and older schedules created via www page/phone APP are visible again.

    Einmal editiert, zuletzt von eeforester (18. Januar 2023 um 17:35)

  • Looks like a bug in the HTTP client code running of the shelly:

    Here is the snippet with the error in the client javascript code: it looks for the "id" attribute in an object called "params" within each object in the array "jobs", but the return value of "schedule.list" has no such attribute!

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.

    Here is an example response to HTTP GET on http://IP/rpc/Schedule.List:

    Der Inhalt kann nicht angezeigt werden, da Sie keine Berechtigung haben, diesen Inhalt zu sehen.
  • But when looking from Shelly's www page, there is "Error: {}" and no schedules are shown at all.

    which Firmware-Version? Maybe 0.13-beta1 fixes that issue.

    >100 Shellies, darunter so gut wie alles was der Hersteller produziert hat. ;)
    :!: ich beantworte grundsätzlich keine Fragen per persönlicher Nachricht:!:

  • Forgot to tell I have Shelly 1 Pro. I had original 0.12.0 but now I have that new firmware. Just it does not help. Some more testing...

    finally these work ok and switch delay on/off:)

    http://192.168.68.xxx/rpc/Schedule.Create?timespec="0 18 0 * * MON"&calls=[{"method":"Switch.Set","params":{"id":0,"on":true}}]

    http://192.168.68.xxx/rpc/Schedule.Create?timespec="0 19 0 * * MON"&calls=[{"method":"Switch.Set","params":{"id":0,"on":false}}]

    So create command is just wrong in instructions. Need to check that update command later. But I think it is not obligatory for me.

    I can delete all schedules and create on+off schedule every day when new prices available. Better to clean off old schedules anyway.

  • Dieses Thema enthält 2 weitere Beiträge, die nur für registrierte Benutzer sichtbar sind.