|
本帖最后由 ptlzx 于 2019-10-1 07:11 编辑
比如选择“家庭影院”,遥控执行:
1:打开播放器
间隔2秒
2、打开功放
间隔2秒
3、功放切换输入到HDMI3
。。。。。。
2000.json内容如下:
{
"manufacturer": "KEF",
"supportedModels": [
"AV-HIFI"
],
"supportedController": "Xiaomi",
"commandsEncoding": "Raw",
"commands": {
"tv_on": "遥控码",
"kt_on": "遥控码",
"家庭影院": [
"1|遥控码",
"3|遥控码",
"9|遥控码"
]
}
}
}
----------------------------------------
设想用 [] 来把多操作集合在一起,用遥控码前加 1|、3| 几秒开始执行做间隔,但似乎设备没有响应,日志提示:
can only concatenate str (not "list") to strTraceback (most recent call last): File "/config/custom_components/smartir/media_player.py", line 268, in send_command await self._controller.send(command) File "/config/custom_components/smartir/controller.py", line 88, in send 'command': self._encoding.lower() + ':' + commandTypeError: can only concatenate str (not "list") to str
内容
"家庭影院": [
"1|遥控码",
"3|遥控码",
"9|遥控码"
|
|