My system has always worked until recently, I've had problems with switches getting unreachable in home-app.
But now thats working fine after removing accessories and persist folder and re-adding everything.
Only have one problem now and its driving me crazy, if i change a switch in domoticz or a motion sensor trips it doesn't update in the home app....
MQTT is subscribed as i can see in the log in domoticz, only thing i can do is shut down home-app in my phone and open it again so it updates.
Cant get it to work again, anyone that can help?
And yes, I'm a noob on this! So if you need som info, please tell me what commands to type
config.json:
Code: Select all
{
"bridge": {
"name": "Homebridge",
"username": "CC:21:3E:E4:DE:30",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for (e)xtended Domoticz platform.",
"platforms": [
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "admin:******@127.0.0.1",
"port": "8080",
"ssl": 0,
"roomid": 0,
"mqtt": 1,
"excludedDevices": []
}
],
"accessories": []
}
when i ran homebridge i get: (some warnings about multiple homebridge instances??)
[9/4/2018, 9:03:26 PM] Loaded config.json with 0 accessories and 1 platforms.
[9/4/2018, 9:03:27 PM] ---
[9/4/2018, 9:03:29 PM] Loaded plugin: homebridge-edomoticz
[9/4/2018, 9:03:29 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[9/4/2018, 9:03:29 PM] ---
[9/4/2018, 9:03:29 PM] Loaded plugin: homebridge-harmonyhub
[9/4/2018, 9:03:33 PM] Registering platform 'homebridge-harmonyhub.HarmonyHub'
[9/4/2018, 9:03:33 PM] ---
[9/4/2018, 9:03:35 PM] Loaded plugin: homebridge-mqtt
homebridge API version: 2.2
[9/4/2018, 9:03:35 PM] Registering platform 'homebridge-mqtt.mqtt'
[9/4/2018, 9:03:35 PM] ---
[9/4/2018, 9:03:35 PM] Loading 1 platforms...
[9/4/2018, 9:03:35 PM] [eDomoticz] Initializing eDomoticz platform...
[9/4/2018, 9:03:35 PM] Loading 0 accessories...
Load homebridge-harmonyhub.HarmonyHub
[9/4/2018, 9:03:35 PM] [homebridge-harmonyhub.HarmonyHub] Ignoring Harmony Platform setup because it is not configured
Load homebridge-mqtt.mqtt
[9/4/2018, 9:03:35 PM] [homebridge-mqtt.mqtt] config undefined in '/home/pi/.homebridge', irrelevant by multiple homebridge instances.
Setup Payload:
X-HM://0023ISYWY0BDB
Scan this code with your HomeKit app on your iOS device to pair with Homebridge:
Or enter this code with your HomeKit app on your iOS device to pair with Homebridge:
┌────────────┐
│ 031-45-154 │
└────────────┘
events.js:160
throw er; // Unhandled 'error' event
^
Error: listen EADDRINUSE :::51826
at Object.exports._errnoException (util.js:1012:11)
at exports._exceptionWithHostPort (util.js:1035:20)
at Server._listen2 (net.js:1252:14)
at listen (net.js:1288:10)
at Server.listen (net.js:1384:5)
at EventedHTTPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/eventedhttp.js:60:19)
at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:158:20)
at Bridge.Accessory.publish (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:607:16)
at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:127:16)
at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:96:10)
at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:43:10)
at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
at Module._compile (module.js:541:32)
at Object.Module._extensions..js (module.js:550:10)
at Module.load (module.js:458:32)
at tryModuleLoad (module.js:417:12)