博联rm产品红外功能配置[新版本]


  • administrators

    后续操作需要您理解JSON语法格式,并通过学习红外/射频编码完成,。

    位置:
    smart home插件的应用实时交互
    字段:
    设置broadlink红外发射配置
    内容【JSON格式】:

    红外码如何取得?
    0_1533519703892_r1.png
    触发RmMini学习状态为开,按下遥控器,可以多按几次。然后触发关闭。关闭前会获取接收到的红外码,并在博联红外学习接收码下面显示接收到的红外码。
    0_1533519717506_r2.png

    一个栗子[将下面的内容保存为一个文件,并上传到小桴智能管家],出于使用体验考虑,当前最多支持10个自定义设备

    [switch0]
    enableAutoOff = yes
    onDuration = 2
    on = JgBQAAABJ5UTEhMSExMSExUQExMSExM3EzgTEhMSEzgTOBITExITEhMTEhMTEhMTEjgTEhMTEhMTNxM4EzgSOBMSEzgTOBI4EwAFqwABJ0oTAA0FAAAAAAAAAAA=
    off = JgBQAAABJ5UTEhMSExMSExUQExMSExM3EzgTEhMSEzgTOBITExITEhMTEhMTEhMTEjgTEhMTEhMTNxM4EzgSOBMSEzgTOBI4EwAFqwABJ0oTAA0FAAAAAAAAAAA=
    
    [switch1]
    type = light
    host = 07:69:c7:34:ea:34
    enableAutoOff = yes
    onDuration = 2
    #0.1.25版本开始可以支持下面写法,当on/off一致的时候,写data即可
    data = JgBQAAABJ5UTEhMSExMSExUQExMSExM3EzgTEhMSEzgTOBITExITEhMTEhMTEhMTEjgTEhMTEhMTNxM4EzgSOBMSEzgTOBI4EwAFqwABJ0oTAA0FAAAAAAAAAAA=
    
    [switch2]
    type = outlet
    enableAutoOff = no
    onDuration = 2
    on = JgBQAAABJ5UTEhMSExMSExUQExMSExM3EzgTEhMSEzgTOBITExITEhMTEhMTEhMTEjgTEhMTEhMTNxM4EzgSOBMSEzgTOBI4EwAFqwABJ0oTAA0FAAAAAAAAAAA=
    off = JgBQAAABJ5UTEhMSExMSExUQExMSExM3EzgTEhMSEzgTOBITExITEhMTEhMTEhMTEjgTEhMTEhMTNxM4EzgSOBMSEzgTOBI4EwAFqwABJ0oTAA0FAAAAAAAAAAA=
    
    
    
    [switch3]
    type = fan
    enableAutoOff = yes
    onDuration = 2
    on = JgBQAAABJ5UTEhMSExMSExUQExMSExM3EzgTEhMSEzgTOBITExITEhMTEhMTEhMTEjgTEhMTEhMTNxM4EzgSOBMSEzgTOBI4EwAFqwABJ0oTAA0FAAAAAAAAAAA=
    off = JgBQAAABJ5UTEhMSExMSExUQExMSExM3EzgTEhMSEzgTOBITExITEhMTEhMTEhMTEjgTEhMTEhMTNxM4EzgSOBMSEzgTOBI4EwAFqwABJ0oTAA0FAAAAAAAAAAA=
    
    
    
    [switch4]
    type = switch
    enableAutoOff = no
    onDuration = 2
    on = JgBQAAABJ5UTEhMSExMSExUQExMSExM3EzgTEhMSEzgTOBITExITEhMTEhMTEhMTEjgTEhMTEhMTNxM4EzgSOBMSEzgTOBI4EwAFqwABJ0oTAA0FAAAAAAAAAAA=
    off = JgDsAAABJ5USNxE5ERURFRAWEBYQFhE5EBUSOBE4ERURFRIUERUSFBIUEhQSOBIUEhQSFBIUEhQSOBAWERUSFBIUEhQSFREVERUSFBIUEBYSFBIUEhQSFBIVERUREw0XERYQFhEVERUQAAEIEBYSFBAWERUSFBEVERUNGBIUEhQSFBIUEBURFRIUEhQSFA4XEhQSFBIUEhUPFREWERUQFhEVDRgRFREVERUSFBATERURFRAVERUSFBIUEhQSExAWEBYSFBIUEhMOFhIUERURFRIUERYRFREVERUSExI4EBYROBEWERURFREVERUQAA0FAAAAAAAAAAAAAAAA=
    
    ###########################################################
    
    # Models: R24AWN, R09AWN
    [off]
    off_command = JgDsAAABJpYQOhA5ERYPFw0VEBcQFhA4EBYPOhA6EBYPFw8XEBYQFw8XDxcPOhAWEBYPFxAWEBYQOg8XDxcQFhAWEBcPFxAWDxcQFg8XDxcQFg8XEBYQFg8XEBYQFxAWDxcPFxAWEBYQAAEIEBUQFg8XDxcQFhAVDxcPFw8XEBcQFA8XEBcPFw8XEBQQFw8XDxcPFw8WDBgPFxAWDxcPFxAWDxcPFxAWEBYPFw8XDxcQFg8WDxcQFg8XEBYQFQ8XDxgQFhAWDxUNFxAXDxcPFxAWDxcQFg8XDxcQFhA5DxcQOhAWDxcPFxAWDxcPAA0FAAAAAAAAAAAAAAAA=
    
    [idle]
    idle_command = JgDsAAABJZgROA87DxgOGA4YDhgOGA47ERYPOQ87DxgOGA0YExUPFg8YDxcOOhAXDxcQFw4XEBcOOg8YDxcOGA8YDRcRFg4YDRgOGA4YDhgOGA4WERYOFxAXDxgMGA8YDhcPFxIWDxMOAAEJEBUQFw4YDhgOGAwZDhgPFw0YEhUNGA4YDhgOGA8XDRgPFw8WERcOFw4XDxcPFw8YDhgNFxEWDRgPGA4YDBkOGA4YDxYRFg4YDhcOGA8XDhgNGA4YDhcQGA4XDRgOGA4YDhgOGA4YDxYOGBAXDxcNFQ86DxgPOw4XEBcPFw4YDhgOAA0FAAAAAAAAAAAAAAAA=
    
    [heat]
    auto_18 = JgBAAAABIYMTMBMOEhARERAxEhASDxIQEg8REBIPEw8REBExEhASEBEPEhARMREyERASMRIPEjASMhEwEhARERIADQUAAAAAAAAAAA==
    auto_19 = JgBAAAABIIQSMREQEg8SEBExEhASDxIPEw4SEBEQERASEBExEg8SEBExEzASDxEQEhASMBIQETESDxIxERASMREADQUAAAAAAAAAAA==
    auto_20 = JgBAAAABH4QUMBIQEQ8TDxIxERASEBAQEhAQEg8SEQ8TDxIwEw8SDxIwEjEREBIxEg8SMBESETESDxExEjESEBEADQUAAAAAAAAAAA==
    auto_21 = JgBAAAABIIMTMREQERASEBEyEBATDhIQEg8REBMPEg8SDxEyEREQEBIxEjASMREQEw4SMREQEzEREBIwEjATMBEADQUAAAAAAAAAAA==
    auto_22 = JgBAAAABIIQSMRMOEw8REBIwEw8SEBEPEhAREREQERASDxEyERARERAxEjESMRExEw4TMREPEzASMREQEREQEBMADQUAAAAAAAAAAA==
    auto_23 = JgBAAAABIIMUMBIPEw8REREwEw8REBIQERAREREPEhASDxExERATEBEQEDIREREPEw4SMhEPEzASMRIwERATMBIADQUAAAAAAAAAAA==
    auto_24 = JgBAAAABH4USMRIPEw8SEBAyEhARDxIPEw8RERAREQ8TDxIwEw8QERIPEzAREBIwEw8QMhEREjASMRIxETIRDxMADQUAAAAAAAAAAA==
    auto_25 = JgBAAAABHoUUMBAREhASDxExEw8REBMPEg4TDxASEQ8TDxIxEQ8SEBIPEDITMBIPEhAQMhASDzMTMBIwEzASMBMADQUAAAAAAAAAAA==
    auto_26 = JgBAAAABHYcSMRMPEg8SDw81EQ8REBMPEg8REA8SEw8SDxIxEg8PEhMOEzARMRMwERATMBIPEzERDxIPEw8SDxIADQUAAAAAAAAAAA==
    auto_27 = JgBAAAABHoUUMRAQEw4TDxIwEw8SEBEPEhAREBIQERARDxMwERESDxEyERAQERIQEQ8SMREQEy8TDxEQERESMREADQUAAAAAAAAAAA==
    auto_28 = JgBAAAABIYMTMREREBAREBIxEg8SDxIREQ8REBIQERAREBIxERASEBExEg8REBMwERASMhAREDIREBEQETIREBIADQUAAAAAAAAAAA==
    auto_29 = JgBAAAABIIQRMRMPERASDxEyEg8REBMPERERDxIPEhASDxExEhAREBIxERERMBIREQ8RMRIQETETDxIPEjASMhEADQUAAAAAAAAAAA==
    auto_30 = JgBAAAABHYYUMBIPEw4PExIwEw8SDw4TEw8OExIPDxITDhMwERATDxIxEg8ONBMvEw8PMw8TEjASDxMwEw8OExIADQUAAAAAAAAAAA==
    
    [cool]
    auto_18 = JgBAAAABIIQSMREQEhAREBExEhAREBEQERASEBEQERASDxIQERAREBIQERARMRIxEg8SMREQETIRMRIQERAREBEADQUAAAAAAAAAAA==
    auto_19 = JgBAAAABPoYQNBEQEw4TDhMwEg8TDw4TEg8PEhMPEg8SDw8TDhMSDxMxETAPEw4TEg8SMRIPETETDxEQDxITMA8ADQUAAAAAAAAAAA==
    auto_20 = JgBAAAABIIMTMBMPEREREBEyEBASEBEREQ8REBMPEg8REBEQEw8REBEyETESDxIxERATMREPEjEREBIPEjIQEBEADQUAAAAAAAAAAA==
    auto_21 = JgBAAAABH4MUMBMPERARERExERASEBEPExAQEREQEQ8TDxEREg8SDxExEjIQMhIPERASMRIPEjEREBERETERMRIADQUAAAAAAAAAAA==
    auto_22 = JgBAAAABIIQSMREQEhAREBExEhASDxEQEhAREBIPEw4SEBEQEg8TDhIxEjERMREyERARMRIQETESEBIwEhAREBIADQUAAAAAAAAAAA==
    auto_23 = JgBAAAABIIMUMBEQEg8SEBExEhASDxEQERASEBIPERASDxIQEg8SDxIxERATDhIQERARMRMPETISMBIwEhARMRIADQUAAAAAAAAAAA==
    auto_24 = JgBAAAABIYMSMhEPEhASDxExEhAREBIPEhAREBIPEg8TDxEQEw4TDxEyEQ8TDxIwEhARMREQEjESMRExETISDxIADQUAAAAAAAAAAA==
    auto_25 = JgBAAAABIIQSMhIQEQ8SDxIyEBATDxIQEQ8SEBAREhARDxEREBIRDxMwEhARMRIPEREQMhEQEjESMRExETISLxMADQUAAAAAAAAAAA==
    auto_26 = JgBAAAABIIQSMRIPEhAREBEyEg8SDxIPEhASDxIPEhAREBIPERASEBEyEg8RMREyERASMBIQEjASEBEQERAREREADQUAAAAAAAAAAA==
    auto_27 = JgBAAAABIYIUMREPEhAREBIwEw8REBIPEg8TDxIPEg8TDxEQEg8REBIxETIREBEQEg8SMhEPEzERDxMOEhARMRIADQUAAAAAAAAAAA==
    auto_28 = JgBAAAABIIQTMREPEw8SDxIxERERDxIQEg8SEBAQERATDxEQEhARDxMxETESDxEyEhAQMRIQEjATDhIQETESEBEADQUAAAAAAAAAAA==
    auto_29 = JgBAAAABIYMTMBIPEhAREBIxEg8REREQERASDxIPEw8REBEQERASEBEyETERMhEQEg8SMRIPETETDxIPEjASMRIADQUAAAAAAAAAAA==
    auto_30 = JgBAAAABH4QUMBIQEg4RERIxEg8SDxAREhAQERIPERATDxIPEg8SEBIxEDERMhMvEw8RMREREjASDxMwEhAQERIADQUAAAAAAAAAAA==
    
    [auto]
    auto_18 = JgBAAAABIIQRMhAREhAQEREwEhEQEREQEREQEREQEhAQEQ8SEDMQMhEQEREQMhAzEBERMhEQEDIRMhIPEjEQMhIADQUAAAAAAAAAAA==
    auto_19 = JgBAAAABIIMTMREQERAREBIxERASEBEQEg8SDxIQERAREBIQETESMRIwEjESDxEQEhARMhEQETEREBIyEQ8REBMADQUAAAAAAAAAAA==
    auto_20 = JgBAAAABMoITMhEPEhAREBIwEhAREBEQEhAREBEQEg8SEBEQETETMBEyETESDxMwEg8SMREQEjESDxEyERARMRIADQUAAAAAAAAAAA==
    auto_21 = JgBAAAABIIQPNBASERAQEQ80ERAREA8TEBEQERASEBEOEw8SETIONA80DzMRMhAREREQMhIQEDIPEhAzETEQEg4ADQUAAAAAAAAAAA==
    auto_22 = JgBAAAABIIMTMBMPERASDxIxERASEBEREBASEBEQERASDxIPEzEQMhExEzASMRExEhARMRIPETISDxEyEjASMBIADQUAAAAAAAAAAA==
    auto_23 = JgBAAAABIYMSMRIPEhAREBEyEg8REBMOEhASDxIPEhASEBEPEjERMRMPETIQEBIQEg8RMRIQETETMBIxEg8REBEADQUAAAAAAAAAAA==
    auto_24 = JgBAAAABIoMTMhAQERASDxIxERASEBEQERASDxIQEg8SDxIQEjASMRIPETIREBExEhASMBIQETERMhIwEw4SMRIADQUAAAAAAAAAAA==
    auto_25 = JgBAAAABIIMSMhEQERARERAyEhAREBAREBESEBIPEBEREBERETERMhAREDMRMRASERAQMhEREDISMRIwEjEQERIADQUAAAAAAAAAAA==
    auto_26 = JgBAAAABH4MSMRIQERAREBIxERATDxEQEg8REBIQERAREBEQEjERMhEQEjASMREyERASMBIQEjATMBExEjERMRIADQUAAAAAAAAAAA==
    auto_27 = JgBAAAABQoMRMhIQEBEREBAzERAREBEREBEREBERERAQERARETIRMREyEBESEBEQEBEQMxARETIREBEQEg8RERAADQUAAAAAAAAAAA==
    auto_28 = JgBAAAABIIMTMREQERASDxEyEBERERAREBESDxIQERAQERASETEQMxAyEhAREBAyEREQMhARETIREBEREBEQMhIADQUAAAAAAAAAAA==
    auto_29 = JgBAAAABH4QTMREQERASEBAyEREQEREQERASEBEQERASEBEQETESMRExEhARMRIQERARMRERETESEBEQETESEBEADQUAAAAAAAAAAA==
    auto_30 = JgBAAAABH4QQNA8SEhAOExExEBIQEREQERAPExEQERAPEw4TEDIRMhExDxMPMxEyDxIPNBARDzQQEREQETIONBIADQUAAAAAAAAAAA==
    

    可以直接使用下面的空调编码使用

    https://github.com/vpnmaster/homeassistant-custom-components/tree/master/broadlink_climate_codes
    

    字段解析[兼容树莓派/homebridge]:

    name: **显示设备的名称,必须是同类型唯一的**,修改可能导致出现未响应的僵尸节点,如遇到这种情况,请重新配对。
    type: 设备类型,当前可支持switch,light,outlet,fan,garage-door-opener类型
    enableAutoOff: 是否启用自动定时关闭。
    onDuration: 定时关闭时间,单位秒
    host: 绑定到的博联RM设备MAC,如不填写则根据先到先得的分配的方式。
    data: 红外/射频编码,通过学习获取。data.off非必须
    

    射频学习:

        使用Broadlink的learn方法只能学习到红外码无法学习到射频码
        射频码的学习步骤:先扫频,再学习;
    

    扫频操作:

    1.打开手机官方APP“智慧星”或“易控”
    2.添加上RM PRO设备
    3.在手机上扫频,并长按你的遥控器按键
    4.扫频成功后,在XF中调用learn的方法,并点击你的遥控器按键


  • 上面的内容如何保存一个文件呢?求教?


  • administrators

    @apple-homekit 已经更新,使用ini配置


  • administrators

    博联RM接入HA以后,如果要学习射频,直接在HA是学不到的,如果你有安卓手机,装RMPluginLite很容易提取,如果没安卓,可以试下下面这个方法,不用任何APP,只用了易控和HA
    先用易控APP点学习,然后扫频,扫到以后易控上不要操作,去HA里面点学习,然后按下射频遥控器的按钮,HA就学到啦



  • 老板能不能把这个博联教程细化,怎么上传文件等步骤。让我们这些小白一看就懂。



  • 我已经上传了一个配置,配置类型为插座,能否把这配置类型变成电视机??如果我不想要这个配置了,那么我如何删除这个配置??


  • administrators

    @yeyuhanlf 目前从苹果公开的资料来看,homekit还不支持电视机,只能配置为开关(switch),如果不要删除或者内容为空就行。不过由于会留下前面的缓存,需要重新配对下。



  • 好的我试一下,因为我在其他帖子看到有人能做出车库门的图标。我现在做的就是把我家的电视机和空调连接上去。


  • administrators

    @yeyuhanlf 车库会常常弹出警告,来告诉门的开关状态,但红外不是双向协议,它不能反馈它的状态,这个开关信息可能是错误的,而这样的警告对用户是一种骚扰,所以不推荐这样做。