万能红外开放能力

更新时间:2023-06-15 05:15:26

支持将万能红外遥控器快速接入涂鸦 IoT 平台,远程控制遥控器下多品牌,多品类设备,并实现各种丰富的其他功能。

红外机顶盒

API名称接口地址
切换遥控器的频道表PUT:/v2.0/infrareds/{infrared_id}/remote/{remote_id}/channels
根据频道号切换频道POST:/v2.0/infrareds/{infrared_id}/channel/switch
删除自定义的频道表DELETE:/v2.0/infrareds/{infrared_id}/remote/custom/{submit_id}
更新自定义的频道表PUT:/v2.0/infrareds/{infrared_id}/remote/{remote_id}/custom/{submit_id}
根据地区 ID 获取运营商列表GET:/v2.0/infrareds/{infrared_id}/areas/{area_id}/operators
获取频道表列表GET:/v2.0/infrareds/{infrared_id}/remote/channels
根据遥控器 ID 获取频道表列表GET:/v2.0/infrareds/{infrared_id}/remote/{remote_id}/channels
获取所有的频道名GET:/v2.0/infrareds/{infrared_id}/remote/all-channels
获取地区列表GET:/v2.0/infrareds/{infrared_id}/provinces/{province_id}/cities/{city_id}/areas
获取省份列表GET:/v2.0/infrareds/{infrared_id}/provinces
获取机顶盒绑定的频道表GET:/v2.0/infrareds/{infrared_id}/remote/{remote_id}/selected-channels
根据省份 ID 获取城市列表GET:/v2.0/infrareds/{infrared_id}/provinces/{province_id}/cities

红外智能匹配

API名称接口地址
智能匹配获取 tokenPOST:/v2.0/infrareds/{infrared_id}/matching-remotes/token
根据 token 获取匹配结果GET:/v2.0/infrareds/{infrared_id}/matching-remotes

红外空调

API名称接口地址
空调组合按键下发POST:/v2.0/infrareds/{infrared_id}/air-conditioners/{remote_id}/scenes/command
空调遥控器单个指令下发(配对阶段)POST:/v2.0/infrareds/{infrared_id}/air-conditioners/testing/command
下发空调组合按键(配对阶段)POST:/v2.0/infrareds/{infrared_id}/air-conditioners/testing/scenes/command
获取空调的当前状态GET:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/ac/status
空调遥控器单个指令控制POST:/v2.0/infrareds/{infrared_id}/air-conditioners/{remote_id}/command
批量获取空调当前状态GET:/v1.0/cloud/rc/infrared/ac/status/batch

红外定时任务

API名称接口地址
添加红外定时任务POST:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/timers
更新定时任务PUT:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/timers
更新定时任务状态PUT:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/timers/status
获取设备的红外定时任务GET:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/timers
删除定时任务DELETE:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/timers

红外通用接口

API名称接口地址
获取遥控器索引 ID 对应的品牌GET:/v2.0/infrareds/{infrared_id}/categories/{category_id}/remotes/{remote_index}/brands
获取红外码库信息GET:/v2.0/infrareds/{infrared_id}/categories/{category_id}/brands/{brand_id}/remotes/{remote_index}/rules
遥控器支持的按键信息GET:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/keys
标准命令下发POST:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/command
获取品类支持的品牌列表GET:/v2.0/infrareds/{infrared_id}/categories/{category_id}/brands
标准命令下发(配对阶段)POST:/v2.0/infrareds/{infrared_id}/testing/command
获取品牌下的遥控器索引列表GET:/v2.0/infrareds/{infrared_id}/categories/{category_id}/brands/{brand_id}/remote-indexs
按键命令下发POST:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/raw/command
获取遥控器列表GET:/v2.0/infrareds/{infrared_id}/remotes
按键命令下发(配对阶段)POST:/v2.0/infrareds/{infrared_id}/testing/raw/command
删除遥控器DELETE:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}
添加遥控器POST:/v2.0/infrareds/{infrared_id}/remotes
修改遥控器名称PUT:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}
获取设备支持的品类列表GET:/v2.0/infrareds/{infrared_id}/categories

红外学习功能

API名称接口地址
更新遥控器学习码PUT:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/learning-codes
保存遥控器学习码POST:/v2.0/infrareds/{infrared_id}/learning-codes
下发学习码POST:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/learning-codes
获取遥控器的学习码GET:/v2.0/infrareds/{infrared_id}/remotes/{remote_id}/learning-codes
切换设备学习状态PUT:/v2.0/infrareds/{infrared_id}/learning-state
获取网关接收到的遥控码GET:/v2.0/infrareds/{infrared_id}/learning-codes
删除学习码DELETE:/v2.0/infrareds/{infrared_id}/learning-codes/{learn_id}
获取通用按键信息GET:/v2.0/infrareds/{category_id}/base-key