-
Notifications
You must be signed in to change notification settings - Fork 124
Home
Caffreyfans edited this page May 12, 2020
·
2 revisions
控制协议
目前只支持空调类电器 MQTT 控制
topic: /IRbaby/${MAC}/set/${file_name}/mode
payload: auto (auto, cool, heat, fan, dry, off)
topic: /IRbaby/${MAC}/state/${file_name}/mode
topic: /IRbaby/${MAC}/set/${file_name}/temperature
payload: 0 (0 表示 16 度,14 表示 30 度,设置范围内的数值,步长为 1)
topic: /IRbaby/${MAC}/state/${file_name}/temperature
topic: /IRbaby/${MAC}/set/${file_name}/fan
payload: 0 (0:自动,1:低速,2:中速,3:高速)
topic: /IRbaby/${MAC}/state/${file_name}/fan
{
"cmd": "ota",
"params": {
"url": "http:irbaby.caffreyfans.top/latest/IRbaby.bin"
}
}
{
"cmd": "reset",
"params": {}
}
{
"cmd": "send",
"params": {
"file": "${file_name}",
"status": {
"power": 1,
"temperature": 0,
"mode": 0,
"swing": 0,
"direction": 0,
"speed": 0
}
}
}