We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
When creating a schedule using the REST API the time cannot be randomized.
Send a POST request to /api/<username>/schedules with the following body:
/api/<username>/schedules
{ "name": "SOn_28_Schedule 1_JbUwF", "description": "28", "localtime": "2020-07-20T19:30:00A00:10:00", "time": "2020-07-20T19:30:00A00:10:00", "command": { "address": "/api/<username>/groups/28/scenes/4/recall", "method": "PUT", "body": {} }, "status": "enabled", "autodelete": false, "recycle": false }
The request should be successful. However, the random part of the (local)time (A00:10:00) is ignored. That can be seen in the source code here:
A00:10:00
deconz-rest-plugin/rest_schedules.cpp
Lines 417 to 425 in 4154ad4
Lines 833 to 841 in 4154ad4
The Hue API supports randomized schedules. The issue was originally reported here: https://community.hueessentials.com/t/randomize-schedule-and-phoscon-bridge/243
The text was updated successfully, but these errors were encountered:
Added backlog, otherwise bot is going to bother you again.
Sorry, something went wrong.
Randomized times will be available in the next deCONZ beta release.
Thanks @ChrisHae, that's awesome! Could you link the PR when you have it ready?
It is already in the master branch and should also been in latest deCONZ v.2.05.80 release 8009689
No branches or pull requests
Feature request type
When creating a schedule using the REST API the time cannot be randomized.
Description
Send a POST request to
/api/<username>/schedules
with the following body:The request should be successful. However, the random part of the (local)time (
A00:10:00
) is ignored. That can be seen in the source code here:deconz-rest-plugin/rest_schedules.cpp
Lines 417 to 425 in 4154ad4
deconz-rest-plugin/rest_schedules.cpp
Lines 833 to 841 in 4154ad4
Additional context
The Hue API supports randomized schedules.
The issue was originally reported here: https://community.hueessentials.com/t/randomize-schedule-and-phoscon-bridge/243
The text was updated successfully, but these errors were encountered: