Shelly.call("schedule.create",
{
"id":9
"enable":true,
"timespec":"0 0 7 * * * SUN,MON,TUE,WED,THU,FRI,SAT",
"calls":[{
"method":"switch.set",
"params":{
"id":0,
"on":true
}
]
}
)
Shelly.call("schedule.create",
{
"enable":true,
"timespec":"@sunrise * * *",
"calls":[{
"method":"schedule.update",
"params":{
"id":9,
"enable":false
}
]
}
)
Beiträge von DrJoshua
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.
-
-
After some thinking maybe I just create two schedules?
One that turns the lights on at 07:00 and another one that disables that schedule at sunrise so the lights doesn´t go on.
-
Hello!
I want a script that turns on a relay in the morning at 07:00 if it´s before sunrise.
Is it possible to make such a script that compares a scheduled time with the time for sunrise?
I don´t want the lights to go on if it´s already daylight outside.
-
Thanks for input!
I think I made it more complex than it was. The result became a script like this:
Shelly.call("schedule.create",
{
"enable":true,
"timespec":"0 11 21 * * SUN,MON,TUE,WED,THU,FRI,SAT",
"calls":[{
"method":"Schedule.Update",
"params":{
"id":1,
"enable":true
}
}
]
}
)
-
Can someone please give me some guide to a script that enables an existing schedule (no 1) every evening at 23:00?
EDIT: Now I have the first part that reenables the existing schedule. Last thing is to complete the script with code so it runs every evening.
Shelly.call("Schedule.Update", {
"id": 1,
"enable": true
}
);