В этом разделе вы можете проголосовать за идеи по открытым проектам. Вы всегда можете предложить свою идею, перейдя на страницу проекта.
<<< НазадAPI тут https://github.com/aqara/opencloud-docs/blob/maste...
device model:curtain
Две метрики:
1) curtain_status open / close / stop / auto (open the curtain / close the curtain / stop operations / automated operations). Supports "write" attribute (reports curtain_level after writing to device), does not support "report".
2) curtain_level Value: 0-100 indicates the percentage that a curtain is open; -1 or 255 indicates that the position of the curtain is unknown. Support "write" and "report".
Управление:
{
"cmd":"write",
"model":"curtain",
"sid":"158d0001012345",
"params":[{"curtain_status":"open"}]
}
{
"cmd":"write",
"model":"curtain",
"sid":"158d0001012345",
"params":[{"curtain_level":25}]
}