homebridge-edomoticz Plugin
Moderator: leecollings
-
- Posts: 19
- Joined: Tuesday 12 December 2017 21:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
Hello,
I have the same question.
Everything works in domoticz elec , gas etc but how do I get it in the homekit.
It is the samenhing with temperature it is working in domoticz but it does not show in homekit.
The only thing that works is the light switch buttons.
thanks.
I have the same question.
Everything works in domoticz elec , gas etc but how do I get it in the homekit.
It is the samenhing with temperature it is working in domoticz but it does not show in homekit.
The only thing that works is the light switch buttons.
thanks.
-
- Posts: 142
- Joined: Friday 21 October 2016 9:25
- Target OS: NAS (Synology & others)
- Domoticz version:
- Location: Netherlands
- Contact:
Re: homebridge-edomoticz Plugin
Nobody else having this issue? I have tried on both a RPi3 and Linux installation and the problem is the same on both. Node 8.9.3 (on Linux), Node 7.10.1 (on RPi3). MQTT.js is version 2.14.0 and Mosquitto is version 1.4.10rjblake wrote: ↑Thursday 28 December 2017 17:54 Have had it all running, but noticed a lot of restarts through PM2. My error log is filled with these entries:
Code: Select all
SyntaxError: Unexpected token C in JSON at position 0 at JSON.parse (<anonymous>) at MqttClient.<anonymous> (/usr/lib/node_modules/homebridge-edomoticz/lib/mqtt.js:57:24) at emitThree (events.js:136:13) at MqttClient.emit (events.js:217:7) at MqttClient._handlePublish (/usr/lib/node_modules/homebridge-edomoticz/node_modules/mqtt/lib/client.js:934:12) at MqttClient._handlePacket (/usr/lib/node_modules/homebridge-edomoticz/node_modules/mqtt/lib/client.js:305:12) at work (/usr/lib/node_modules/homebridge-edomoticz/node_modules/mqtt/lib/client.js:261:12) at Writable.writable._write (/usr/lib/node_modules/homebridge-edomoticz/node_modules/mqtt/lib/client.js:271:5) at doWrite (/usr/lib/node_modules/homebridge-edomoticz/node_modules/readable-stream/lib/_stream_writable.js:406:64) at writeOrBuffer (/usr/lib/node_modules/homebridge-edomoticz/node_modules/readable-stream/lib/_stream_writable.js:395:5)
Any ideas on where it is going wrong?Code: Select all
┌───────────────────┬────────────────────────────────────────────────┐ │ status │ online │ │ name │ homebridge │ │ restarts │ 2880 │ │ uptime │ 22s │ │ script path │ /usr/bin/homebridge │ │ script args │ N/A │ │ error log path │ /home/rjb/.pm2/logs/homebridge-error-0.log │ │ out log path │ /home/rjb/.pm2/logs/homebridge-out-0.log │ │ pid path │ /home/rjb/.pm2/pids/homebridge-0.pid │ │ interpreter │ node │ │ interpreter args │ N/A │ │ script id │ 0 │ │ exec cwd │ /home/rjb/domoticz │ │ exec mode │ fork_mode │ │ node.js version │ 8.9.3 │ │ watch & reload │ ✘ │ │ unstable restarts │ 0 │ │ created at │ 2017-12-28T16:43:18.377Z │ └───────────────────┴────────────────────────────────────────────────┘
If I change MQTT to 0, problem stops. Given all the constant restarts, the Homekit functionality becomes unusable.
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: homebridge-edomoticz Plugin
Hi All,
I have Milight Controllers and using them in Domoticz. Run homebridge so i can control the lamps in Homekit.
Also installed MQTT.
I find out that when i change things in homekit *swith, change color, dim) sometimes he MiLight controllers give a error.
Applamp Bridge error invalid Command or something like that. Then the controller is broken in Domoticz.
I have to restart domoticz to let everything work again. When i disable the use of MQTT then everything work great.
Except the fast change visibility in Homekit because of disabled MQTT
Does someone have a solution for this or help me how to find a solutions? It seems that MQTT send commands that gives problems to the MiLight controllers...
I have Milight Controllers and using them in Domoticz. Run homebridge so i can control the lamps in Homekit.
Also installed MQTT.
I find out that when i change things in homekit *swith, change color, dim) sometimes he MiLight controllers give a error.
Applamp Bridge error invalid Command or something like that. Then the controller is broken in Domoticz.
I have to restart domoticz to let everything work again. When i disable the use of MQTT then everything work great.
Except the fast change visibility in Homekit because of disabled MQTT
Does someone have a solution for this or help me how to find a solutions? It seems that MQTT send commands that gives problems to the MiLight controllers...
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
-
- Posts: 177
- Joined: Sunday 13 November 2016 10:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Germany
- Contact:
Re: homebridge-edomoticz Plugin
I map the security panel via homebridge to my iphone home / eve. In the security panel of domoticz, I see Disarm, Arm Home and Arm away. In the home-eve- security panel I see a 4. status (night). It would help me very much, if I could have the 4 status in Domoticz too. Is it possible to change the security panel in domoticz. Thanks.
-
- Posts: 177
- Joined: Sunday 13 November 2016 10:43
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 2021.1
- Location: Germany
- Contact:
Re: homebridge-edomoticz Plugin
Next question. Does anybody know, how to manage the home-Security-Panel via Siri. I did not succeed. Thanks.
-
- Posts: 60
- Joined: Sunday 04 June 2017 12:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: la. beta
- Location: World
- Contact:
Re: homebridge-edomoticz Plugin
Hi did you solve this problem? Having the same issue. Also looking for double click etc.sylar wrote: ↑Tuesday 25 April 2017 21:31 Hello,
I'm playing with eDomotiz, trying to find out what I will be able to do with it. Seems very impressive!
I do have some questions:
- first, regarding switches. For instance, I have set up a virtual "Push On Button" and added it to my Homekit room (SwitchTypeVal: 9 in Domoticz). It does appear on my iPhone in Home application, but only as a standard switch, and I can turn it on or off like any other switch. I would really need to use it as a push button, which is off by default, and is turned on temporarily when I click on it. Is it possible?
- I have also set up virtual temp+humidity sensors, whose values are refreshed by a LUA script computing mean temperatures and humidity in my house. Everything seems OK in Domoticz, while I only have access to the temperature on my iPhone, humidity is missing. Is it normal?
Thanks for your help!
Thanks
Love my Xiaomi Gateway in connection with homebridge and domoticz on my PI3
Xiaomi Gateway Domoticz Wiki
Xiaomi Gateway Domoticz Wiki
-
- Posts: 60
- Joined: Sunday 04 June 2017 12:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version: la. beta
- Location: World
- Contact:
Re: homebridge-edomoticz Plugin
How do I change a generic Button to Push Switches - Domoticz SwitchTypeVal: 9 just dont get it...
Love my Xiaomi Gateway in connection with homebridge and domoticz on my PI3
Xiaomi Gateway Domoticz Wiki
Xiaomi Gateway Domoticz Wiki
-
- Posts: 1
- Joined: Wednesday 17 January 2018 19:57
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
Has someone solved this problem. I'm also stuck with this error.gerard76 wrote: ↑Sunday 09 April 2017 8:47 I'm having trouble to get the plugin active on boot. I have updated the systemd domoticz.service to boot homebridge after domoticz, but domoticz does not have enough time to get up and running.
I can manually restart homebridge and all works great, but I would love it if no manual intervention was needed.Code: Select all
Apr 9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.493 Active notification Subsystems: email (1/12) Apr 9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.521 WebServer(HTTP) started on address: :: with port 8080 Apr 9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.570 WebServer(SSL) started on address: :: with port 443 Apr 9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.606 Proxymanager started. Apr 9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.619 Starting shared server on: :::6144 Apr 9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.640 TCPServer: shared server started... Apr 9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.646 RxQueue: queue worker started... <snip> pr 9 08:40:44 pi homebridge[560]: [4/9/2017, 8:40:44 AM] [eDomoticz] Initializing eDomoticz platform... Apr 9 08:40:44 pi homebridge[560]: [4/9/2017, 8:40:44 AM] Loading 0 accessories... Apr 9 08:40:45 pi homebridge[560]: [4/9/2017, 8:40:45 AM] [eDomoticz] There was a problem connecting to Domoticz. Apr 9 08:40:46 pi homebridge[560]: - Error: socket hang up
Anybody have thoughts on this?
Thanks
-
- Posts: 47
- Joined: Tuesday 28 October 2014 17:55
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Aalter, Belgium
- Contact:
Re: homebridge-edomoticz Plugin
iPhone cannot find the homebridge.
Any help are welcome.
My config file
Can someone help me with troubleshooting.
Thank you a lot in advance.
Any help are welcome.
Code: Select all
pi@Heating:~/.homebridge$ homebridge
*** WARNING *** The program 'node' uses the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
*** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
*** WARNING *** Please fix your application to use the native API of Avahi!
*** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
[1/21/2018, 3:55:06 PM] Loaded plugin: homebridge-edomoticz
[1/21/2018, 3:55:06 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[1/21/2018, 3:55:06 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[1/21/2018, 3:55:06 PM] ---
[1/21/2018, 3:55:06 PM] Loaded config.json with 0 accessories and 1 platforms.
[1/21/2018, 3:55:06 PM] ---
[1/21/2018, 3:55:06 PM] Loading 1 platforms...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing eDomoticz platform...
[1/21/2018, 3:55:06 PM] Loading 0 accessories...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory '2dn floor bathroom appliances'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Android'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Back door'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Backlight status'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Barometer'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Bathroom 1st floor Humidity'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Bathroom Fan'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Bathroom Fan Timer'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Bathroom Windows Sensor'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Battery Charger'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'BoilerReceiver_CentralHeating'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Camera C2'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Corridor LED C1'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Devonki 1'...
[1/21/2018, 3:55:06 PM] [eDomoticz] Initializing platform accessory 'Distillator'...
Scan 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:496:16)
at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:114:16)
at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:372:14)
Code: Select all
"bridge": {
"name": "Homebridge",
"username": "CC:21:3E:E4:DE:33",
"port": 51826,
"pin": "031-45-154"
},
"description": "Configuration file for (e)xtended Domoticz platform.",
"platforms": [
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "127.0.0.1",
"port": "8080",
"ssl": 0,
"roomid": 0,
"mqttenable": 1,
"mqttserver": "127.0.0.1",
"mqttport": "1883",
"mqttauth": 0,
"mqttuser": "",
"mqttpass": ""
}
],
"accessories": []
}
Thank you a lot in advance.
-
- Posts: 53
- Joined: Saturday 05 August 2017 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
Homebridge is not running, there seams to be an Port Error
-
- Posts: 53
- Joined: Saturday 05 August 2017 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
same problem here...theo69 wrote: ↑Thursday 18 January 2018 23:35Hi did you solve this problem? Having the same issue. Also looking for double click etc.sylar wrote: ↑Tuesday 25 April 2017 21:31 Hello,
I'm playing with eDomotiz, trying to find out what I will be able to do with it. Seems very impressive!
I do have some questions:
- first, regarding switches. For instance, I have set up a virtual "Push On Button" and added it to my Homekit room (SwitchTypeVal: 9 in Domoticz). It does appear on my iPhone in Home application, but only as a standard switch, and I can turn it on or off like any other switch. I would really need to use it as a push button, which is off by default, and is turned on temporarily when I click on it. Is it possible?
- I have also set up virtual temp+humidity sensors, whose values are refreshed by a LUA script computing mean temperatures and humidity in my house. Everything seems OK in Domoticz, while I only have access to the temperature on my iPhone, humidity is missing. Is it normal?
Thanks for your help!
Thanks
-
- Posts: 47
- Joined: Tuesday 28 October 2014 17:55
- Target OS: NAS (Synology & others)
- Domoticz version: 2020.2
- Location: Aalter, Belgium
- Contact:
Re: homebridge-edomoticz Plugin
Where do you see that homebridge is stopped.
Hmm, I see running process :
pi@Heating:~/.homebridge$ ps -aux | grep homeb
pi 27860 0.0 0.1 4280 1848 pts/0 S+ 19:51 0:00 grep homeb
pi 32508 0.0 4.2 144044 40372 ? Ssl 11:18 0:22 homebridge
-
- Posts: 53
- Joined: Saturday 05 August 2017 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
lots of unhandled ERROR
is 127.0.0.1 really you Domoticz IP?
try:
Code: Select all
"platforms": [
{
"platform": "eDomoticz",
"name": "eDomoticz",
"server": "127.0.0.1", (use your Domoticz internal IP)
"port": "8080",
"ssl": 0,
"roomid": 0,
"mqtt": 1,
"excludedDevices": []
}
],
-
- Posts: 53
- Joined: Saturday 05 August 2017 20:27
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Contact:
Re: homebridge-edomoticz Plugin
Would it be possible to add push button (selector Button) to the plug-in. Its supported by HomeKit. One example how they could behave are the Logitech Pop Button. I have the Aqara Button with click and double click, they behave basically the same.
Just a Idee.
Just a Idee.
- Attachments
-
- 23380-29428-Image-34-l.jpg (58.35 KiB) Viewed 2733 times
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: homebridge-edomoticz Plugin
Domoticz’ JSON output for sockets and switches is identical - ie: SwitchTypeVal is always 0. The types and subtypes also do not change to reflect a difference between a switch and a socket. That is why homebridge-edomoticz cannot distinguish between a switch and a socket. So, at this time, other than using EVE app and reassigning the switches to a socket in there instead of using Home app, this is not going to change.
Last edited by Marci on Tuesday 23 January 2018 22:12, edited 1 time in total.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: homebridge-edomoticz Plugin
It’s not a matter of whether it’s supported by HomeKit, it’s a matter of whether Domoticz’ JSON output differentiates / is specific enough to uniquely identify the device type and it’s characteristics to match with the Apple HomeKit spec. See the first post of this thread for how to get the JSON output for a device. Only once that has been looked at can anyone say whether support for your pushbutton device can be added or not.islandman wrote: ↑Tuesday 23 January 2018 14:21 Would it be possible to add push button (selector Button) to the plug-in. Its supported by HomeKit. One example how they could behave are the Logitech Pop Button. I have the Aqara Button with click and double click, they behave basically the same.
Just a Idee.
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
- Marci
- Posts: 531
- Joined: Friday 22 January 2016 18:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.8153
- Location: Wakefield, West Yorkshire UK
- Contact:
Re: homebridge-edomoticz Plugin
You have something already using port 51826 - this usually means you have two copies of homebridge running simultaneously iirc.iganin wrote: ↑Sunday 21 January 2018 16:17 iPhone cannot find the homebridge.
Any help are welcome.Code: Select all
*snip* 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:496:16) at Server._publish (/usr/local/lib/node_modules/homebridge/lib/server.js:114:16) at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:372:14)
Extended Domoticz homebridge-plugin for latest Homebridge - adds temp/humidity/pressure sensors, power consumption sensors, DarkSkies virtual weather station support, YouLess Meter support, general % usage support & switch/lamp status checking!
-
- Posts: 33
- Joined: Thursday 10 November 2016 22:13
- Target OS: Raspberry Pi / ODroid
- Domoticz version: V3.9208
- Location: Rotterdam
- Contact:
Re: homebridge-edomoticz Plugin
Hi everyone (marci?), is it possible to have a switch in Domoticz that tells you if Homebridge is running or not?
-
- Posts: 667
- Joined: Wednesday 08 March 2017 9:42
- Target OS: Linux
- Domoticz version: 3.8993
- Location: Amsterdam
- Contact:
Re: homebridge-edomoticz Plugin
You can create a bash script that check status of Homebridge and then update a TEXT Device
Or use Monit service
RPi3 B+, Debain Stretch, Domoticz, Homebridge, Dashticz, RFLink, Milight, Z-Wave, Fibaro, Nanoleaf, Nest, Harmony Hub, Now try to understand pass2php
Who is online
Users browsing this forum: No registered users and 1 guest