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.
-
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.
-
0.12.0. I tried once, it just uploaded forever. Just from release note I did not see anything schedule API related.
-
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.