lprhodes / homebridge-broadlink-rm

Broadlink RM Mini and Pro plugin for homebridge: https://github.com/nfarina/homebridge
Apache License 2.0
574 stars 284 forks source link

multiple RM controllers Mini 4 and Pro problem #726

Open doramihai opened 3 years ago

doramihai commented 3 years ago

Hello. I built this json cnfg as explained in the descriptions. But the two devices don’t work together. The Pro is sending hexcode with the ip configure in host of the mini - so the pro doesn’t response on the HomeKit, the mini is responding because it transmitting on the right ip and MAC address . Can someone fix my code?

"accessories": [],
"platforms": [
    {
        "platform": "BroadlinkRM",
        "name": "Wi-Fi Universal Remote",
        "hideScanFrequencyButton": "false",
        "hideLearnButton": "false",
        "host": [
            {
                "address": "192.168.1.177",
                "mac": "a0:5u:b0:cu:fe:d4",
                "isRFSupported": true,
                "isRM4": true
            }
        ],
        "accessories": [
            {
                "name": "Salon air conditioner",
                "type": "switch",
                "data": {
                    "on": "260010010001058c360f1235123512351235123512341434350f123512351235360f350f133412351235360f123512353510350f1235123512351235123512351235123512341236123412351235123512351235123512351235123413341235360f360f123512351234123512351235123512351235123535101234360f35101235123512341235360003fd0001078c350f1235123512351235123512351235350f1235123512353510350f123512351235360f12351235350f360f12351235123512351234123612341235123512351235123512351235123512341235123512351235123512353510350f1235123512351235123512351235123512351235350f123535103510123412351235123535000d05000000000000",
                    "off": "260010010001058d3510113611351236113512351235113635101136123511363510341011361235113635101136113634103510113611361136123512351136123512351234123612341235123511361235113611361235123512351235123512351234360f3510123512351235123512351235123412351334360f351011363411123412351235360003fd0001068d35101235123412351334123512351235360f123511361235350f360f1235123512353510123512353410360f11361235123512351235123512351234123512351235123512351235123511361235123512351235123413351234123535103510113612351234133512341235123511361235360f35101136341012351136123535000d05000000000000"
                }
            }
        ]
    },
    {
        "platform": "BroadlinkRM",
        "name": "Broadlink mini",
        "hideLearnButton": "false",
        "hosts": [
            {
                "address": "192.168.1.187",
                "mac": "a0:43:b0:72:76:88",
                "isRM4": true
            }
        ],
        "accessories": [
            {
                "name": "Bedroom air conditioner",
                "type": "switch",
                "data": {
                    "on": "2600ca008d9112351211123512351211121112351211121211351212121112351234121211351235121111131135123512351135123512111136123412121211121112121112123512341212111212111212111212111212121111361234123512351234123512aa8f9112351211123512341212111211361211121112351212111212341235121112351235121112111235113612341235123511121235123412121211121112121112123512341212121111121113111212111113111212341235123511351235113612000d05000000000000000000000000",
                    "off": "2600ca008d9111361211113612351211111211361211111311351212111212351135121211351113123412351235113511131135113611351212111211131112123511121112123511351235121112121112121111131211111211131135113611361135123511ab8f9112351211113612351112121111361112111311351113111211351235121112351113113512351135123511131135123512341212111212111212123412121112123511351136111211131112111211131211121111131135123511361135113611000d05000000000000000000000000"
                }
            }
        ]
    },
Barba4life commented 2 years ago

So unfortunately, none of my BroadLink's are actually sending signals, not even little light flashes when I activate a code. But I was able to get both to learn codes, try creating two platforms instead of placing both units in the same config, I even went as far as to have them on different child bridges.

copied from my main config file: { "platform": "BroadlinkRM", "name": "BroadlinkRM Living", "hideWelcomeMessage": true, "hideScanFrequencyButton": true, "hosts": [ { "address": "192.168.1.179", "port": 80, "mac": "a0:43:b0:2c:a7:b3", "isRFSupported": false, "isRM4": false } ], "accessories": [ { "name": "Samsung TV", "type": "tv", "data": { "on": "JgCMAJOUEzcSNxM3FBETEhMSEhMSExI4EjcTNxQRExITEhMSEhMSExI4EhITEhMSExITEhMSEzcTEhI3FDYTNxM3EzcTNxMABgaVlBM2FDYUNhMSExITEhMSExISOBI4EzYUERMSExITEhMSExISOBMSEhMSExITEhITEhM3FBETNxM3EzcTNhM3EzcTAA0F", "off": "JgCMAJOUEzcSNxM3FBETEhMSEhMSExI4EjcTNxQRExITEhMSEhMSExI4EhITEhMSExITEhMSEzcTEhI3FDYTNxM3EzcTNxMABgaVlBM2FDYUNhMSExITEhMSExISOBI4EzYUERMSExITEhMSExISOBMSEhMSExITEhITEhM3FBETNxM3EzcTNhM3EzcTAA0F" } }, { "name": "LivingRoom Humidity", "type": "humiditySensor" }, { "name": "LivingRoom temperature", "type": "temperatureSensor" } ], "_bridge": { "username": "0E:36:FE:5B:1C:8B", "port": 32136 } }, { "platform": "BroadlinkRM", "name": "BroadlinkRM Gym", "hideWelcomeMessage": true, "hideScanFrequencyButton": true, "hosts": [ { "address": "192.168.1.114", "port": 80, "mac": "a0:43:b0:5e:8b:e9", "isRFSupported": false, "isRM4": false } ], "accessories": [ { "name": "Gym Humidity", "type": "humiditySensor" }, { "name": "Gym temperature", "type": "temperatureSensor" }, { "name": "LG AC", "type": "fan", "data": { "off": "JgBgAQABKJMVNRU1Fg8VERQRFBIUERQ3FBEUNhU1FRAUEhMTFRAUEhQ2FBEVEBYQFBEVERQSFBEVEBQ2FRAVERU1FTYVNhQ2FRAVEBURFBEVERQRExMVEBUQFBIUERQRFREUERURFRAUAAEFFRAVERQRFBEVERURFDYVNhQRFBEUERURFBEUEhUQFREVEBUQFRAVERUQFBIVERUQFRAVERUQExIVERUQFRETExMSFBEVEBURFBETExUREhMVEBUQFRETEhYPFREVERUQFBEVERMSFRAVERUQFREVERQ2FDYWDxURFDYVNhQRFRAWAAEDFhAVEBQRFRAVERURFBEWEBQ2FBEVNRYQFBEUNxQRFhAVEBUQFRAVERQRFREVERQRFBEWDxURFBEVERITFREVEBUQFRESExU1FREUNhURFRAWEBQRFRAVEBYQFREUERURFjQWDxU1FjUVEBURFREUERQADQU", "fanspeed60": "JgBgAQABJ5MUNhQ2FBIVEBURFRAVERU1FBEWNBQ3ExIVERUQFREVEBczFDcTEhUQFhAVERUQFhAVEBU1FBEVERUQFREWEBUQFRAVEBYQFRAVERUQFREVEBYQFg8WDxUQFhAVERUQFRAVAAEFExIVEBUQFhAVEBURFTYTNxQRFRAWEBUQFREVEBURFREVEBUQFRAVERUQFREVEBYQFRAVEBUQFhAVEBURFREVEBUQFRAVERUQFhAVEBURFRAVEBUQFhAVEBURFREVEBURFRAVEBUQFREVEBURFREVEBU1FBEWEBUQFREVEBY1FDYUAAEFFBEVEBYQFRAVERUQFREVERU1ExIVEBUQFjUTEhYQFREVEBUQFRAVERUQFREVEBYQFRAVEBUQFhAVEBURFREVEBUQFRAVERY0FDYUNxQSFRAVEBUQFREVEBURFRAVERUQFTUUERURFTUUERY1FBIVEBQADQU", "fanspeed75": "JgBgAQABKJMVNRU1FRAVERQRFREVERU1Fg8WNBY0FREWDxURFREWDxU1FREWDxYPFREWEBQRFREVEBU1Fg8VERQ2FTUVNhU2FBEUERYPFREUERURFREVERkNFA8WEBYPFhAUERURFg8WAAEDFRAVERYPFg8VERYQFDYVNhUQFRAVEBURFg8VERYQFRAWDxUQFw8VEBYQFg8VERUQFREUERYPFRAXDxURFBEVERQRFBEVEBcPFRAVERURFBEVEBYPFREUERURFg8WEBYPFhAWDxQRFRAUEhUQFREWEBQ2FDYUERYPFDcVNRURFRAVAAEFFBEUERUQFREUERURFBEVERU1FRAVERYPFDYVERURFRAXDhURFg8UERYQFRAVERUQFREWDxUQFREWDxURFBIUERQRFg8VERQ2FTUVNhURFRAVEBURFBEVEBYQFhAUERcPEzcVEBUQFTYVEBU2FREUEBUADQU" } } ], "_bridge": { "username": "0E:A4:7D:31:99:E9", "port": 36361 } } ]