Closed Leprechaun91 closed 7 years ago
@Leprechaun91:
Please post your log
$ homebridge
[2/8/2017, 7:13:29 PM] Loaded plugin: homebridge-mqtt
homebridge API version: 2.1
[2/8/2017, 7:13:29 PM] Registering platform 'homebridge-mqtt.mqtt'
...
and the payloads of your topics:
homebridge/to/add
homebridge/to/set
Do you mean this plug
[2017-02-08 20:09:01] [mqtt] Plugin - DidFinishLaunching [2017-02-08 20:09:01] [mqtt] Authentication with username/password [2017-02-08 20:09:01] [mqtt] Number of Accessories: 0 Server error: Error: listen EADDRINUSE :::8282 events.js:141
For homebridge/to/add
I use {"name":"Lampe","service":"Switch"}
and for homebridge/to/set
I use {"name":"Lampe","characteristic":"On","value":true}
`But this works. After using the add command, tehre is a new icon in my Homekit and it is possible to control it via the set command.
But for example, if I want to use an exisitng, real bulb, I dont know, how to acces to it via Homekit.I can use it with homebridge or use the hue plugin for node red But I dont know, how to use it via Nodered to Homebridge
First of all you should fix the issue:
Server error: Error: listen EADDRINUSE :::8282 events.js:141
Again post all the log from the beginning.
$ homebridge
[2017-02-08 20:39:37] [mqtt] Plugin - DidFinishLaunching
[2017-02-08 20:39:37] [mqtt] Authentication with username/password
[2017-02-08 20:39:38] [mqtt] Number of Accessories: 1
Server listening on: http://
I can't help you if you don't post the complete log from starting.
example:
$ homebridge
[2/9/2017, 4:12:49 PM] Loaded plugin: homebridge-mqtt
homebridge API version: 2.1
[2/9/2017, 4:12:49 PM] Registering platform 'homebridge-mqtt.mqtt'
[2/9/2017, 4:12:49 PM] ---
[2/9/2017, 4:12:49 PM] Loaded config.json with 0 accessories and 1 platforms.
[2/9/2017, 4:12:49 PM] ---
[2/9/2017, 4:12:49 PM] Loading 1 platforms...
[2/9/2017, 4:12:49 PM] [mqtt] Initializing mqtt platform...
[2/9/2017, 4:12:49 PM] [mqtt] homebridge-mqtt v0.3.0
[2/9/2017, 4:12:49 PM] Loading 0 accessories...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
[2/9/2017, 4:12:49 PM] [mqtt] Plugin - DidFinishLaunching
[2/9/2017, 4:12:49 PM] [mqtt] Anonymous
[2/9/2017, 4:12:49 PM] [mqtt] Number of Accessories: 3
[2/9/2017, 4:12:49 PM] Homebridge is running on port 51826.
[2/9/2017, 4:12:49 PM] [mqtt] connected (url = mqtt://192.168.0.32)
`[2017-02-09 16:33:10] Loaded plugin: homebridge-denon
[2017-02-09 16:33:10] Registering accessory 'homebridge-denon-marantz-avr.DenonM arantzAVR'
[2017-02-09 16:33:10] ---
[2017-02-09 16:33:11] Loaded plugin: homebridge-fhem
homebridge API version: 2.1
this homebridge-fhem 0.2.70
[2017-02-09 16:33:11] Registering platform 'homebridge-fhem.FHEM'
[2017-02-09 16:33:11] ---
[2017-02-09 16:33:11] Loaded plugin: homebridge-marantz-volume
[2017-02-09 16:33:11] Registering accessory 'homebridge-marantz-volume.marantz-v olume'
[2017-02-09 16:33:11] ---
[2017-02-09 16:33:12] Loaded plugin: homebridge-mqtt
homebridge API version: 2.1
[2017-02-09 16:33:12] Registering platform 'homebridge-mqtt.mqtt'
[2017-02-09 16:33:12] ---
[2017-02-09 16:33:13] Loaded plugin: homebridge-netatmo
[2017-02-09 16:33:13] Registering platform 'homebridge-netatmo.netatmo'
[2017-02-09 16:33:13] ---
[2017-02-09 16:33:14] Loaded plugin: homebridge-nukiio
[2017-02-09 16:33:14] Registering platform 'homebridge-nukiio.NukiBridge'
[2017-02-09 16:33:14] Registering accessory 'homebridge-nukiio.NukiLock'
[2017-02-09 16:33:14] Registering accessory 'homebridge-nukiio.NukiBridgeMaintainanceSwitch'
[2017-02-09 16:33:14] ---
[2017-02-09 16:33:14] Loaded plugin: homebridge-people
[2017-02-09 16:33:14] Registering platform 'homebridge-people.People'
[2017-02-09 16:33:14] Registering accessory 'homebridge-people.PeopleAccessory'
[2017-02-09 16:33:14] Registering accessory 'homebridge-people.PeopleAllAccessory'
[2017-02-09 16:33:14] ---
[2017-02-09 16:33:15] Loaded plugin: homebridge-philipshue
[2017-02-09 16:33:15] Registering platform 'homebridge-philipshue.PhilipsHue'
[2017-02-09 16:33:15] ---
[2017-02-09 16:33:15] Loaded config.json with 2 accessories and 5 platforms.
[2017-02-09 16:33:15] ---
[2017-02-09 16:33:15] Loading 5 platforms...
[2017-02-09 16:33:15] [mqtt] Initializing mqtt platform...
[2017-02-09 16:33:15] [mqtt] homebridge-mqtt v0.2.4
[2017-02-09 16:33:15] Initializing People platform...
[2017-02-09 16:33:15] Initializing platform accessory 'Julian'...
[2017-02-09 16:33:15] Initializing platform accessory 'Nadine'...
[2017-02-09 16:33:15] Initializing platform accessory 'Test'...
[2017-02-09 16:33:15] Initializing platform accessory 'Anyone'...
[2017-02-09 16:33:15] Initializing platform accessory 'No One'...
[2017-02-09 16:33:15] WebHook: Started server on port '51828'.
[2017-02-09 16:33:15] Initializing NukiBridge platform...
[2017-02-09 16:33:15] Initializing Nuki bridge 'http://192.168.2.7:80'...
[2017-02-09 16:33:15] Initialized Nuki bridge.
[2017-02-09 16:33:15] Initializing platform accessory 'Tür'...
[2017-02-09 16:33:15] [Philips Hue] Initializing PhilipsHue platform...
[2017-02-09 16:33:15] [Philips Hue] PhilipsHue Platform Plugin Version 0.0.3
[2017-02-09 16:33:15] [Philips Hue] Fetching Philips Hue lights...
[2017-02-09 16:33:15] [netatmo weather] Initializing netatmo platform...
[2017-02-09 16:33:15] [netatmo weather] Creating NetatmoPlatform...
[2017-02-09 16:33:15] Loading 2 accessories...
[2017-02-09 16:33:15] [Stereo Volume] Initializing marantz-volume accessory...
[2017-02-09 16:33:15] [Denon LivingRoom] Initializing DenonMarantzAVR accessory...
[2017-02-09 16:33:15] [mqtt] Plugin - DidFinishLaunching
[2017-02-09 16:33:15] [mqtt] Authentication with username/password
[2017-02-09 16:33:15] [mqtt] Number of Accessories: 0
Server listening on: http://
┌────────────┐
│ 031-45-154 │
└────────────┘
[2017-02-09 16:33:17] Homebridge is running on port 51826. `
quite a lot plugins but homebridge-mqtt seems to work.
Back to your question:
But for example, if I want to use an exisitng, real bulb, I dont know, how to acces to it via Homekit.I can use it with homebridge or use the hue plugin for node red
But I dont know, how to use it via Nodered to Homebridge
I've connected all my devices to node-red using contrib-nodes such es netatmo, hueplus, openzwace etc.
If you can read and write to you devices in node-red, you'll be able to connect your devices via homebridge-mqtt to HomeKit. Take a look at the Wiki.
So I have to use some kind of extra plugins for node-red and its not possible to just control Homekit devices without it? Because for example, there is no plugin for nukiio
I'm not sure what you are looking for. There is an app for nukiio and also a homebridge-plugin. So I think you are able to control nukiio?
Yes, I am able to controle Nukiio via Siri or HomeKit but not with Node red. I found a "solution" at least for light. Therefore I cannot controle devices I havent add via node-red itself I can add a "new" dummy light and put it in a group with an exisiting light. But it only works for lights because you cannot put locks or switches into groups using apples home-app. Maybe I still get something wrong with using the plugin. Is there any solution to control rgb lights?
I could be wrong but I feel like @Leprechaun91 is trying to control devices the exist already on homebridge rather than adding devices to RED and then using homebridge-mqtt a homebridge virtual representation of the same device.
Again, correct me if I'm wrong but I don't believe homebridge currently has a way to for us to communicate between its own accessories or platforms which means a plugin can't do as you ask.
Heyy,
maybe Im just too stupid. i can connect to the Homebridge and im able to add or remove stuff via homebridge/to/add or /remove. If I do so, i can change work with them; of course. But I really dont know, how to deal with existing switchs, bulbs etc. If I try to use homebridge/to/set or homebridge/from/set nothing happens. Using homebridge/to/set receives an error of the undefined name, of course.