Open duculete opened 6 years ago
in
"host": "XX:XX:XX:XX:XX:XX",
you may insert Broadlink IP, not MAC address.
Then you need to update the documentation!
I didn't know there was the opportunity to use MAC instead of IP 😟
If you have multiple Broadlink RM devices (e.g. one in the bedroom, one in the lounge) then you can additionally specify the Broadlink RM's IP or MAC address in a "host" key/value pair on each accessory so that the accessory will use the correct device to send the IR or RF commands.
I know it. I'm using it, but with IP, not MAC address.
I don't understand.. I have only one Broadlink (RM Mini 3) that works on IHC or e-Control app. When I launch homebridge in the app #Home we find Learn button but the message is: Learn getSwitchState: undefined So it doesn't possible to learn IR code I have try to add the accessory but I have this messages: `[2018-12-8 16:01:14] Loading 1 accessories...
/usr/lib/node_modules/homebridge/lib/api.js:50
if (name.indexOf('.') == -1) {
^
TypeError: Cannot read property 'indexOf' of undefined
at API.accessory (/usr/lib/node_modules/homebridge/lib/api.js:50:12)
at Server._loadAccessories (/usr/lib/node_modules/homebridge/lib/server.js:286:42)
at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:87:38)
at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:45:10)
at Object.
a new crash
{
"name": "Learn IR [Living]",
"host": "192.168.1.13",
"type": "learn-code"
},
{
"name": "Learn IR Code [Bedroom]",
"host": "192.168.1.8",
"type": "learn-code"
},
{
"name": "Learn RF [Living]",
"host": "192.168.1.13",
"type": "learn-code",
"scanFrequency": true
},
Jul 15 21:09:11 homebridge homebridge[14961]: [2019-7-15 21:09:11] [Broadlink RM Living Room] [INFO] Scan RF (scanning)
Jul 15 21:09:11 homebridge homebridge[14961]: [2019-7-15 21:09:11] [Broadlink RM Living Room] [ACTION] Hold down the button that sends the RF frequency.
Jul 15 21:09:18 homebridge homebridge[14961]: [2019-7-15 21:09:18] TypeError: log is not a function
Jul 15 21:09:18 homebridge homebridge[14961]: at stop (/usr/local/lib/node_modules/homebridge-broadlink-rm/helpers/learnData.js:14:3)
Jul 15 21:09:18 homebridge homebridge[14961]: at Object.start (/usr/local/lib/node_modules/homebridge-broadlink-rm/helpers/learnData.js:18:3)
Jul 15 21:09:18 homebridge homebridge[14961]: at LearnIRAccessory.toggleLearning (/usr/local/lib/node_modules/homebridge-broadlink-rm/accessories/learnCode.js:41:17)
Jul 15 21:09:18 homebridge homebridge[14961]: at Characteristic.On.emit (events.js:182:13)
Jul 15 21:09:18 homebridge homebridge[14961]: at Characteristic.On.Characteristic.setValue (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Characteristic.js:
Jul 15 21:09:18 homebridge homebridge[14961]: at Bridge.
I have one RM pro and one RM (no RF).
If I do not add learn-code accessory then i see some messages:
If i add the accessory:
then...