homebridge-broadlink-rm: [HOOBS] Tv is not displayed by Homebridge or HomeKit (Workarround in the comments)

Describe the bug I have now googled a lot and tried to find a solution to my problem, unfortunately without success. I try to add TV, but unfortunately it is not displayed anywhere. In the log there are also no errors, only a warning (Possibly that is the problem). Another device works without problems. Except for the 2 log lines it looks like the TV does not exist.

What I have already tried

  • I have used a minimal config to prevent errors in it.
  • I restarted Homebridge, HomePod, etc.
  • I have reinstalled the plugin
  • I have set up the bridge again

To Reproduce Steps to reproduce the behavior: Clean Homebridge install + my config

The interesting row (Probably): 18.7.2021, 04:03:50Broadlink Bridge WARNING platform configured a external accessory under the plugin name "[object Object]". However no loaded plugin could be found for the name.

18.7.2021, 04:03:34Broadlink Bridge starting
18.7.2021, 04:03:50Broadlink BridgeLoaded plugin 'homebridge-broadlink-rm-pro'
18.7.2021, 04:03:50Broadlink BridgeLoading 1 platforms...
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRM[INFO] Automatically discovering Broadlink RM devices.
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRMLeinwand Accessory Ready
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRM[DEBUG] Adding Accessory window-covering (undefined)
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRMtv Accessory Ready
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRM[DEBUG] Adding Accessory tv (tv)
18.7.2021, 04:03:50Broadlink Bridge WARNING platform configured a external accessory under the plugin name "[object Object]". However no loaded plugin could be found for the name.
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRM**************************************************************************************************************
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRMYou added TVs in your configuration!
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRMDue to a HomeKit limitation you need to add any TVs to the Home app by using the Add Accessory function.
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRMThere you'll find your TVs and you can use the same PIN as you using for this HomeBridge instance.
18.7.2021, 04:03:50Broadlink BridgeBroadlinkRM**************************************************************************************************************
18.7.2021, 04:03:51Broadlink BridgeBroadlinkRM[INFO] Listening for Broadlink devices on xxx.xxx.xxx.xx:37100 (UDP)
18.7.2021, 04:03:51Broadlink BridgeBridge is running on port 57826.
18.7.2021, 04:03:51Broadlink BridgeBroadlinkRM[DEBUG] (xxxxxxxxxx) Sending command:65 with payload: xxxxxxxxxxxxxxxxxxxxxxx
18.7.2021, 04:03:51Broadlink BridgeBroadlinkRM[INFO] Discovered Broadlink RM4 Pro (649b) at xxx.xxx.xxx.xx (xx:xx:xx:xx:xx:xx)

Config:

{
    "accessories": [],
    "platforms": [
        {
            "platform": "BroadlinkRM",
            "logLevel": "debug",
            "accessories": [
                {
                    "name": "Leinwand",
                    "type": "window-covering",
                    "totalDurationOpen": 30,
                    "totalDurationClose": 25,
                    "data": {
                        "open": [
                            {
                                "data": "HEX_CODE",
                                "sendCount": 2,
                                "interval": 0.5
                            }
                        ],
                        "close": [
                            {
                                "data": "HEX_CODE",
                                "sendCount": 2,
                                "interval": 0.5
                            }
                        ],
                        "stop": [
                            {
                                "data": "HEX_CODE",
                                "sendCount": 2,
                                "interval": 0.5
                            }
                        ]
                    }
                },
                {
                    "name": "Cinema",
                    "type": "tv",
                    "debug": true,
                    "data": {
                        "on": [
                            {
                                "data": "HEX_CODE",
                                "pause": 0.3
                            },
                            {
                                "data": "HEX_CODE"
                            }
                        ],
                        "off": [
                            {
                                "data": "HEX_CODE",
                                "pause": 0.3
                            },
                            {
                                "data": "HEX_CODE",
                                "pause": 0.3
                            },
                            {
                                "data": "HEX_CODE"
                            }
                        ],
                        "remote": {
                            "select": "HEX_CODE",
                            "arrowUp": "HEX_CODE",
                            "arrowDown": "HEX_CODE",
                            "arrowLeft": "HEX_CODE",
                            "arrowRight": "HEX_CODE",
                            "playPause": "HEX_CODE",
                            "rewind": "HEX_CODE",
                            "fastForward": "HEX_CODE",
                            "nextTrack": "HEX_CODE",
                            "previousTrack": "HEX_CODE",
                            "back": "HEX_CODE",
                            "exit": "HEX_CODE",
                            "info": "HEX_CODE"
                        },
                        "volume": {
                            "up": "HEX_CODE",
                            "down": "HEX_CODE"
                        },
                        "inputs": [
                            {
                                "name": "(1) Nintendo Switch",
                                "type": "other",
                                "data": [
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "sendCount": 1,
                                        "interval": 0.3
                                    }
                                ]
                            },
                            {
                                "name": "(2) Steam Link",
                                "type": "other",
                                "data": [
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "sendCount": 1,
                                        "interval": 0.3
                                    }
                                ]
                            },
                            {
                                "name": "(3) Nintendo Wii",
                                "type": "other",
                                "data": [
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "sendCount": 1,
                                        "interval": 0.3
                                    }
                                ]
                            },
                            {
                                "name": "(4) Home (Blu-Ray)",
                                "type": "other",
                                "data": [
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    }
                                ]
                            },
                            {
                                "name": "(5) AppleTV",
                                "type": "other",
                                "data": [
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "pause": 0.3
                                    },
                                    {
                                        "data": "HEX_CODE",
                                        "sendCount": 1,
                                        "interval": 0.3
                                    }
                                ]
                            }
                        ]
                    }
                }
            ]
        }
    ]
}

I would be very happy if someone has a solution for me 😃

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 30

Commits related to this issue

Most upvoted comments

I think I found out to upgrade the plugin - it’s a bit behind the scenes, but I think it works, at least.

if you can ssh on the hoobs, you can run the following command line:

sudo hbs bridge ls

which gave me:

-------------------------------------------------------------------------------------------------------------
hub                  | hub    | Hub                     | 80    | 031-45-154 | 08:3A:F0:99:32:23 |           
broadlinkrmprobridge | bridge | Broadlink Rm Pro Bridge | 52826 | 031-45-154 | 2A:3E:67:8D:3F:29 | bonjour   

so I then ran

sudo hbs plugin -b broadlinkrmprobridge ls

this gave me the following:

--------------------------------------------------------------------------------------------------------------------
homebridge-broadlink-rm-pro | 4.4.5   | /var/lib/hoobs/broadlinkrmprobridge/node_modules/homebridge-broadlink-rm-pro

then I cd /var/lib/hoobs/broadlinkrmprobridge

and run

sudo yarn add homebridge-broadlink-rm-pro@4.4.6-beta.2

which shows:

[1/4] Resolving packages...
[2/4] Fetching packages...
warning homebridge-broadlink-rm-pro@4.4.6-beta.2: The engine "homebridge" appears to be invalid.
warning fakegato-history@0.6.1: The engine "homebridge" appears to be invalid.
[3/4] Linking dependencies...
[4/4] Building fresh packages...
success Saved lockfile.
success Saved 1 new dependency.
info Direct dependencies
└─ homebridge-broadlink-rm-pro@4.4.6-beta.2
info All dependencies
└─ homebridge-broadlink-rm-pro@4.4.6-beta.2
Done in 6.18s.

A restart of the bridge should be enough to bring in the fix.

Even if you don’t do this, I’ll leave this here for anyone else who comes across it. It’ll be much easier when we’re on the proper 4.4.6 release.

You literally saved my whole house @PilchardFriendly Thanks!

I think I have a lead on this:

#https://github.com/hoobs-org/HOOBS/issues/1352#issuecomment-885024305

I’ll have a play and see if I can pass the right plugin identifier, rather than the platform as a whole.

Note that I only saw this in my logs because I clicked the right button:

23/07/2021, 1:07:24 amBroadlink Rm Pro BridgeOne of your plugins incorrectly registered an external accessory using the platform name ([object Object]) and not the plugin identifier. Please report this to the developer!
23/07/2021, 1:07:24 amBroadlink Rm Pro BridgeWARNINGA platform configured a external accessory under the plugin name "[object Object]". However no loaded plugin could be found for the name.```