Git Product home page Git Product logo

homebridge-broadlink-rm's Introduction

Homebridge Broadlink RM Pro

Introduction

Welcome to the Broadlink RM Mini and Broadlink RM Pro plugin for Homebridge.

This plugin allows you to control your RM Mini and RM Pro with HomeKit using the Home app and Siri.

Like this plugin?

If you like this plugin and want to show your support then please star the Github repo, or better yet; buy me a drink using Paypal.

Thank you!

Installation

This plugin can be added via the Web interface, or if you perfer the terminal: npm install -g homebridge-broadlink-rm-pro For more information, refer to the documentation.

Documentation

Documentation can be found here. If you have any trouble after reading through the information please raise an issue and we'll help out as best we can.

If the plugin is unable to discover your device, it's likely you've locked the device with the cloud so it no longer accepts local connections. In this case, follow these steps:

  1. Open the Broadlink app
  2. From the Home screen, tap on your Broadlink device
  3. Tap the ... in the top right
  4. Scroll down and toggle "Lock device" to Off
  5. Tap OK when prompted "Confirm to unlock the device"

This plugin should now be able to discover your device.

Thanks

Original: Thanks to @tattn (https://github.com/tattn/homebridge-rm-mini3), @PJCzx (https://github.com/PJCzx/homebridge-thermostat), @momodalo (https://github.com/momodalo/broadlinkjs), and @lprhodes (https://github.com/lprhodes/homebridge-broadlink-rm) whose time and effort got this started.

In this fork: Thanks to @kiwi-cam (https://github.com/kiwi-cam), @Cloudore (https://github.com/Cloudore) and @Faisalthe01 (https://github.com/Faisalthe01) for your work!

homebridge-broadlink-rm's People

Contributors

aceslick911 avatar alayshchen avatar alexanderbabel avatar aymericbaur avatar banboobee avatar dependabot[bot] avatar dnicolson avatar duyleekun avatar hypery2k avatar ixzzd avatar kiwi-cam avatar lprhodes avatar masterfordev avatar mfkrause avatar mikicof avatar nasudon avatar newt10 avatar pilchardfriendly avatar rileyev avatar smolsoftboi avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

homebridge-broadlink-rm's Issues

UnhandledPromiseRejectionWarning: Unhandled promise rejection.

Hi, I am using RM4 pro and got this warning when I tried to turn on my projector. Here is the warning message:

[8/18/2020, 21:54:27] [Broadlink RM] Epson Projector On setSwitchState: true (node:7775) UnhandledPromiseRejectionWarning: AssertionError [ERR_ASSERTION] [ERR_ASSERTION]: [ERROR]: Epson Projector On sendData (HEX value is missing) at module.exports (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/helpers/sendData.js:7:3) at SwitchAccessory.performRepeatSend (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/accessories/accessory.js:74:7) at /usr/local/lib/node_modules/homebridge-broadlink-rm-pro/accessories/accessory.js:55:20 at catchDelayCancelError (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/helpers/catchDelayCancelError.js:8:20) at SwitchAccessory.performSend (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/accessories/accessory.js:50:11) at SwitchAccessory.setSwitchState (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/accessories/switch.js:105:29) at SwitchAccessory.setCharacteristicValue (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/node_modules/homebridge-platform-helper/accessory.js:139:10) at On.emit (events.js:315:20) at On.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:60:38) at On.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:369:23) at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:951:36 at Array.forEach (<anonymous>:null:null) at Bridge.Accessory._this._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:819:18) at HAPServer.emit (events.js:315:20) at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:60:38) at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:731:23) at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:240:39) at IncomingMessage.emit (events.js:315:20) at endReadableNT (_stream_readable.js:1221:12) at processTicksAndRejections (internal/process/task_queues.js:84:21) (node:7775) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag--unhandled-rejections=strict(see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2) (node:7775) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.

And here is my config:

{ "name": "Broadlink RM", "platform": "BroadlinkRM", "hideScanFrequencyButton": true, "hideLearnButton": false, "hideWelcomeMessage": true, "accessories": [ { "name": "Epson Projector On", "type": "switch", "data": [ { "on": "2600d8000001299115351535151015101510151015101535153416101534160f1634160f1634160f160f160f160f160f1634160f160f1634163416341535153515101535153515101500053a00012991153515341610151015101510151015341634160f1634160f1634160f1634160f160f160f160f160f1634160f160f1634153515351535153515101535153515101500053a000127931436143614111411141114111411143613361412133613121337131213371312131213121312131213371312131213371337133713371337131213371337131213000d050000000000000000000000000000", "off": [ { "data": "2600d80000012990163415351510151015101510151015351535151015351510153416101534160f160f160f160f16101534160f160f1634163416341535153515101535153515101500053a0001299016341634160f160f160f160f160f16341634160f163415101634151015351510151015101510151015351510151015351535153515351535151015351534160f1600053a00012990163416341510151015101510160f163415351510153515101535151015351510151015101510151015351510151015351535153515341634160f16341634160f16000d050000000000000000000000000000", "sendCount": 2, "interval": 0.5 } ] } ] } ] }

Plus, it is weird that I cannot add the RM4 pro to the IHC app, but the home bridge can still find the device. The learn code works well.

Any possible for this?

Thanks a lot!

Sichang

Adding manual devices have incorrect device type

"hosts": [
    {
        "address": "192.0.2.22",
        "mac": "a7df24222222",
        "isRFSupported": false
    }

]

Autodiscovery finds RM Mini 4
14/09/2020, 7:22:29 pm [BroadlinkRM] �[35m[INFO]�[0m Discovered Broadlink RM Mini 4 (62bc) at 192.0.2.22 (a7:df:24:22:22:22)

Manual finds Broadlink RM2 instead (which looks to matter in the code)
14/09/2020, 8:06:53 pm [BroadlinkRM] �[35m[INFO]�[0m Discovered Broadlink RM2 (2712) at 192.0.2.22 (a7:df:24:22:22:22)

A side note for Mac addresses has to be specified without colons - if specified it displays as a7::d:f::24::2:2::22::2:2

I'd be fine with replacing "isRFSupported" with manually specifying the "type" instead - seems a lot more reliable.

Finds wrong model

Hey! I've been out for a while, haven't been automating too much in the last months, but this weekend i was back in business,

Decided to update this plugin because I'm expecting a couple broad link minis, however, with the one I already have (a PRO one with the temperature sensor), it seems that it now discovers it as a PRO+ (The version without the temperature sensor).

[8/29/2020, 22:37:23] [Broadlink RM] [INFO] Discovered Broadlink RM2 Pro Plus v2 (2787) at 10.0.1.20 (xx:xx:xx:xx:c9:92)

This made it so that the AC would be not responding, as the plugin could not find a temperature to attribute to the AC accessory, probably because its not trying to reach the sensor as it does not expect that model to have one, I have corrected the issue putting in the json the line:
"pseudoDeviceTemperature": 28,
But of course now I'm missing temperature readings and its stuck at 28, I might upgrade this one to the RM 4 Plus, with the temperature sensor cable, but wanted to expose this possible bug nonetheless, i tried searching where in the plug in the match happens, searched for "2787" and "Broadlink RM2 Pro Plus", didn't try to hard as I haven't had the time.

Best regards and thanks for the constant updates!

Volume up and down stay on for too long

The Broadlink seems to send a signal for a couple of seconds when used through home bridge. In most cases this is fine say for power or source buttons. However for volume this means it is turning my volume up or down by 8 which in the case of my AV box is quite a volume change.

For comparison I have added the AVR to the IHC app and when it sends volume controls it only sends very briefly changing volume by 1 not 8 so looks from a hardware point of view possible.

Is there any way to shorten the IR signal from the Broadlink via homebirdge?

Plugin Issue - No Response

@kiwi-cam

Don't know what happened, I think there's an issue with the latest update. Homekit accessories showing up as no response.

My setup

Homebridge Logs

┌────────────┐     
 │ 734-47-253 │     
 └────────────┘     
                    
[9/1/2020, 16:57:16] Homebridge is running on port 51155.
[9/1/2020, 16:57:16] [Broadlink RM] Air Conditioner Advanced getCurrentHeatingCoolingState: 0
[9/1/2020, 16:57:16] [Broadlink RM] Air Conditioner Advanced getTargetHeatingCoolingState: 0
[9/1/2020, 16:57:16] [Broadlink RM] TV On/Off Test getSwitchState: false
[9/1/2020, 16:57:17] [Broadlink RM] [INFO] Discovered Broadlink RM Mini (2737) at 192.168.1.114 
[9/1/2020, 16:57:17] [Broadlink RM] Air Conditioner Advanced monitorTemperature
[9/1/2020, 16:57:17] [Broadlink RM] Air Conditioner Advanced addTemperatureCallbackToQueue (requested temperature from device, waiting)
[9/1/2020, 16:57:18] [Broadlink RM] 
[9/1/2020, 16:57:18] [Broadlink RM] **************************************************************************************************************
[9/1/2020, 16:57:18] [Broadlink RM] ** Welcome to version 4.2.9 of the Homebridge Broadlink RM Plugin!
[9/1/2020, 16:57:18] [Broadlink RM] ** 
[9/1/2020, 16:57:18] [Broadlink RM] ** Find out what's in the latest release here: https://github.com/kiwi-cam/homebridge-broadlink-rm/blob/master/CHANGELOG.md
[9/1/2020, 16:57:18] [Broadlink RM] ** 
[9/1/2020, 16:57:18] [Broadlink RM] ** If you like this plugin then please star it on GitHub or better yet
[9/1/2020, 16:57:18] [Broadlink RM] ** buy me a drink using Paypal https://paypal.me/kiwicamRM.
[9/1/2020, 16:57:18] [Broadlink RM] **
[9/1/2020, 16:57:18] [Broadlink RM] ** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
[9/1/2020, 16:57:18] [Broadlink RM] **
[9/1/2020, 16:57:18] [Broadlink RM] **************************************************************************************************************
[9/1/2020, 16:57:18] [Broadlink RM] 
[9/1/2020, 16:57:19] [Broadlink RM] Air Conditioner Advanced getTargetHeatingCoolingState: 0
[9/1/2020, 16:57:19] [Broadlink RM] Air Conditioner Advanced getCurrentHeatingCoolingState: 0
[9/1/2020, 16:57:19] [Broadlink RM] Air Conditioner Advanced addTemperatureCallbackToQueue (requested temperature from device, waiting)
[9/1/2020, 16:57:19] [Broadlink RM] Air Conditioner Advanced getTargetTemperature: undefined
[9/1/2020, 16:57:19] [Broadlink RM] TV On/Off Test getSwitchState: false
[9/1/2020, 16:57:19] [Broadlink RM] Scan Frequency getSwitchState: undefined
[9/1/2020, 16:57:19] [Broadlink RM] Switch Test getSwitchState: undefined
[9/1/2020, 16:57:19] [Broadlink RM] Fan Test getFanSpeed: undefined
[9/1/2020, 16:57:19] [Broadlink RM] Fan Test getRotationDirection: undefined
[9/1/2020, 16:57:19] [Broadlink RM] Fan Test getSwingMode: undefined
[9/1/2020, 16:57:19] [Broadlink RM] Fan Test getSwitchState: undefined
[9/1/2020, 16:57:19] [Broadlink RM] Learn getSwitchState: undefined
[9/1/2020, 16:57:27] [Broadlink RM] Air Conditioner Advanced addTemperatureCallbackToQueue (requested temperature from device, waiting)
[9/1/2020, 16:57:37] [Broadlink RM] Air Conditioner Advanced addTemperatureCallbackToQueue (requested temperature from device, waiting)
[9/1/2020,

Config

{
    "bridge": {
        "name": "Homebridge ",
        "username": "",
        "port": 51155,
        "pin": "734-47-253"
    },
    "hosts": [
        {
            "address": "192.168.1.104",
            "mac": "",
            "isRFSupported": true
        }
    ],
    "platforms": [
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        },
        {
            "platform": "BroadlinkRM",
            "name": "Broadlink RM",
            "accessories": [
                {
                    "name": "Air Conditioner Advanced",
                    "type": "air-conditioner",
                    "allowResend": true,
                    "preventResendHex": true,
                    "ignoreTemperatureWhenOff": true,
                    "replaceAutoMode": "cool",
                    "autoSwitch": "A/C Auto Switch",
                    "hideWelcomeMessage": true,
                    "maxTemperature": 24,
                    "temperatureUpdateFrequency": 10,
                    "defaultCoolTemperature": 13,
                    "defaultHeatlTemperature": 24,
                    "data": {
                        "off": "26008a0093530b0d0b200b200d0c0b1f0c0c0c0d0b0d0b1f0c0c0c0c0c0c0b0d0b0d0b0d0d1e0d0c0b0c0c0c0c0d0b0d0b0d0b0c0c0c0c0c0b0d0b0d0b200d1e0d0c0c0c0c0c0c0c0c0c0c0c0c0c0b0d0b0e0a0d0d0c0b0c0c0d0b0c0c0d0b0c0c0c0c0c0c0c0c1f0b200b0d0b0d0d0c0c1e0c0c0b0d0b200d0c0b0c0c1f0c1f0c1f0c1f0c0c0c00029095000d050000000000000000000000000000",
                        "temperature10": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature11": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature12": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature13": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature14": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature15": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature16": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature17": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature18": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature19": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature20": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature21": {
                            "pseudo-mode": "cool",
                            "data": "HEX"
                        },
                        "temperature22": {
                            "pseudo-mode": "cool",
                            "data": "HEX "
                        },
                        "temperature23": {
                            "pseudo-mode": "cool",
                            "data": "HEX "
                        },
                        "temperature24": {
                            "pseudo-mode": "cool",
                            "data": "HEX "
                        }
                    }
                },
                {
                    "name": "Switch Test",
                    "type": "switch"
                },
                {
                    "name": "Fan Test",
                    "type": "fan",
                    "data": {
                        "on": "2600500000012...",
                        "off": "2600500000012...",
                        "swingToggle": "2600500000012...",
                        "fanSpeed10": "2600500000012...",
                        "fanSpeed20": "2600500000012...",
                        "fanSpeed30": "2600500000012...",
                        "fanSpeed40": "2600500000012...",
                        "fanSpeed50": "2600500000012...",
                        "fanSpeed60": "2600500000012...",
                        "fanSpeed70": "2600500000012...",
                        "fanSpeed80": "2600500000012...",
                        "fanSpeed90": "2600500000012...",
                        "fanSpeed100": "2600500000012..."
                    }
                },
                {
                    "name": "TV On/Off Test",
                    "type": "switch",
                    "data": {
                        "on": "HEX",
                        "off": "HEX"
                    }
                }
            ]
        }
    ],
    "accessories": []
}

Broadlink Questions for Window Coverings

Hey @kiwi-cam , I have had my Broadlink RM Pro Plus for a few years now controlling a number of devices; but just recently I have installed 6 RF roller blind motors. I was always under the impression the Broadlink was able to send a bunch of commands at once and that it always was, but have noticed my 6 motors (all in the same room, so is noticeable) do not all receive their commands at the same time; even if I fiddle with the config command 'initialDelay' for them, it still does not help. Does the Broadlink send only a certain amount of commands at once (have a limit?) or does it send them all one after the other as quick as it can?

Multiple tv’s with control center remotes

Is it possible to have 2 separate tv’s with control center remotes in the same platform? I tried adding another one and it replaced the original rather than adding on. Also wondering what the available types of accessories Besides tv, switch and ac were possible. Thanks for your time!

Pronto IR Codes Issue

All was working great until yesterday, my broadlink IR devices stoped working and it seem that the plugin isn't able to read Pronto IR, I'm getting the following error. It seem to work OK on normal hex codes.

[8/31/2020, 19:07:26] [Broadlink RM] Air Conditioner Advanced getCurrentHeatingCoolingState: 2
[8/31/2020, 19:07:26] [Broadlink RM] Air Conditioner Advanced getTargetTemperature: 18
[8/31/2020, 19:07:26] [Broadlink RM] Air Conditioner Advanced getTargetHeatingCoolingState: 2
[8/31/2020, 19:07:26] [Broadlink RM] Air Conditioner Advanced getCurrentTemperature (using pseudoDeviceTemperature 26 from config)
[8/31/2020, 19:07:26] [Broadlink RM] TV On/Off getSwitchState: false
[8/31/2020, 19:07:27] [Broadlink RM] 
[8/31/2020, 19:07:27] [Broadlink RM] **************************************************************************************************************
[8/31/2020, 19:07:27] [Broadlink RM] ** Welcome to version 4.0.5 of the Homebridge Broadlink RM Plugin!
[8/31/2020, 19:07:27] [Broadlink RM] ** 
[8/31/2020, 19:07:27] [Broadlink RM] ** Find out what's in the latest release here: https://github.com/lprhodes/homebridge-broadlink-rm/releases
[8/31/2020, 19:07:27] [Broadlink RM] ** 
[8/31/2020, 19:07:27] [Broadlink RM] ** If you like this plugin then please star it on GitHub or better yet
[8/31/2020, 19:07:27] [Broadlink RM] ** buy me a drink using Paypal https://paypal.me/lprhodes or crypto https://goo.gl/bEn1RW.
[8/31/2020, 19:07:27] [Broadlink RM] ** 
[8/31/2020, 19:07:27] [Broadlink RM] ** Keep up to date with this plugin along with everything HomeKit and homebridge
[8/31/2020, 19:07:27] [Broadlink RM] ** by signing up to my newsletter at http://workswith.io
[8/31/2020, 19:07:27] [Broadlink RM] **
[8/31/2020, 19:07:27] [Broadlink RM] ** You can disable this message by adding "hideWelcomeMessage": true to the config (see config-sample.json).
[8/31/2020, 19:07:27] [Broadlink RM] **
[8/31/2020, 19:07:27] [Broadlink RM] **************************************************************************************************************
[8/31/2020, 19:07:27] [Broadlink RM] 
[8/31/2020, 19:21:20] [Broadlink RM] TV On/Off setSwitchState: true
(node:6563) UnhandledPromiseRejectionWarning: TypeError: log is not a function
    at prontoToLIRC (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/helpers/convertProntoCode.js:16:12)
    at convertProntoToBroadlink (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/helpers/convertProntoCode.js:68:22)
    at sendData (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/helpers/sendData.js:16:15)
    at SwitchAccessory.performSend (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/accessories/accessory.js:45:7)
    at SwitchAccessory.setSwitchState (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/accessories/switch.js:105:29)
    at SwitchAccessory.setCharacteristicValue (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/node_modules/homebridge-platform-helper/accessory.js:139:10)
    at On.emit (events.js:315:20)
    at On.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:60:38)
    at On.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:369:23)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:951:36
    at Array.forEach (<anonymous>:null:null)
    at Bridge.Accessory._this._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:819:18)
    at HAPServer.emit (events.js:315:20)
    at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:60:38)
    at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:731:23)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:240:39)
    at IncomingMessage.emit (events.js:315:20)
    at endReadableNT (_stream_readable.js:1221:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

(node:6563) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 1)
(node:6563) [DEP0018] DeprecationWarning: Unhandled promise rejections are deprecated. In the future, promise rejections that are not handled will terminate the Node.js process with a non-zero exit code.
[8/31/2020, 19:21:24] [Broadlink RM] TV On/Off setSwitchState: false
(node:6563) UnhandledPromiseRejectionWarning: TypeError: log is not a function
    at prontoToLIRC (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/helpers/convertProntoCode.js:16:12)
    at convertProntoToBroadlink (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/helpers/convertProntoCode.js:68:22)
    at sendData (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/helpers/sendData.js:16:15)
    at SwitchAccessory.performSend (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/accessories/accessory.js:45:7)
    at SwitchAccessory.setSwitchState (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/accessories/switch.js:105:29)
    at SwitchAccessory.setCharacteristicValue (/usr/local/lib/node_modules/homebridge-broadlink-rm-tv/node_modules/homebridge-platform-helper/accessory.js:139:10)
    at On.emit (events.js:315:20)
    at On.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:60:38)
    at On.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:369:23)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:951:36
    at Array.forEach (<anonymous>:null:null)
    at Bridge.Accessory._this._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:819:18)
    at HAPServer.emit (events.js:315:20)
    at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:60:38)
    at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:731:23)
    at IncomingMessage.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:240:39)
    at IncomingMessage.emit (events.js:315:20)
    at endReadableNT (_stream_readable.js:1221:12)
    at processTicksAndRejections (internal/process/task_queues.js:84:21)

(node:6563) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)

Config

 {
                    "name": "TV On/Off",
                    "type": "switch",
                    "data": {
                        "on": "0000 006D 0000 0043 00B3 0064 000F 000F 000F 0025 000F 0025 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 0025 000F 0025 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 0025 000F 0025 000F 0025 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 0025 000F 0025 000F 000F 000F 000F 000F 0300 00B3 0219",
                        "off": "0000 006D 0000 0043 00B3 0064 000F 000F 000F 0025 000F 0025 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 0025 000F 0025 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 000F 0025 000F 0025 000F 0025 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 0025 000F 000F 000F 000F 000F 000F 000F 0025 000F 0025 000F 000F 000F 000F 000F 0300 00B3 0219"
                }

Learn Code not working.

Hi, I having issue with the Learn code. Device was successfully discovered but when I tap on Learn Code noting happen. I Got Learn Code time out error. The light on the RM also not blinking.Any suggestions? I tried both RM4C and RM4 Pro.

Unknown broadlink device '27d3'

[BroadlinkRM] We've discovered an unknown Broadlink device. This likely won't cause any issues.
Please raise an issue in the GitHub repository (https://github.com/lprhodes/homebridge-broadlink-rm/issues) with details of the type of device and its device type code: "27d3". The device is connected to your network

This is just a RM Mini 3. I bought a South Korea version of it so that's probably why it has a different device id?

"Device already on"

setSwitchState: already 1 (no data sent - B)

Is it possible to have an option to ignore the switch state and send data anyway? This would be very useful for non network connected devices like an old tv that could have been turned off in the meantime without the state being updated (i.e. using the regular remote).

edit: already found out I just didn't do my research. found the option! "allowResend" did it for me.

Remote buttons don't work/show up, no volume slider

Thanks for your work.
I encountered a problem with my configuration for controlling my AppleTv/Beamer (one virtual device in HomeKit for two physical devices). I configured the arrow keys etc, but they don't show up in the HomeKit UI. Also, no volume sliders - I read you're supposed to use the iPhone's volume rocker, but where/how exactly?
The config works otherwise, I can turn on/off the beamer.

The problem happens with the "Beamer" device, the amplifier works fine:

Here is my config:
{
    "bridge": {
        "name": "Homebridge C38F",
        "username": "xxxx",
        "port": 51017,
        "pin": "xxx"
    },
    "accessories": [],
    "platforms": [
        {
            "platform": "BroadlinkRM",
            "name": "Broadlink RM",
            "hideScanFrequencyButton": true,
            "hideLearnButton": true,
            "hideWelcomeMessage": true,
            "accessories": [
                {
                    "name": "Beamer",
                    "type": "tv",
                    "data": {
                        "on": [
                            {
                                "data": "260058000001259213361313121313121312131213121312131213371237133713361337133613371312131213121312131213121337131213371336133713361337133713121336130005200001264813000c3c0001264813000d050000000000000000000000000000",
                                "pause": 1
                            },
                            {
                                "data": "2600cc0071380f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f2a0e0e0f0d0f2a0f290f0e0e0e0f0d0f0d0f0e0e0e0e0e0f0d0f2a0e2a0f0e0e2a0f0d0f2a0f0d0f2a0e2a0f2a0e0e0f0d0f0d0f2a0f290f00096271380f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e2a0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f0e0e0e0e2a0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f2a0f0d0f2a0e0e0f290f0e0e2a0f2a0e2a0f0e0e0e0e0e0f290f2a0f000d0500000000000000000000",
                                "pause": 8
                            },
                            {
                                "data": "2600600000012495123911151115111511141115111511151114113a113a1139113a1139113a113a1114111511151139113a111511151114113a113a1139111511151139113a113a110005070001244b11000c480001234c10000c480001244b10000d05000000000000",
                                "pause": 0.5
                            },
                            {
                                "data": "260068000001249613371313131313131312131313131313131213381337143713381337133714381312131313131313133713131338131214371338133713381313133713131338130005050001234c12000c460001234c11000c470001244b12000c460001244b11000d050000000000000000000000000000",
                                "pause": 1
                            },
                            {
                                "data": "260068000001249613371313131313131312131313131313131213381337143713381337133714381312131313131313133713131338131214371338133713381313133713131338130005050001234c12000c460001234c11000c470001244b12000c460001244b11000d050000000000000000000000000000",
                                "pause": 0.5
                            },
                            {
                                "data": "2600600000012297113a11151115111411151115111511141115113a1139113a113a1139113a1139113a113a11141115113a111511141115111510161139113a1115103a113a1139110005080001224d10000c480001224d10000c480001224d10000d05000000000000"
                            }
                        ],
                        "off": "260058000001259213361313121313121312131213121312131213371237133713361337133613371312131213121312131213121337131213371336133713361337133713121336130005200001264813000c3c0001264813000d050000000000000000000000000000",
                        "volume": {
                            "up": "260068000001249113361336133613111311141113111336131114111336133514351435133613121311131113121335141113111411133613351435133613121335143513361312130004e90001244913000c2a0001244913000c2a0001244913000c2a0001244914000d050000000000000000000000000000",
                            "down": "260068000001239213351435133613121311131114111336131113111435133613361336133613111311141113361336131113111411133613351435141113111336133613361311130004ea0001244913000c2a0001244913000c2a0001244913000c2a0001244913000d050000000000000000000000000000"
                        },
                        "remote": {
                            "arrowUp": "2600cc0071380f0d0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e2a0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f2a0f2a0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e2a0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f290f0e0e0e0f290f0e0e0e0f2a0e00096271380f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f0e0e0e0e2a0f2a0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f0e0e0e0e0e0f0d0f0d0f0e0e2a0f2a0e0e0f0d0f2a0e0e0f0d0f2a0e000d0500000000000000000000",
                            "arrowDown": "2600cc0071390e0e0f290f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f2a0e0e0f0d0f2a0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f290f2a0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e2a0f0d0f0e0e2a0f0d0f0e0e2a0f00096172380f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f2a0f290f0e0e0e0f0d0f0d0f0e0e0e0e0e0f2a0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f290f0e0e0e0f290f0e0e0e0f290f000d0500000000000000000000",
                            "arrowLeft": "2600cc0071380f0d0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0d0f2a0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f2a0f290f0e0e0e0f0d0f0d0f0e0e0e0f0d0f2a0e0e0f290f0e0e0e0f0d0f0d0f0e0e0e0f0d0f2a0e0e0f290f0e0e0e0f290f00096271380f0e0e2a0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0d0f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e2a0f0d0f0e0e2a0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f2a0e0e0f0d0f2a0e000d0500000000000000000000",
                            "arrowRight": "2600cc0071380f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e2a0f0e0e0e0f0d0f0d0f0e0e0e0e2a0f0e0e0e0e2a0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f2a0e0e0e0e0f0d0f0e0e0e0e2a0f0e0e2a0f0d0f2a0f0d0f0d0f2a0f00096171390e0e0f290f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e0e0f2a0e0e0e0e0f0d0f0e0e0e0e0e0f2a0e0e0e0e0f2a0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e0e0f0d0f2a0e0e0f0d0f0e0e0e0e0e0f290f0e0e2a0f0e0e2a0f0d0f0e0e2a0f000d0500000000000000000000",
                            "back": "2600cc0071380f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f2a0e0e0f0d0f2a0f290f0e0e0e0f0d0f0d0f0e0e0e0e0e0f0d0f2a0e2a0f0e0e2a0f0d0f2a0f0d0f2a0e2a0f2a0e0e0f0d0f0d0f2a0f290f00096271380f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e2a0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f0e0e0e0e2a0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f2a0f0d0f2a0e0e0f290f0e0e2a0f2a0e2a0f0e0e0e0e0e0f290f2a0f000d0500000000000000000000",
                            "playPause": "2600cc0071380f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f2a0e0e0f0d0f2a0f0d0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f290f2a0f0d0f0e0e0e0e0e0f0d0f0e0e2a0f2a0e0e0e2a0f0e0e0e0e2a0f00096271380f0d0f2a0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e2a0f0d0f0e0e2a0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f2a0e2a0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f2a0f0d0f2a0e0e0f0d0f2a0e000d0500000000000000000000",
                            "select": "2600cc0070390e0e0e2b0e0e0e0f0d0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d2b0e0e0e0f0d0f0d0f0e0e0e0f0d2b0e0e0e0f0d2b0e2b0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e2b0d2b0e0e0e2b0d0f0e2b0d0f0d0f0e2b0d0f0d0f0e2b0d2b0e0009636f3a0e0e0e2b0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0d0f0e0f0d2b0e0e0e0f0d0f0d0f0d0f0e0f0d2b0d0f0e0e0e2b0e2b0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e0e0f0c100d2b0e2b0d0f0e2b0d0f0e2b0d0f0d0f0e2b0d0f0d0f0e2b0d2b0e000d0500000000000000000000",
                            "rewind": "2600320171380f0d0f2a0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e2a0f0d0f0e0e0e0e0e0f0d0f0d0f2a0f0d0f0d0f2a0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f2a0f0d0f0d0f2a0f00096171390e0e0f290f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f2a0e0e0f0d0f2a0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e2a0f0e0e0e0f0d0f0d0f0e0e0e0e0e0f2a0e0e0e0e0f2a0e0e0e0e0f2a0e00096271380f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0e2a0f0e0e0e0e0e0f0d0f0e0e0e0e2a0f0e0e0e0e2a0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0d0f2a0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e2a0f0d0f0e0e2a0f0d0f0e0e2a0f000d0500000000",
                            "fastForward": "2600320171380f0d0f2a0e0e0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0d0f2a0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f0d0f0d0f2a0f0d0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f290f2a0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f290f0e0e0e0f290f0e0e0e0f290f00096271380f0e0e2a0f0d0f0e0e0e0e0e0f0d0f0e0e0e0e0e0f0d0f0d0f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e2a0f0d0f0e0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e0e0f0d0f2a0e2a0f0d0f0e0e0e0f0d0f0d0f0e0e2a0f2a0e0e0f0d0f2a0e0e0f0d0f2a0e00096271380f0e0e2a0f0e0e0e0f0d0f0d0f0e0e0e0e0e0f0d0f0d0f0e0e0e0f290f0e0e0e0f0d0f0d0f0e0e0e0f290f0e0e0e0f290f0e0e0e0f0d0f0d0f0e0e0e0f0d0f0d0f2a0f290f0e0e0e0f0d0f0d0f0e0e0e0f290f2a0f0d0f0d0f2a0f0d0f0d0f2a0f000d0500000000"
                        }
                    }
                },
                {
                    "name": "NAD Amplifier",
                    "type": "tv",
                    "data": {
                        "on": "b1c02a030a9f06000400018f040003ac04110c0003ae0a070a270a260a0709070a270907092809070928090709270a0709270a2709080927090809270908090709280907092809270908092709080907092709080928092709080927090809270908092709070a2709080828090709280908082809080927090809070928090709280927090808080927090809270928090709270a0709000122090709270a2709070a070927090809270908092709080927090709280927090909270907092809070908092709080927092709080927090809070928090709280928090709270a070928090709270a0709270908092709080927090809270908092809070908092709070a270927090809070928090709280927090809270908080001220907092809270908090709280907092809070928090709270a0709270a2709080927090809270908090709270a070928082809080927090808080927090809280927090809270908092709080927090709280907092809070928090709280908092709080907092709080928082809070908092709080927092809070927090809000121090809270928090709070a2709070a2709070a270907092809070928092709080927090809270a0709080828090709280927090809270908090709280907092809270908092709080927090809270908092709080927090809270908082809080927090809070928090709280927090808080927090809280828090709280907090001210a070928092709070a07092709080927090809270908082809070a270927090809280907092809070908092709070928092709080927090809070928090709280928090709270a0709270a0709270908092709080927090809270908092709080927090809070928090709280927090809070928090709280927090709280907090001220907092809270907090809270908092709080927090809270908082809270908092809070928090709080828090809270927090809270908090709280907092809270a07092808080927090809270908092709080927090809270908092709080927090809070928090709280927090809070928090709270a27090709280907090005dc000000000000000000000000",
                        "off": "b1c02a03ca9d060004050704041a0a0709270a2709040c0809260b0709270a070927090809270908092709270a08092709070a270907090809270908092709270a0709270a070908092709070929092709070a2709070a270907092809070928090709270a0709270a0709270a0809270907090809270a0709270908092709080927090809270927090809270a07090001210a0709270a2709070a060a2709070a2709070a2709070928090709280927090809270a0709270a0709080927090709280927090809270908090709280907092809270a0709270a0709270a07092709080927090809270908092709080927090809270a070907092809070a2709070928090709280907092809270908092709080900012109070a2709270a0709070a2709070928090709270a0709270a0709270a2709080927090809270908090709280907092809270908092709070a0709270a070928092709080927090809270908092709070a270908092709070a2709080927090809270908090709280907092809070928090709270a0709270a2709070a2709070900012209070928092709070a0709270a0709270a0709270a0709270a060a2709270a08092709070a2709070a0709270a0709270928090709270a070908092709070a2809270908092709070a2709070a27090709270a0709270a0709270a0709270a0809270907090809270a07092709080927090809270908092709270a0709270908090001210a0709270a260a0709070a2709070a2709070a2709070a2709070a270927090809270a0709270a0709070a2709070a270927090809270908090709280907092809270a0709270a0709270a07092709080927090809270908092709080927090809270a07090709280907092809070928090709280907092809270908092709070a0001210907092809270908090709270a0709270a0709270a0709270a0709270a260a08092709070a270908090709270a0709270928090709270a070908092709070a2809270908092709070a270907092809070a260a0709270a0709270a07092709080a2709070a070927090809270908092709080927090709280927090809270908090005db070004a5040005dc000000000000000000000000",
                        "volume": {
                            "up": "260068000001249113361336133613111311141113111336131114111336133514351435133613121311131113121335141113111411133613351435133613121335143513361312130004e90001244913000c2a0001244913000c2a0001244913000c2a0001244914000d050000000000000000000000000000",
                            "down": "260068000001239213351435133613121311131114111336131113111435133613361336133613111311141113361336131113111411133613351435141113111336133613361311130004ea0001244913000c2a0001244913000c2a0001244913000c2a0001244913000d050000000000000000000000000000"
                        },
                        "inputs": [
                            {
                                "name": "Macbook",
                                "type": "other",
                                "data": "2600700000011f9412371139123711141015111410141237111412131237123811381139113811141138111411141214101410141213113811141138113911381139113812381212120004f40001264912000c450001234c11000c460001234c12000c450001244b12000c450001254a12000d05000000000000"
                            },
                            {
                                "name": "PS3",
                                "type": "other",
                                "data": "260068000001199512381237123812131113121312131138121311141138113912371238103912131113123812131014121312131237103a11381213123712381138123812121213120004f40001244b12000c440001254a12000c450001254a12000c440001264a11000d050000000000000000000000000000"
                            },
                            {
                                "name": "Apple Tv",
                                "type": "other",
                                "data": "2600700000011b9412381237123812131113121312131237121312131237123811381139113811141237111411381213121312131113123812121139121311381237123812371213110004f50001254a12000c450001254a12000c440001254a12000c450001264912000c450001244b12000d05000000000000"
                            },
                            {
                                "name": "Gitarren AMP",
                                "type": "other",
                                "data": "2600600000011c9412381237123812121213121312121238121311131238123711391237113911131238113812131237123811141213103911141212113912121213123812371213120004f40001244b10000c470001234c11000c450001254b10000d05000000000000"
                            }
                        ]
                    }
                },
                {
                    "name": "Standlicht",
                    "type": "switch",
                    "data": {
                        "on": "b1c02203329f060004130e090a260a270908090709270a0709280907092809070928090808280928090809270908092709080907092809080927092809070928090809070928090709280928090709280908092709070a270908092709080927090809270908092808090927090809070928090709280927090809270a070928090709280907092809070900012309070928092709080907092809070a270908092709070a27090809270a27090809270908092809070908092709080927092809070a27090809070928090709280a270908092709080927090809270908092709080927090809270a0709270a0809270908090709280908082809270a07092809070928090709280907092809070a00012209070928092709080907092809070a2709070a2709080927090809270a27090809270a07092809070908092709080927092809070928090809070928090709280a27090709280908092709080927090809270908092709080927090809270909092709080907092809070928092709080927090809270a070928090709280907090001220a07092809270908090709280907092809070a2709070a270908092709280908092709080927090809070928090809270928090709280907090809270a07092809280907092809070928090709280908092709070a270908092709080927090809280907090809280808092809270908092709080927090809270908092709080900012209080927092809070a0709270a07092809070928090709280907092809270909092709070a27090809070928090709280927090809270a07090809270908092809270908092709080927090809270a0709270a07092809070928090709280908092709080908082809070a2709280907092809080927090709280908092709080900012209070928092709080907092809070a27090709280908092709080927092809080927090809270a0709070a2709080927092809070a2709070908092809070928092809070928090709280908092709080828090809270908092709080927090809280908090709270a070928092709080927090809270908092709080927090809000599040005dc00000000",
                        "off": "b0c02e03689b0600040004380908092709280907090809270908092709080927090809270a07092809270908092808080928080809080927090809270928090709280808090808290808092809270908092808080928080809270908092808080928090709280808092809080927090809070928090709280907092809270908092808080927090809270908090001210a0709280927090809080828090709280907092809080927090808280928090809270908092709080907092809070928092709080927090809070928090709290828090809270908092709080927090809270908092709080927090809270908092809070a070927090809270908092709280908092709070928090808280907090001220908092808280908080809280808092809070928080809280907092809270908092808080928090709080927090808280928090709270a070908092808080928092709080928080809280808092808080928080809280907092808080928080909270908080809280907092809070928092709080927090809270908092709080900012209070928092709080907092809070928090709280907092809080927092709090927090809270908090709280808092809270908092709080808092809070929081b08040b070a2709070928090809260a0709280908082809080828090808280908092808080908082809080828090808280906061c08080928080809280907092808080900012209080828092808080908092709080927090808280908082809080828092809080a040b04041109080927090809070928090709280927090809270908090808280907092909270908092709080828090808280908092709080927090809270908092709080928080809080927090809270908092709280908082808080928090808280908080001220908092709280808090808290808092808080927090809270908090f061209280809092709080928080809070928090808280928080809280808090808280908092808280908092709080927090809270908092709070a140410090808280908092709080928090709080927090809280808092709280907092809080828090709280908088e110005dc0000000000000000"
                    }
                },
                {
                    "name": "Neon",
                    "type": "switch",
                    "data": {
                        "on": "b1c02003929e06000a0709270a2709070a0709270a0709270908092709080927090809270928090809270908092709080907092809070928092709080927090809070928090709280927090809270908092709080927090809270908092709080927090809270909092709070a07092709080927092809070928090709080927092809070928090709000122090709280927090809070928090709280907092809070928090709280927090809270a0709270a07090809270907092809270a0709270908090709280907092909270908082809080828090809270907092809070928090709280907092809080927090809070928090709280927090809270908090709280927090809270908090001210908092709270a0709070a2709070a270908092709070a270907092809270a080927090709280907090809280907092709280907092809070908092709080928092709080927090809270908092709080927090809270908092709080927090809270a0709080927090709280927090809270908090709280927090809270908090001210a0709270a2709070a0709270a070927090809270a0709270908092709280908092709080927090809070928090709280927090809270908090709270908092809270a0709270a070927090809270908092709080927090809270908092709080928090709080927090809270928090709280907090809270928080809270a070900012209070928092709070a070928090709270a0709270a0709270a07092709280908092709080927090809070928090709280927090809270908090709280907092809270a0709270a0709270908092709080927090809270908092709080927090908280907090809270908092709280907092809070908092709270908092709080900012209070928092709070a0709270a070a27090709270a0709270a07092809270908092709080927090809070928090709280927090809270908090709280907092809270a0709270a070928090709270908092709080927090809270908092709080928090709080927090809270927090809270a070908082809270a070927090809000534040005dc000000000000",
                        "off": "b0c01803cc9b060009070a260a07092809270909082809070928090709080927090808280928090709270a070908082809070929092709070a270908082809080804061e09070928090709280907092808080928090809270908090709280808092808080928092709070908092709180b040c0709270a07090001220907092809270908090709270908092809070928080809270908092709280908092709080927090809070928090709280828090809270908080809270a0709090619092709080927090809260a0809270908092709080927090809270908092709080927090809070928090709280907092809270908090709280927090809270907098b049509070928092709080907092809070928090709280907092809070918040e092709080927090809270908090808280908082809270908092709080907092809070928092809070928090709280808092808080927090809270908092709080927090809280907090809270908092709080927092709080907092809270908092709080900012109080927092809070908092709080828090809270908082809070928092709090828090709280907090809270908092709260a080927090809070a270907092909270908092709070928090709270a070a2709070928080809270908092709080a270908080809270a0709270908092709270a07090809270928080809270908090001220907092709280907090809270908092709080927090809270908092709270909092709080828090709080927090809270928090709280907090809270908082909270908092709070a2709080828090808280907092809070928090709270909092709080907092809070927090809260b270907090809270928090709280808090001220907092809270908080809270a07092709080927090809270908092709280908092709070a27090808080928080809270928090709240d0709080927090808290927090809270908092709080927090809270907092809070928090709280809092709080907092809070928090709280828090808080927091b0706090709270908090002b30479040005dc0000000000000000000000000000"
                    }
                },
                {
                    "name": "Globus",
                    "type": "switch",
                    "data": {
                        "on": "b1c03203849d060009040804091104060504070002750b060a270a260a070a060a2709070a270907092809070a2709070928092709080928090709270a070908092709070928092709080927090809070928090709280a2709070928090709270a070927090809270a0709270908092709080927090809270a07090809270908092709270a0709070a2709270a0709270908092709080900012109070a2709270a0709070a2709070a2709070a2709070928090709280927090809270a07092809070908092709070a2709260a0809270908090709280907092809280907092809070928090709270a0709270a0709270a07092709080927090809280907090809270908092709270a0709070a27092709080927090809270908090001210908092709270a0709070a2709070a2709070a2709070928090709280927090809270a0709270a0709070a2709070928092709080927090809070928090709280a260a0709270a0709270a0709270908092709080927090809270908092709080928090709070a270907092809270908090709280927090809270908092709080900012109070a270927090809070a270907092809070928090709270a070928092709080927090809270908090709280907092809270908092709070a0709270a0709280927090809270908092709080927090809270908092709070928090709280908092709080907092809070928092709070a0709270a2709070a260a0709280907090001210a0709270a270907090809270a0709270908092709070a2709080927092709080a2709070a2709070a0709270908092709270a070927090809070928090709280a2709070928090709270a07092709080927090809270908092709080927090809270a0709070a270908092709270908090709280927090809270908092709080900012109070a270927090809070928090709280907092809070928090709280927090809270908092709080907092809070928092709070a2709070a0709270a0709280927090809270908092709070a270908092709080927090709270a070928090809270908090709280907092809270907090809270a2709070a260a0709270a07090004e8040002f6040005dc00000000",
                        "off": "b1c02003d89e0600040001d00a070a2709270a0709070928090709270a07092809070928090709270a27090809270908092709080907092809070928092709070a270907090809270908092809270908092709080927090809270908092709070a27090709280907092809080927090809070928090709280808092709080927092809070928090709280907090001210a0709270a2709070a0709270908092709070a270908092709080927092709080a2709070928090709080927090809270927090809270908090709280907092809280907092809070928090709270a070927090809270908092709080927090809280907090809270908092709080828090709280927090809270908092709080900012109070a2709270908090709280907092809070928090709280907092809270908092709080927090809070928090709280927090809270908090709270908092809270908092709080927090809270908092709080828090709280908082809080927090809070928090709280808092808080928092709070928090709280907090001210a0709270a270907090809270a07092709070a270908092709080927092709080a27090709280907090809270908092709270908092709080907092809070928092809070927090809270908092709080927090809270908092709080927090809270908090808280907092809070928090709280927090809270908092709070a0001210907092809270908090709270a0709270a0709270a0709270908092709270a08092709080927090709080927090809270928090709280907090809270907092909270908092709070928090709280907092709080927090809270908092709080928090709080927090809270908082809080828092709080927090809270908090001210907092809270a0709070a2709070928090709280907092809070928092709080927090809270908090709280907092809270908092709070908092709080928092709080927090809270908092709070a2709080828090709280907092809080927090809070928090709270908092809070927092809070928090709270908090005dc000000000000"
                    }
                }
            ]
        },
        {
            "name": "Config",
            "port": 8581,
            "platform": "config"
        }
    ]
}

Config Humidifier

I copied the config example of the original plugin, but this plugin doesn't recognize it. Can you import the humidifier?

Second RM4 mini 51da not discovered

I have two RM4 mini 51da, and I am using homebridge-broadlink-rm-pro v4.2.6. Both RM4 are on the network with static IPs, and both are seen by Broadlink app.

RM4-34-a7-be : Discovered Broadlink RM Mini 4 (51da)
RM4-34-a5-8b : (Not Discovered)

Pls advise.

Originally posted by @deeloke in #10 (comment)

@deeloke, This doesn't seem to be related to the other issue. I hope you don't mind but it seems more appropriate to continue the discussion here.

Could you help isolate the issue?

  1. Is it related to finding that device - is there any configuration that it does find that device?
  2. Is it related to have two devices - do both devices work when they're the only ones on the network?

RM4 Pro RF Learn

Can i confirm that RF learn is still not possible with RM4 Pro?

I tried the RF button in HOME but Scan RF fails after approx 20 seconds

Changing Aircon temperature

Hi, the Air conditioner that I have is using only + and - to change temperature.

Just wondering, how can I set change temperature? i have only 2 Hex codes one for + and one for -

Thanks

AirCon temperature issue

According to the plugin documentation, i can set hex code for temperature 30 and temperature 16 and those can be used for whatever temperature I select.

My problem is if my current temperature is 23 and i change it to 24 it will set the hex code for 30, which is correct but if i go down to 23 again, it should send the hex code for 16 as I’m going lower but it still send the code for 30, which is not is correct.

Other thing is, when i select Heat, it sends the hex code for it 30 along with Heat hex code and set the temperature to 30.

My config is

 {
                    "name": "Heater",
                    "type": "air-conditioner",
                    "ignoreTemperatureWhenOff": true,
                    "temperatureUpdateFrequency": 10,
                    "temperatureFilePath": "/text/inside.txt",
                    "turnOnWhenOff": false,
                    "allowResend": false,
                    "preventResendHex": true,
                   "maxTemperature": 27,
                    "replaceAutoMode": "heat",
                    "disableLogs": true,
                    "data": {
                        "off": [
                            {
                                "data": "hex code",
                                "sendCount": 2,
                                "interval": 0.75
                            }
                        ],
                        "on": "hex code",
                        "heat": [
                            {
                                "data": "hex code"
  
                            }
                        ],
                        “temperature30”: {
                            "data": "temp high hex code"
                        },
                       
                        “temperature16”: {
                            "data": "temp low hex code"
                        }
                    }
                },

Getting Error when setting temperature through either Siri or Home app on iPhone

Hey @kiwi-cam added couple of temperatures to begin with the plugin. I'm able to switch off the Air-con both with the Home app as well with Siri but temperature setting is not working.

{
"bridge": {
"name": "Homebridge 79FD",
"username": "xx",
"port": xx,
"pin": "xx"
},
"accessories": [],
"platforms": [
{
"platform": "BroadlinkRM",
"name": "Broadlink RM",
"hideScanFrequencyButton": true,
"hideLearnButton": false,
"hideWelcomeMessage": false,
"accessories": [
{
"name": "Air Conditioner",
"type": "air-conditioner",
"defaultCoolTemperature": 27,
"defaultHeatTemperature": 30,
"minTemperature": 10,
"maxTemperature": 28,
"pseudoDeviceTemperature": 25,
"heatTemperature": 50,
"data": {
"off": "Hex Code",
"on": "Hex Code",
"temperature23": {
"pseudo-mode": "cool",
"data": "Hex code"
},
"temperature22": {
"pseudo-mode": "cool",
"data": "Hex code"
},
"temperature21": {
"pseudo-mode": "cool",
"data": "Hex code"
}
}
}
]
}
]
}

Below is the screenshot of the error I'm getting. I'm very new with coding and I'm not sure what I'm doing wrong. Any help is appreciated.
Capture

Apply for Homebridge Verified

Hey @kiwi-cam, I see a lot of posts on the the homebridge reddit where people are using the unsupported versions of the the broadlink plugin or are confused about which one to use. I figured seen as none of them have applied for 'verified' status and yours is regularly maintained, if you did apply then people might select your plugin from the list of the 20 versions that pop up when you search 'broadlink' in config UI-X. Pretty sure you can just apply here by submitting an issue:

https://github.com/homebridge/verified

Adding new accessory reverts Homekit to and older state

If I add a new accessory to the Broadlink plug in and restart Homebridge.

I moved accessory X from Living to Dining Room and added a few scenes. When I add a new accessory to the Broadlink plug in and restart Homebridge, accessory X goes back to Living Room and the new scenes are gone.

I removed Homebridge completely, installed a new one. Everything was fine until I added the plugin and added accessories.

Broadlink BestCon device RM4C mini not discovered (type 62be)

I've tried 4.2.6 and latest 4.6.7-beta.2 without success. There are no errors in log but device has not been discovered. Added host entry in config - no luck.
Using homebridge-broadlink-rm 3.6.22 I've got this:
[Info] We've discovered an unknown Broadlink device. This likely won't cause any issues.
Please raise an issue in the GitHub repository (https://github.com/lprhodes/homebridge-broadlink-rm/issues) with details of the type of device and its device type code: "62be". The device is connected to your network with the IP address xxx

RM4 PRO discovered as RM3 Pro Plus

Hi,

I install the last version v4.2.9 and the discovered device it´s different from mine:

[Broadlink RM PRO 4] [INFO] Discovered Broadlink RM3 Pro Plus (279d) at 192.168.1.4 (24::d:f::a7:

I tried Learn button but the device shows no led blinking and the code doesn´t appear on homebridge log.

[Broadlink RM PRO 4] Learn Code (ready)
[Broadlink RM PRO 4] [INFO] Learn Code (stopped - 10s timeout)
[Broadlink RM PRO 4] [INFO] Learn Code (stopped)

any help on this?
thanks!

Select which device will learn the codes

Is it possible to select the device I want to learn the codes? Because when i activate the option it is activated on the device in my room and I need it on the device in my office room.

Thanks.

homebridge crash after Learn Code: RM4

hello
i followed paring procedure:

  • remove my rm4 on broadlink app
  • reset of my rm4
  • reconfiguration of my rm4 on broadlink app. and stop process when assigning room
    when i strart homebrige: my RM4 is well recognized
    8/18/2020, 1:21:02 PM] Homebridge is running on port 51501.
    [8/18/2020, 1:21:02 PM] [Broadlink RM] [INFO] Discovered Broadlink RM 4 Pro (61a2) at 192.168.1.109 (a7:df:24:e4:7f:39)
    so prefect
    no error meesage when starting
    config file
    {
    "bridge": {
    "name": "Homebridge 6506",
    "username": "0E:EB:5B:13:65:06",
    "port": 51501,
    "pin": "698-13-135"
    },
    "accessories": [],
    "platforms": [
    {
    "name": "Config",
    "port": 8581,
    "platform": "config"
    },
    {
    "platform": "BroadlinkRM",
    "name": "Broadlink RM",
    "hideScanFrequencyButton": false,
    "hideLearnButton": false,
    "hideWelcomeMessage": false
    }
    ]
    }

when i try learn button. RM4 light turn red
i try a remode
click again on learn. then homebridge crash

here are status message
[8/18/2020, 1:20:41 PM] [Broadlink RM] Learn getSwitchState: undefined
[8/18/2020, 1:20:41 PM] [Broadlink RM] Scan Frequency getSwitchState: undefined
[8/18/2020, 1:20:42 PM] [Broadlink RM] Learn Code (ready)
[8/18/2020, 1:20:42 PM] [Broadlink RM] Learn getSwitchState: undefined
[8/18/2020, 1:20:44 PM] [Broadlink RM] Learn getSwitchState: undefined
[8/18/2020, 1:20:44 PM] [Broadlink RM] Scan Frequency getSwitchState: undefined
[8/18/2020, 1:20:44 PM] [Broadlink RM] Learn getSwitchState: undefined
[8/18/2020, 1:20:44 PM] [Broadlink RM] Scan Frequency getSwitchState: undefined
[8/18/2020, 1:20:49 PM] TypeError: log is not a function
at stop (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/helpers/learnData.js:14:3)
at Object.start (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/helpers/learnData.js:18:3)
at LearnIRAccessory.toggleLearning (/usr/local/lib/node_modules/homebridge-broadlink-rm-pro/accessories/learnCode.js:41:17)
at On.emit (events.js:315:20)
at On.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:60:38)
at On.Characteristic._this.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Characteristic.js:369:23)
at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:951:36
at Array.forEach (:null:null)
at Bridge.Accessory._this._handleSetCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/Accessory.js:819:18)
at HAPServer.emit (events.js:315:20)
at HAPServer.EventEmitter.emit (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/EventEmitter.js:60:38)
at HAPServer._this._handleCharacteristics (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:731:23)
at IncomingMessage. (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/dist/lib/HAPServer.js:240:39)
at IncomingMessage.emit (events.js:315:20)
at endReadableNT (_stream_readable.js:1220:12)
at processTicksAndRejections (internal/process/task_queues.js:84:21)

[8/18/2020, 1:20:49 PM] Got SIGTERM, shutting down Homebridge...
[8/18/2020, 1:20:49 PM] [Config] [HapClient] [192.168.1.2:51501 (0E:EB:5B:13:65:06)] Failed to set value for Learn.
[8/18/2020, 1:20:54 PM] [HB Supervisor] Homebridge Process Ended. Code: 143, Signal: null
[8/18/2020, 1:20:59 PM] [HB Supervisor] Restarting Homebridge...

could you please help me?
thx

Saying TV is not a supported accessory?

I am getting this message from the hombridge logs on boot

homebridge-broadlink-rm doesn't support accessories of type "TV"?

I have the the pro package installed or at least I think I do.

All other features seem to work.

03/08/2020, 15:40:44 Error: homebridge-broadlink-rm doesn't support accessories of type "TV".
at /home/hoobs/.hoobs/node_modules/homebridge-broadlink-rm-pro/platform.js:66:46
at Array.forEach (:null:null)
at BroadlinkRMPlatform.addAccessories (/home/hoobs/.hoobs/node_modules/homebridge-broadlink-rm-pro/platform.js:63:24)
at BroadlinkRMPlatform.accessories (/home/hoobs/.hoobs/node_modules/homebridge-platform-helper/platform.js:28:10)
at Server.loadPlatformAccessories (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:357:18)
at Server.loadPlatforms (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:286:26)
at Server.run (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/server.js:86:18)
at module.exports (/usr/local/lib/node_modules/@hoobs/hoobs/bridge/cli.js:84:12)
at Object. (/usr/local/lib/node_modules/@hoobs/hoobs/bin/hoobs:95:81)
at Module._compile (internal/modules/cjs/loader.js:955:30)
at Object.Module._extensions..js (internal/modules/cjs/loader.js:991:10)
at Module.load (internal/modules/cjs/loader.js:811:32)
at Function.Module._load (internal/modules/cjs/loader.js:723:14)
at Function.Module.runMain (internal/modules/cjs/loader.js:1043:10)
at internal/main/run_main_module.js:17:11
03/08/2020, 15:40:45 Got SIGTERM, shutting down Bridge...

Multiple TV Accessories Don’t Show Up

I’m trying to use the TV accessory type as a way to create iOS-based remotes for the IR devices in my setup. The Receiver my Apple TV is plugged into for one, and a Blu-ray player also attached to the receiver for another. But it seems that only the first accessory of type tv is loaded and seen. This feels like a bug in the plugin, unless I am doing something obvious wrong.

Minimum Temperature

HomeKit now allows minimum temperature to be more than 10, so you might want to remove this from the AirCon file

    // minTemperature can't be more than 10 or HomeKit throws a fit
    assert.isBelow(config.minTemperature, 11, `\x1b[31m[CONFIG ERROR] \x1b[33mminTemperature\x1b[0m (${config.minTemperature}) must be <= 10`)

Problem after set up first accessorie

Hi @kiwi-cam (please don't kill me) haha
I tried again with your repo and now I finally get the hex-codes.
But after set up one accesorie, the messages that appear are:

[6/8/2020, 23:46:42] [BroadlinkRM] Telecentro On/Off getSwitchState: true
[6/8/2020, 23:46:46] [BroadlinkRM] [ERROR] Learn Code (Couldn't learn code, device not found)

The steps that I followed are:

  1. Update the plugin with your last fix
  2. Reset the Broadlink RM Mini 3
  3. Set up in the broadlink app and cancel the proccess before connect with a room.
  4. Went to homebridge and detect the device.
  5. Got the hex code of tv controller.
  6. Set up the config file
  7. Reset homebrdige
  8. Tried the new accessorie added and BUM new problem appear.

I didn't get any error message to paste it, only the mentioned before.

[6/8/2020, 23:46:31] [BroadlinkRM] Telecentro On/Off getSwitchState: false
[6/8/2020, 23:46:33] [BroadlinkRM] Telecentro On/Off setSwitchState: true
[6/8/2020, 23:46:33] [BroadlinkRM] [ERROR] Telecentro On/Off sendData (no device found)
[6/8/2020, 23:46:33] [BroadlinkRM] Telecentro On/Off getSwitchState: true

Tell me if you need more data.

"inputs" show up as separate tiles; "volume" controls not seen in HomeKit

I love that this plugin exists! I can get the power on/off working correctly and the TV icon shows up in my HomeKit app, however, I can't get volume and inputs to work:

• Volume buttons don't appear anywhere in the app; the TV tile simply has a power on / off button + state
• Inputs show up as tiles rather than an input dropdown

I admit that I'm running iOS 14, but I am also guessing that I either have the syntax wrong or I'm missing something. Any thoughts?

        "platform": "BroadlinkRM",
        "name": "Broadlink RM",
        "hideWelcomeMessage": true,
        "accessories": [
            {
                "name": "Projector",
                "type": "tv",
                "data": {
                    "on": "HEX",
                    "off": [
                        {
                            "data": "HEX",
                            "sendCount": 2,
                            "interval": 0.5
                        }
                    ],
                    "volume": {
                        "up": "HEX",
                        "down": "HEX"
                    },
                    "inputs": [
                        {
                            "name": "Apple TV",
                            "type": "HDMI",
                            "data": "HEX"
                        },
                        {
                            "name": "Xbox One",
                            "type": "HDMI",
                            "data": "HEX"
                        },
                        {
                            "name": "Turntable",
                            "type": "other",
                            "data": "HEX"
                        }

MAC addresses are reported incorrectly

The first and third bytes of the MAC address are reversed. It's consistent so specifying it in the config file based on the detected addresses in the log works fine.

Aircon Issue No heat HEX code found for XX (SOLVED)

{ "platform": "BroadlinkRM", "name": "Broadlink RM", "accessories": [ { "name": "Klimaanlage", "type": "air-conditioner", "autoSwitch": "A/C Auto Switch", "pseudoDeviceTemperature": 23, "maxTemperature": 24, "minTemperature": 10, "allowResend": true, "defaultCoolTemperature": 20, "defaultHeatTemperature": 24, "data": { "off": "26006800bcee126f146d136f126f122c126f132d126f122c122d122d122d126f122d116f122d132c126f126f126f142b126f136e136e136e122d132c122d1170112d122d122d122d1170132b146d152a156c132c122c136e142c126f122c126f132d126e136e13eb12000d050000000000000000000000000000", "temperature24": { "data": "26006800bded116f136e146e136e132c116f132d126f122c132c112d132d126f122c136e122d122d136c156e122c122d132c132c126f126f112d142c126f126e136e126f142c122c136e122c136e142c136e132b122d126f142b146d132b126f142b126f126f12ec12000d050000000000000000000000000000" }, "temperature23": { "data": "26006800bded126f126f136e136e132c126f122d136e132c122c122d122d136e122c136e122d122d136e136c142c126f142c122c136e136e122d132c126f122c136e126f132c132c136e122c136e142c126f122c122d126f132c126f122c126f132c136e136e13eb12000d050000000000000000000000000000" }, "temperature22": { "data": "26006800bded126f126f136e136e132c126f122d136e122c132c122d122d126f122c136e122d122d126f126f122c122d136e132c126c156f112d142b136e136e132c116f142c122c136e132c126e142c126f122c122d126d152c126f122c126f122d136e136e13ea12000d050000000000000000000000000000" }, "temperature21": { "data": "26006800bded116f1370126e126f122c126f132c136e132c112d122d122d126f122c126f122c132d116f136e132c126f136e132c126d146e122d142b136e132c122c126f132c132c126e132c126f132c126f122c132c126f132c136e122c126f132c136e136e13ea12000d050000000000000000000000000000" }, "temperature20": { "data": "26006800bded126f126f136e136e132b126f132d126e132c132b122d122d136e132c126b152d122d136e136e122c122d132c136e136e136e112d142b136e136e136e122c142c122c136e122d126e142c126e132c122c136e142c126e132c126f122d136e126e13eb12000d050000000000000000000000000000" }, "temperature19": { "data": "26006800beec126f136e136f132c126e126f152b146d142a152a122d146b172a142b146c142b152a156c156c152a146d152a146d156d146c152a152a156a172a146d152a142b142b146c122d156c152a146d142b122c156c152b146d142a126f152a156c156c15e912000d050000000000000000000000000000" }, "temperature18": { "data": "26006800beec126f156d146c152a146d126f152b146c152a142b132b156d142a152a146d142a152b146d146d142a152a156d146d146c156d142a152b146d146d132b152a152a142b146d112d146d152b146c142b122d136e142b146d142b1170132b156d136e13eb12000d050000000000000000000000000000" }, "temperature17": { "data": "26006800bded116f136e146e136e132c116f132d126f122c132c112d132d126f122c136e122d122d136c156e122c122d132c132c126f126f112d142c126f126e136e126f142c122c136e122c136e142c136e132b122d126f142b146d132b126f142b126f126f12ec12000d050000000000000000000000000000" } } } ] },

I constantly get
"2020-8-3 11:06:18] [Broadlink RM] Klimaanlage setTargetHeatingCoolingState: 3
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage sentMode (auto)
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage getCurrentHeatingCoolingState: 0
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage getTargetHeatingCoolingState: 3
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage setCurrentHeatingCoolingState: 2
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage No auto HEX code found for 19
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage Update to default temperature (20)
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage sendHex (10.0.0.50; a7:df:24:de:e4:48) 26006800bded126f126f136e136e132b126f132d126e132c132b122d122d136e132c126b152d122d136e136e122c122d132c136e136e136e112d142b136e136e136e122c142c122c136e122d126e142c126e132c122c136e142c126e132c126f122d136e126e13eb12000d050000000000000000000000000000
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage getTargetTemperature: 20
[2020-8-3 11:06:19] [Broadlink RM] Klimaanlage sentTemperature (20)"

however hexcode for 19 is definded... can someone help me what i made wrong?

thx

Mark

Unable to discover RM4 PRO

I am having some challenge getting this to work.

I installed homebridge using the official homebridge imageee.
https://github.com/homebridge/homebridge-raspbian-image/wiki/Getting-Started

Then I installed homebridge-broadlink-rm-pro v4.2.8. However it doesn't seems like it discovered my broadlink eventho connected to the same wifi network.

Things I have tried:

  1. Using Broadlink App - Able to use it ok and able to add both IR and RF functions
  2. Reset Broadlink App - to only connect to wifi but not choose a room. Nothing seem to happen

Would appreciate some help in getting this resolved.

Thank you

Feature Request: Add Change Logs to Config-UI-X

Hey @kiwi-cam I was wondering if you can make your change logs appear in config-ui-x? Some plugins when updated on that UI have a pop-up box that lists the latest updates to the plug-in :) I believe all you need to do is move the Changelog from README.md to the CHANGELOG.md file. I am quoting the developer of the homebridge-xiaomi-roborock-vacuum for what he said he did when I raised the issue there.

Input stuck on first input

My configuration has two inputs.

However, if I select the second input (Ziggo in my configuration), my home app will still say my tv is on input one (Apple TV). Luckily, the IR blast is working for both inputs, so it is not really a problem, more like a bug.

{ "platform": "BroadlinkRM", "name": "Broadlink RM", "hideScanFrequencyButton": true, "accessories": [ { "name": "TV", "type": "tv", "pingIPAddress": "192.168.178.128", "disableLogs": false, "pingGrace": 45, "pingIPAddressStateOnly": true, "data": { "on": "26008c008e9313371337123812141114111412121213133713371238121312131213121312131212123813131213111412131213111411391114113812381238123812391138120005ef93911537133712381213121413121311131212381139123813121213121312141112121411381313111411131213121411141138121312381238123813371436123813000d0500000000000000000000", "off": "26008c008e9313371337123812141114111412121213133713371238121312131213121312131212123813131213111412131213111411391114113812381238123812391138120005ef93911537133712381213121413121311131212381139123813121213121312141112121411381313111411131213121411141138121312381238123813371436123813000d0500000000000000000000", "volume": { "up": "26008c008d9312381238123813131114111312131313123713371238131212131214111311131238123812381312121410141214111312141114101511381337123812381239120005ee929413371239123712141212131212131213103a1237133812131212131215111114123712381238121411131214121311141114111411131337123813371238133713000d0500000000000000000000", "down": "26008c008c9512381138133712141213111312141114123712381337121412121313121311141237123812141138121411131312121313131113143611151236133712381239120005ee92941338113812381313111312141213111411381239123712141114111411131213113912381114143513121214121311141114121311381214113812391237133712000d0500000000000000000000" }, "inputs": [ { "name": "Apple TV", "type": "hdmi", "data": [ { "data": "260050000001239311141313121213121213131213131238123812381238123813381337123812141113133812381238123615121214121312381312131312121312123812381238130005100001274a11000d05000000000000" } ] }, { "name": "Ziggo", "type": "hdmi", "data": [ { "data": "2600580000012592141114111411141115101510151015351536143615351535153614361535151015101535151114111436141114111510153515101536143614111436153515351500050d00012a4715000c4f0001284814000d050000000000000000000000000000" } ] } ], "remote": { "select": "26008c009095113911391139121311141114111411141138123911381115121311141213111312141114111411381213113a113911131139123812391015103911141214103a1100060e91941337123811391214101411161014121310391139123910151114101510151114101511141015113910141238113911151039123812381213113911141114113912000d0500000000000000000000", "playPause": "26008c008e9312381337123812131213131212131213123713371337141113121213121312131238133712381337121312131213121313121213131213121238123813371237140005ee93931238133713371213121312131213131212381237133713131312131212131212123813371337123813121213121312131213121313121312123813371337123813000d0500000000000000000000" } } } ] }

Multiple Broadlink RM Mini 3 devices

When using multiple Broadlink RM Mini 3 devices on the same network, homebridge doesn't discover both of them. After a restart a random one works. Any workaround? I can't specify mac address and specifying the host results in no device found at that address.

Buttons of TV Accesorie don't appears

Hi, I set up the TV accesorie:

{
                    "name": "TV",
                    "type": "tv",
                    "data": {
                        "off": "2600a2007f8312421141134211431121122112421122114212211143112211211223112111221142114311221142122112421122114212000115868412421143114212421122112112421122114113211242112211221124112111221142124211221143112112421122114211000119858312421043124211431121122013421122114212211242112211211223112111231042124211221142122112421122114212000d0500000000",
                        "on": "2600d8007e8411421242114311421122112211421222114211221142122112211124102210221143124211211242122111431022124211000118858312421142114311421221122112421121114311221142122112211223102211221142124211221142112211431122114211000119848311431142134111421221122112421122104312211044112112211223122111221142124211221043122111431122104311000119858311431142124211421221122111431121124211221143112112211124102211221142124211221142122111431121124211000d050000000000000000000000000000",
                        "remote": {
                            "arrowUp": "2600d8007e8411421242124211421220124311211242114311221121124211221024112112211242112210431221112211421242112211000118838413421142124211421221114311221142124211221121124211221123112111221242112211421221112211431142122111000118858312421142124211421221114311221142124211221122114211221123122111211242112211421221122112411242122112000118858311431142124211431121114311221142124211221122114212211125112112211143112211421221122110431242112211000d050000000000000000000000000000",
                            "arrowDown": "2600d8007f8312421142124211421221124211221043124211221122112112211123122111221142122112421122112112421143114212000118838412421143114211431121124211221142124212211122102311211224122111221142122111431121122112421143114211000119858311431142124211421221124211221142123f14221122102212211223122011221142112211431121122111431142124211000118858312421142124211431121124211221142124211221122112211211123122110231142122112421122112112421143114212000d050000000000000000000000000000",
                            "arrowLeft": "2600d8007e841142124211431142112211431121124211221142124211221122102411211122124211221142122111431121122112421100011885831143114311421142122112421122114213201242114212211221112411211221124211221043122112421122112111431100011984841142124211431142122112421121124212211044114211221122112311211221124211221142122111431122112112421100011984841142123f154211421221114311221043122111431142122112211025102211221143112211421221114311211221124211000d050000000000000000000000000000",
                            "arrowRight": "2600a2007f84124211421143124211211143112210431221134111431142112210250f221221124211221142122112421023102212211100011984831242104411421143112211421122114311211143114311421221112410221121114311221044112111431122112211221000011a848411421143114211431122104312211242112211421143104312211124102210221242112211431121124211221122102311000d0500000000",
                            "back": "2600a2007f8411421242114311421122112211421221122112421043124211221123112112211242104312211143114212211122122111000118848411421242124211421221112210441121122112421241124211221124102212211143114212211143114212211221112210000119848411421242114310431221112211431121122111431142124211221222112111221242114212211242114212211221122112000d0500000000"
                        },
                        "powerMode": {
                            "show": "2600d8007f8313411341114211431142124211221122104312421142124211221123102311211221122110441043122111221122112210000119848411421143114212421241124211221122104311431242114212211124102210221221122111431142122111221122112211000118838511421242114311421143114212211122114311421242114212211125112212201122122111431043112210231122112211000119838412421143114212421142124211221122114211431142124211221025102211221122102310431242122112211122112112000d050000000000000000000000000000"
                        },
                        "volume": {
                            "up": "2600d8007e8411421242114212421122112211421221124211421242114311211223102211221142124013221142122112211122112210000119848411421242114311421320112210441121114311431142114311221123102211221143114211221044112112211122122111000119838511421242114311421221122112421022114311431142124211221123112111221143114212211143102212211221122110000119858311431142124211421221122111431122114211431142124211221123102211221143104312211242112211211221122112000d050000000000000000000000000000",
                            "down": "2600a2007f8312421142124211431121122112421122114212421241122111221222122112211043124210231142122112211023114212000118848312421143114212421122112111431122114311421143112211211123122111221043124212211043122111221023124112000118838511421143104312421221102310431221114311421242112211211223112110231142124212211143102212211221114311000d0500000000"
                        }
                    }
                }

But when I see on the iPhone I see this:
Imgur

What I'm doing wrong?

RM4 Pro RF/IR Learn Not working

I've recently purchased a RM4 Pro to control my automated blinds via HomeKit. I've been able to get connectivity from Homebridge to the device. When I press the "scan RF Frequency" or "Learn IR" buttons in Home, the orange LED lights up as if it is waiting to receive the code; however, I don't see any values come through in the logs. Suggestions?

Logs:
[8/19/2020, 2:24:54 PM] [Broadlink RM] Learn getSwitchState: undefined
[8/19/2020, 2:24:54 PM] [Broadlink RM] Scan Frequency getSwitchState: undefined
[8/19/2020, 2:24:58 PM] [Broadlink RM] [INFO] Scan RF (scanning)
[8/19/2020, 2:24:58 PM] [Broadlink RM] [ACTION] Hold down the button that sends the RF frequency.
[8/19/2020, 2:25:19 PM] [Broadlink RM] [INFO] Scan RF (stopped - 20s timeout)
[8/19/2020, 2:25:19 PM] [Broadlink RM] [INFO] Scan RF (stopped)
[8/19/2020, 2:25:56 PM] [Broadlink RM] Learn Code (ready)
[8/19/2020, 2:26:06 PM] [Broadlink RM] [INFO] Learn Code (stopped - 10s timeout)
[8/19/2020, 2:26:06 PM] [Broadlink RM] [INFO] Learn Code (stopped)

Plugin Used: homebridge-broadlink-rm-pro v4.2.9

Config:

{
"bridge": {
"name": "Homebridge 334D",
"username": "xxx",
"port": 51565,
"pin": "xxxx"
},
"accessories": [],
"platforms": [
{
"name": "Config",
"port": 8581,
"platform": "config"
},
{
"name": "eWeLink",
"email": "xxxx",
"password": "xxxx",
"imei": "xxxxx",
"groups": [
{
"type": "blind",
"handle_api_changes": true
}
],
"platform": "eWeLink"
},
{
"platform": "BroadlinkRM",
"name": "Broadlink RM"
}
]
}

TV appearing in control centre for a few seconds after HomeBridge starts, then disappearing

"name": "Bedroom TV",
                    "type": "tv",
                    "enableAutoOff": true,
                    "onDuration": 3600,
                    "data": {
                        "on": [
                            {
                                "data": "2600d2008e9312381237123713121213121312131213123713371237121312131213121312131212133712131213121312121312131213371213123712371337123712371337120005fb929412371237123812131212131213121213123812371237121312131213121312131213123712131213121312131213141112371213123712381237123713371237120005fb92941237123812371213121312131213121213371237123812121312131212131213121312371312121312131213121312131237121312381237123712381237123713000d0500000000"
                            },
                            {
                                "data": "260050000001229311141137123712371113123712371237113811371237121311131213121312371137123712131213111312131213111411371213131211131237123712371138120004e30001274a13000d05000000000000"
                            }
                        ],
                        "off": [
                            {
                                "data": "2600d2008e9312381237123713121213121312131213123713371237121312131213121312131212133712131213121312121312131213371213123712371337123712371337120005fb929412371237123812131212131213121213123812371237121312131213121312131213123712131213121312131213141112371213123712381237123713371237120005fb92941237123812371213121312131213121213371237123812121312131212131213121312371312121312131213121312131237121312381237123712381237123713000d0500000000"
                            }
                        ],
                        "remote": {
                            "select": "HEX...",
                            "arrowUp": "HEX...",
                            "arrowDown": "HEX...",
                            "arrowLeft": "HEX...",
                            "arrowRight": "HEX...",
                            "back": "HEX...",
                            "exit": "HEX...",
                            "playPause": "HEX...",
                            "info": "HEX..."
                        },
                        "powerMode": {
                            "show": "HEX..."
                        },
                        "volume": {
                            "up": "2600d2008e9412371138123813121015141015101114123811381237131212131411121312131237123812371312111412131213131214101114121312381435123711391237130005f9939412371237133712131015131212131212123813361237131212131213131212131138133712371213121312131114141111141213121213371237123713371237120005fb92941138113912371411111412131213121311381237133714111213121212131411123812371336121313121213111414121113121310151237123712381336123814000d0500000000",
                            "down": "2600d2008d941237123713371312121313150e170d15113813361237121313130f180f14121212390f3913121237121313131212121410141115103812131238113712381337120005f993941237113a1137121411140c19111411121337123712381214101313150f131213133612381214113712141114121311160c171113123710170e3a113812381137120005fb9294123713371237121410160e1611131213123712371238111511131113131212150d3b1237121510371213121312140f171015101312371114133612381138123712000d0500000000"
                        },
                        "inputs": [
                            {
                                "name": "Apple TV",
                                "type": "hdmi",
                                "data": "HEX..."
                            }
                        ]
                    }
                }

Select Applications as inputs

Hi @kiwi-cam

I have this setup and working well, but now I would like to add Applications (YouTube, TVNZ on Demand) to my input choices.

When I add this to the config, I get an error message in my logs.

Do you have any suggestions? I have tried type as "application' and "app". Should I have "data'" or "value"

Thanks in advance.

Barns

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.