REST API๋ฅผ ์ฌ์ฉํ์ฌ ์ผ์ ์ ์์ฑํ ๋ ์๊ฐ์ ๋ฌด์์๋ก ์ง์ ํ ์ ์์ต๋๋ค.
๋ค์ ๋ณธ๋ฌธ์ ์ฌ์ฉํ์ฌ /api/<username>/schedules
POST ์์ฒญ์ ๋ณด๋
๋๋ค.
{
"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
}
์์ฒญ์ด ์ฑ๊ณตํด์ผ ํฉ๋๋ค. ๊ทธ๋ฌ๋ (๋ก์ปฌ)์๊ฐ์ ์์์ ๋ถ๋ถ( A00:10:00
)์ ๋ฌด์๋ฉ๋๋ค. ๋ค์ ์์ค ์ฝ๋์์ ๋ณผ ์ ์์ต๋๋ค.
https://github.com/dresden-elektronik/deconz-rest-plugin/blob/4154ad416996058bda9ab2d1af622fe5bef45cec/rest_schedules.cpp#L417 -L425
https://github.com/dresden-elektronik/deconz-rest-plugin/blob/4154ad416996058bda9ab2d1af622fe5bef45cec/rest_schedules.cpp#L833 -L841
Hue API๋ ๋ฌด์์ ์ผ์ ์ ์ง์ํฉ๋๋ค.
์ด ๋ฌธ์ ๋ ์๋ https://community.hueessentials.com/t/randomize-schedule-and-phoscon-bridge/243์์ ๋ณด๊ณ ๋์์ต๋๋ค.
๋ฐฑ๋ก๊ทธ๊ฐ ์ถ๊ฐ๋์์ต๋๋ค. ๊ทธ๋ ์ง ์์ผ๋ฉด ๋ด์ด ๋ค์ ๊ท์ฐฎ๊ฒ ํ ๊ฒ์ ๋๋ค.
๋ฌด์์ ์๊ฐ์ ๋ค์ deCONZ ๋ฒ ํ ๋ฆด๋ฆฌ์ค์์ ์ฌ์ฉํ ์ ์์ต๋๋ค.
@ChrisHae ๊ฐ์ฌ
์ด๋ฏธ ๋ง์คํฐ ๋ธ๋์น์ ์์ผ๋ฉฐ ์ต์ deCONZ v.2.05.80 ๋ฆด๋ฆฌ์ค์๋ ์์ด์ผ ํฉ๋๋ค.
https://github.com/dresden-elektronik/deconz-rest-plugin/commit/8009689e5378749311db150a8d722885d961d4f1