本帖最后由 27hh 于 2018-3-25 10:39 编辑
期待大神写插件
可用操作
public interface a {
@retrofit2.http.GET("aircleaner/getBindDevs")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<com.phicomm.aircleaner.models.equipment.response.EnvDeviceListResponse>> a(@retrofit2.http.Header("Authorization") java.lang.String r1);
@retrofit2.http.GET("aircleaner/countData_year")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<com.phicomm.aircleaner.models.history.response.YearDataResponse.DataBean>> a(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2);
@retrofit2.http.POST("aircleaner/setDataSource")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse> a(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("catDeviceID") java.lang.String r2, @retrofit2.http.Query("cleanerDeviceID") java.lang.String r3);
@retrofit2.http.GET("aircleaner/countData_day")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<com.phicomm.aircleaner.models.history.response.DayDataResponse.DataBean>> a(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2, @retrofit2.http.Query("startTime") java.lang.String r3, @retrofit2.http.Query("endTime") java.lang.String r4);
@retrofit2.http.POST("scenarioautomation/aircleaner/addTask")
io.reactivex.d<com.phicomm.aircleaner.models.task.beans.TaskResponse> a(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceId") java.lang.String r2, @retrofit2.http.Query("name") java.lang.String r3, @retrofit2.http.Query("mode") java.lang.String r4, @retrofit2.http.Query("customMode") java.lang.String r5, @retrofit2.http.Query("repeatMode") java.lang.String r6, @retrofit2.http.Query("startTime") java.lang.String r7, @retrofit2.http.Query("endTime") java.lang.String r8);
@retrofit2.http.POST("scenarioautomation/aircleaner/modifyTask")
io.reactivex.d<com.phicomm.aircleaner.models.task.beans.TaskResponse> a(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceId") java.lang.String r2, @retrofit2.http.Query("taskId") java.lang.String r3, @retrofit2.http.Query("name") java.lang.String r4, @retrofit2.http.Query("mode") java.lang.String r5, @retrofit2.http.Query("customMode") java.lang.String r6, @retrofit2.http.Query("repeatMode") java.lang.String r7, @retrofit2.http.Query("startTime") java.lang.String r8, @retrofit2.http.Query("endTime") java.lang.String r9);
@retrofit2.http.GET("aircleaner/getIndexData")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<com.phicomm.aircleaner.models.home.beans.DeviceResponse>> b(@retrofit2.http.Header("Authorization") java.lang.String r1);
@retrofit2.http.GET("aircleaner/getDeviceData")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<com.phicomm.aircleaner.models.home.beans.Device>> b(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2);
@retrofit2.http.POST("aircleaner/setChildLock")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse> b(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2, @retrofit2.http.Query("childLock") java.lang.String r3);
@retrofit2.http.GET("aircleaner/countData_day_hour")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<com.phicomm.aircleaner.models.history.response.DayDataResponse.DataBean>> b(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2, @retrofit2.http.Query("startTime") java.lang.String r3, @retrofit2.http.Query("endTime") java.lang.String r4);
@retrofit2.http.GET("aircleaner/getDeviceStatus")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse> c(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2);
@retrofit2.http.POST("aircleaner/setDeviceMode")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse> c(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2, @retrofit2.http.Query("mode") java.lang.String r3);
@retrofit2.http.GET("aircleaner/countData_month")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<com.phicomm.aircleaner.models.history.response.MonthDataResponse.DataBean>> c(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2, @retrofit2.http.Query("startTime") java.lang.String r3, @retrofit2.http.Query("endTime") java.lang.String r4);
@retrofit2.http.POST("aircleaner/resetFilter")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse> d(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2);
@retrofit2.http.POST("aircleaner/windSpeed")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse> d(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceID") java.lang.String r2, @retrofit2.http.Query("windSpeed") java.lang.String r3);
@retrofit2.http.GET("scenarioautomation/aircleaner/getTaskList")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<java.util.List<com.phicomm.aircleaner.models.task.beans.TimerTask>>> e(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceId") java.lang.String r2);
@retrofit2.http.POST("scenarioautomation/aircleaner/delTask")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse> e(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("deviceId") java.lang.String r2, @retrofit2.http.Query("taskId") java.lang.String r3);
@retrofit2.http.GET("scenarioautomation/aircleaner/getTask")
io.reactivex.d<com.phicomm.aircleaner.common.http.client.BaseResponse<com.phicomm.aircleaner.models.task.beans.TimerTask>> f(@retrofit2.http.Header("Authorization") java.lang.String r1, @retrofit2.http.Query("taskId") java.lang.String r2);
}
设备开关及模式
public class AircleanDevice extends com.phicomm.aircleaner.models.home.beans.CatDevice {
public static java.lang.String MODE_AUTO = "3";
public static java.lang.String MODE_EFFIECT = "5";
public static java.lang.String MODE_HAND = "2";
public static java.lang.String MODE_OFF = "0";
public static java.lang.String MODE_ON = "1";
public static java.lang.String MODE_SLEEP = "4";
}
示例(HTTP POST):
https://aircleaner.phicomm.com/aircleaner/windSpeed?windSpeed=30&deviceID=30-B0:F8:93:AA:AA:AA&access_token=xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx.eyJ1aWQiOiI4NTk5MjE5MyIsImNvZGUiOiJmZWl4dW4uU0hfMSIsInR5cGUiOiJhY2Nlc3NfdG9rZW4iLCJpc3MiOiJQaGljb21tIiwibmJmIjoxNTIxOTE2MDYyLCJleHAiOjE1MjI0MzQ0NjIsInJlZnJlc2hUaW1lIjoiMjAxOC0wMy0yNyAwMjoyNzo0MiJ9.u94PBisQ8LeQstmo2cvoZdyKihVoTwlyYZFq_HyQIgY
执行后会将风速设置为最小。
|