Git Product home page Git Product logo

Comments (19)

arthur-moebios avatar arthur-moebios commented on July 3, 2024

Hi! Your config json is a bit confusing. The accessories key must be not under host configuration. Let me show you:

            "platform": "BroadlinkRM",
            "name": "BroadlinkRM4Pro",
            "hideScanFrequencyButton": true,
            "hideLearnButton": true,
            "hideWelcomeMessage": true,
            "hosts": [
                {
                    "address": "192.168.0.121",
                    "mac": "ec:0b:ae:84:fd:90",
                    "isRFSupported": true,
                    "isRM4": true
               }
            ],
            "accessories": [
                {
                    "name": "RF Scan",
                    "type": "learn-code",
                    "scanFrequency": false,
                    "host": "e8:16:56:1c:6d:a1"
                } ```

A tip top to use is in your router reserve the rm4 ip address, or remove the hosts section to plug-in auto discover the device. Just add the accessories 

Make sure your device is in v62092 firmware. The last version not work with this plug-in

from homebridge-broadlink-rm.

Moralkeule avatar Moralkeule commented on July 3, 2024

I still dont get the device

{
"platform": "homebridge-broadlink-rm-pro",
"name": "Broadlink RM",
"hideScanFrequencyButton": true,
"hideLearnButton": true,
"hideWelcomeMessage": true,
"hosts": [
{
"address": "192.168.178.77",
"mac": "e8:16:56:06:da:18",
"isRFSupported": true,
"isRM4": true
}
],
"accessories": [
{
"name": "RF Scan",
"type": "learn-code",
"scanFrequency": false,
"host": "e8:16:56:1c:6d:a1"
},
{
"name": "Klima",
"type": "fan",
"data": {
"on": "260060000001218f12131312121312141114121311141235133412351236123512361135123612131213113612141213123512121114121312361213113613351114113612351137120004e60001224813000bec0001224812000bee0001214812000d05000000000000",
"off": "260060000001218f12131312121312141114121311141235133412351236123512361135123612131213113612141213123512121114121312361213113613351114113612351137120004e60001224813000bec0001224812000bee0001214812000d05000000000000",
"speed": "260058000001239112131214121311141113121313131235123611371136123511371136123611141236111412351114121411141213121411141236111412361136113711361236110004ec0001244911000bf40001234811000d050000000000000000000000000000"
}
}
]
}

from homebridge-broadlink-rm.

arthur-moebios avatar arthur-moebios commented on July 3, 2024

What's the version of firmware?
Now I figure out you are trying to get this working on hoobs, did you mean homebridge right?

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

Hello. I am facing a similar issue. I am also using Hoobs. I have correctly configured the plugin with the host using the RM4 pro ip and Mac address. However when attempting to learn or scan I get

2/7/2024, 3:30:11 PMBroadlink Rm Pro BridgeBroadlink RM[INFO] Learn Code (Couldn't learn code, device not found) 2/7/2024, 3:30:14 PMBroadlink Rm Pro BridgeERROR[Broadlink Rm Pro Bridge 5D73@On] The write handler for the characteristic 'On' on the accessory 'Scan Frequency' was slow to respond!

Auto discovery fails for the RM4 Pro. However I also have a mini and the mini works without issue. After using the mini I completely removed the bridge and plug-in and then reinstalled from scratch before attempting the RM4 Pro.

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

Here is my config

    "accessories": [],
    "platforms": [
        {
            "platform": "BroadlinkRM",
            "name": "Broadlink RM",
            "hideScanFrequencyButton": false,
            "hideLearnButton": false,
            "hideWelcomeMessage": true,
            "hosts": [
                {
                    "address": "redacted",
                    "mac": "redacted",
                    "isRFSupported": true,
                    "isRM4": true
                }
            ]
        }
    ]
}```

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

The firmware on my RM4 Pro is V62093

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

Downgraded to V62092 using
http://124.71.130.238/RMBL4-62092-8720-BL-FC-3389.upd.bin

from homebridge-broadlink-rm.

arthur-moebios avatar arthur-moebios commented on July 3, 2024

Downgraded to V62092 using

http://124.71.130.238/RMBL4-62092-8720-BL-FC-3389.upd.bin

Great! Now remove from your config the hosts key. The plug-in will discover automatically the rm4

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

Was able to discover the device but RF learning fails.
I attempted to use python-broadlink and was able to control the device and extract the RF packet. But not sure how that translates to HEX to use in the config in this plugin.

The packet I got is

b'r\xc0v\x00\xc0\xc2\x04\x00\x1a\x0c\x18\x0e\x19\x1b\x0c\r\x18\x1a\r\x1a\r\x19\r\x19\r\x1a\n\x1c\x0b\x1b\x0c\r\x19\x1a\r\r\x19\x19\r\x1a\x0c\x19\x0e\x19\x0c\x1a\x0c\r\x19\x1a\r\x00\x01\xc1\r\r\x1a\x0c\x1a\x0c\x18\x1b\x0c\x0e\x18\x1a\r\x1a\x0c\x1a\x0c\r\x1a\x0c\x1a\r\x18\x0e\x18\x0f\x18\x1a\x0c\x0e\x18\x1a\r\x19\x0e\x19\r\x19\x0c\x1b\x0b\x1a\r\x19\x0c\x0e\x19\x19\r\r\x1a\x19\r\x19\x0b\x1b\x0c\x1b\x0c\x19\r\r\x18\x1b\x0c\x00\x05\xdc'

from homebridge-broadlink-rm.

arthur-moebios avatar arthur-moebios commented on July 3, 2024

Was able to discover the device but RF learning fails.

I attempted to use python-broadlink and was able to control the device and extract the RF packet. But not sure how that translates to HEX to use in the config in this plugin.

The packet I got is


b'r\xc0v\x00\xc0\xc2\x04\x00\x1a\x0c\x18\x0e\x19\x1b\x0c\r\x18\x1a\r\x1a\r\x19\r\x19\r\x1a\n\x1c\x0b\x1b\x0c\r\x19\x1a\r\r\x19\x19\r\x1a\x0c\x19\x0e\x19\x0c\x1a\x0c\r\x19\x1a\r\x00\x01\xc1\r\r\x1a\x0c\x1a\x0c\x18\x1b\x0c\x0e\x18\x1a\r\x1a\x0c\x1a\x0c\r\x1a\x0c\x1a\r\x18\x0e\x18\x0f\x18\x1a\x0c\x0e\x18\x1a\r\x19\x0e\x19\r\x19\x0c\x1b\x0b\x1a\r\x19\x0c\x0e\x19\x19\r\r\x1a\x19\r\x19\x0b\x1b\x0c\x1b\x0c\x19\r\r\x18\x1b\x0c\x00\x05\xdc'

Now remove all host key from accessories like the learn-code you added. Restart homebridge and try again

from homebridge-broadlink-rm.

arthur-moebios avatar arthur-moebios commented on July 3, 2024

Was able to discover the device but RF learning fails.

I attempted to use python-broadlink and was able to control the device and extract the RF packet. But not sure how that translates to HEX to use in the config in this plugin.

The packet I got is


b'r\xc0v\x00\xc0\xc2\x04\x00\x1a\x0c\x18\x0e\x19\x1b\x0c\r\x18\x1a\r\x1a\r\x19\r\x19\r\x1a\n\x1c\x0b\x1b\x0c\r\x19\x1a\r\r\x19\x19\r\x1a\x0c\x19\x0e\x19\x0c\x1a\x0c\r\x19\x1a\r\x00\x01\xc1\r\r\x1a\x0c\x1a\x0c\x18\x1b\x0c\x0e\x18\x1a\r\x1a\x0c\x1a\x0c\r\x1a\x0c\x1a\r\x18\x0e\x18\x0f\x18\x1a\x0c\x0e\x18\x1a\r\x19\x0e\x19\r\x19\x0c\x1b\x0b\x1a\r\x19\x0c\x0e\x19\x19\r\r\x1a\x19\r\x19\x0b\x1b\x0c\x1b\x0c\x19\r\r\x18\x1b\x0c\x00\x05\xdc'

I don't know how to convert too. All my codes I've extracted using the learn-code accessory

from homebridge-broadlink-rm.

arthur-moebios avatar arthur-moebios commented on July 3, 2024

Use
{ "name": "RF Scan", "type": "learn-code", "scanFrequency": false },

scanFrequency: true will extract the hex code from a ref controller instead of ir

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

Can you include this in a full example?

from homebridge-broadlink-rm.

arthur-moebios avatar arthur-moebios commented on July 3, 2024

Can you include this in a full example?

Use this as your config for Broadlink plug-in in homebridge

            "platform": "BroadlinkRM",
            "name": "Broadlink",
            "hideScanFrequencyButton": true,
            "hideLearnButton": true,
            "hideWelcomeMessage": true,
            "accessories": [
                { 
"name": "RF Scan", 
"type": "learn-code", 
"scanFrequency": false }
}


Then you restart homebridge. And notice a switch called "RF Scan" in home app

When you turn it on, will turn off automatically 

After turn it on, press your remote pointed to Broadlink rm4 and on homebridge ui log will appear a hex code for the ir 

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

I'm not doing ir. Only rf.

from homebridge-broadlink-rm.

arthur-moebios avatar arthur-moebios commented on July 3, 2024

In this case all you need is change scanFrequency to true in RF Scan accessory

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

Thanks for the explanation. I will try this tomorrow.

Also when I scanned with the app I only had success when I was able to manually set the frequency.

I am not sure if that is possible.

from homebridge-broadlink-rm.

brentleeper avatar brentleeper commented on July 3, 2024

Sorry for the delay. This does not work. The only way I can get this to work is by using the official app and even in the app it only works when I explicitly set the frequency that is listed in the FCC registration.

from homebridge-broadlink-rm.

arthur-moebios avatar arthur-moebios commented on July 3, 2024

Oh @brentleeper, that's sad

from homebridge-broadlink-rm.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.