主要是为了在homeassitant里添加rm的代码,系统是论坛里新手指南里下的hassio,homebridge和小米都已经设置正常,rm开关开关码也都设置正常了,homeassistant里能看到,也能点击,但是应该是代码问题,起不了效果。
现在添加rm代码碰到了问题,看到的方法有两种,一种装插件python-broadlink一种易控APP
第一种,插件
SSH设置了密码,用putty能连上能登录,但是随便什么指令都是not found,貌似是没有权限,卡住了不知道该怎么继续。而且hassio系统下用samba进去只有4个文件夹,没有其他攻略说的home/pi这种文件夹。
第二种易控App,
sharedata能导出,代码如下,把code[]里的代码放到hex转换为base64的网页转换,提示length is odd.直接放到代码转换的网页上进行base64 转换,转出来的代码不能用。求大神指导下该怎么继续下去。
{"buttonId":1,"id":1,"code":[38,0,-116,0,80,19,21,18,41,18,21,19,20,19,41,18,21,18,21,19,40,19,20,19,21,18,21,19,20,0,3,97,81,19,20,19,40,19,21,18,21,19,40,19,20,19,21,18,41,18,21,19,20,19,21,18,21,0,3,97,81,18,21,19,40,19,20,19,21,18,40,19,20,20,20,19,40,19,20,19,21,19,20,19,20,0,3,103,80,19,21,19,40,19,19,20,21,18,40,19,20,19,20,20,39,20,21,18,20,20,19,20,21,0,3,102,80,19,21,18,41,19,20,19,21,18,41,18,21,18,21,19,40,19,20,19,21,18,21,19,20,0,13,5,0,0,0,0,0,0,0,0,0,0,0,0],"delay":0,"order":0,"name":""} |