请求类型与数据参照
主机端请求标识码
type/action | values/data |
TurnOnRequest | |
TurnOffRequest | |
PauseRequest | |
SetTemperatureRequest | { “temperature”:int } |
SetFanSpeedRequest | { “fanSpeedValue”:int 或者 “fanSpeedLevel”:String } |
SetModeRequest | { "mode":String } |
UnsetModeRequest | { "mode":String } |
SetFanDirectionRequest | { "fanDirection":String } |
SetColorRequest | { //color值为HSV模式 //需要RGB值需要转换 "color":{ "hue":double "saturation":double "brightness":double } } |
最后更新于