Page 57 of 86

Re: homebridge-edomoticz Plugin

Posted: Friday 18 November 2016 9:08
by Toyman
I have to admit dimmers continue to behave very funny. When I try to set a light to something other than 100% it jumps to the desired level, then a couple of % back, than to the level again, eg 80-82-80 or even weirder: 80-83-76-80
It looks like it tries to find the corrrect value :-) and then setttles.
This behavior is edomoticz/homebridge related as if I set the level in Domoticz it just sets the level.
I am using DIY MySensors-based dimmer and the latest git version of edomoticz.

Re: homebridge-edomoticz Plugin

Posted: Friday 18 November 2016 16:57
by Marci
The issue is with your choice of app. it’s caused by latency in network traffic as it can’t respond quick enough to the change of the slider, as the slider is streaming out updates as you drag it, rather than waiting for your drag to end then sending the final figure.

Re: homebridge-edomoticz Plugin

Posted: Sunday 20 November 2016 18:26
by edwin1234
i get this error, homebridge starts succesfully but after a few seconds this error apears and homebridge shuts down what to do?
thanks
┌────────────┐

└────────────┘

[2016-11-20 17:25:20] Homebridge is running on port 51826.
[2016-11-20 17:25:23] [eDomoticz] Successfully connected to MQTT broker.
C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge-edomoticz\lib\domotic
z_accessory.js:918
var RFXMeterDeviceCharac
teristic = this.getService(eDomoticzServices.WaterMeterService).getCharacteristi
c(eDomoticzServices.WaterFlow);

^

TypeError: Cannot read property 'getCharacteristic' of undefined
at Object.eDomoticzAccessory.handleMQTTMessage (C:\Users\Edwin\AppData\Roami
ng\npm\node_modules\homebridge-edomoticz\lib\domoticz_accessory.js:918:95)
at MqttClient.<anonymous> (C:\Users\Edwin\AppData\Roaming\npm\node_modules\h
omebridge-edomoticz\lib\mqtt.js:63:17)
at emitThree (events.js:97:13)
at MqttClient.emit (events.js:175:7)
at MqttClient._handlePublish (C:\Users\Edwin\AppData\Roaming\npm\node_module
s\homebridge-edomoticz\node_modules\mqtt\lib\client.js:792:12)
at MqttClient._handlePacket (C:\Users\Edwin\AppData\Roaming\npm\node_modules
\homebridge-edomoticz\node_modules\mqtt\lib\client.js:282:12)
at process (C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge-edomo
ticz\node_modules\mqtt\lib\client.js:238:12)
at Writable.writable._write (C:\Users\Edwin\AppData\Roaming\npm\node_modules
\homebridge-edomoticz\node_modules\mqtt\lib\client.js:248:5)
at doWrite (C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge-edomo
ticz\node_modules\readable-stream\lib\_stream_writable.js:237:10)
at writeOrBuffer (C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge
-edomoticz\node_modules\readable-stream\lib\_stream_writable.js:227:5)

C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge\bin>homebridge
[2016-11-20 18:00:00] Loaded plugin: homebridge-edomoticz
[2016-11-20 18:00:00] Registering accessory 'homebridge-edomoticz.eDomoticz'
[2016-11-20 18:00:00] Registering platform 'homebridge-edomoticz.eDomoticz'
[2016-11-20 18:00:00] ---
[2016-11-20 18:00:01] Loaded plugin: homebridge-http
[2016-11-20 18:00:01] Registering accessory 'homebridge-http.Http'
[2016-11-20 18:00:01] ---
[2016-11-20 18:00:01] Loaded plugin: homebridge-legacy-plugins
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.AD2USB'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.Carwings'

[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.ELKM1'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.FileSenso
r'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.GenericRS
232Device'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.HomeMatic
'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.HomeMatic
Thermo'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.HomeMatic
Window'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.HttpGarag
eDoorOpener'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.HttpHygro
meter'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.HttpTherm
ometer'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.mpdclient
'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.Tesla'
[2016-11-20 18:00:02] Registering accessory 'homebridge-legacy-plugins.X10'
[2016-11-20 18:00:02] Registering platform 'homebridge-legacy-plugins.Domoticz'
[2016-11-20 18:00:02] Registering platform 'homebridge-legacy-plugins.HomeAssist
ant'
[2016-11-20 18:00:02] Registering platform 'homebridge-legacy-plugins.HomeSeer'
[2016-11-20 18:00:02] Registering platform 'homebridge-legacy-plugins.ISY'
[2016-11-20 18:00:02] Registering platform 'homebridge-legacy-plugins.LIFx'
[2016-11-20 18:00:02] Registering platform 'homebridge-legacy-plugins.SmartThing
s'
[

[2016-11-20 18:00:08] [eDomoticz] Initializing platform accessory 'Laptop Esther
'...
[2016-11-20 18:00:08] [eDomoticz] Initializing platform accessory 'Nefit


┌────────────┐

└────────────┘

[2016-11-20 18:00:09] Homebridge is running on port 51826.
[2016-11-20 18:00:12] [eDomoticz] Successfully connected to MQTT broker.
C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge-edomoticz\lib\domotic
z_accessory.js:918
var RFXMeterDeviceCharac
teristic = this.getService(eDomoticzServices.WaterMeterService).getCharacteristi
c(eDomoticzServices.WaterFlow);

^

TypeError: Cannot read property 'getCharacteristic' of undefined
at Object.eDomoticzAccessory.handleMQTTMessage (C:\Users\Edwin\AppData\Roami
ng\npm\node_modules\homebridge-edomoticz\lib\domoticz_accessory.js:918:95)
at MqttClient.<anonymous> (C:\Users\Edwin\AppData\Roaming\npm\node_modules\h
omebridge-edomoticz\lib\mqtt.js:63:17)
at emitThree (events.js:97:13)
at MqttClient.emit (events.js:175:7)
at MqttClient._handlePublish (C:\Users\Edwin\AppData\Roaming\npm\node_module
s\homebridge-edomoticz\node_modules\mqtt\lib\client.js:792:12)
at MqttClient._handlePacket (C:\Users\Edwin\AppData\Roaming\npm\node_modules
\homebridge-edomoticz\node_modules\mqtt\lib\client.js:282:12)
at process (C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge-edomo
ticz\node_modules\mqtt\lib\client.js:238:12)
at Writable.writable._write (C:\Users\Edwin\AppData\Roaming\npm\node_modules
\homebridge-edomoticz\node_modules\mqtt\lib\client.js:248:5)
at doWrite (C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge-edomo
ticz\node_modules\readable-stream\lib\_stream_writable.js:237:10)
at writeOrBuffer (C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge
-edomoticz\node_modules\readable-stream\lib\_stream_writable.js:227:5)

C:\Users\Edwin\AppData\Roaming\npm\node_modules\homebridge\bin>

Re: homebridge-edomoticz Plugin

Posted: Monday 21 November 2016 9:14
by TheRamon
edwin1234 wrote:i get this error, homebridge starts succesfully but after a few seconds this error apears and homebridge shuts down what to do?
thanks
Hi Edwin, thank you for your debug output. Would you try getting the latest version from npm and see if this issue is resolved? (npm -g update homebridge)

Re: homebridge-edomoticz Plugin

Posted: Monday 21 November 2016 9:16
by TheRamon
hpapagaj wrote: Sure, here it is:
So weird.. It's just a dummy switch, the same that I've been using. I don't have any problems with the on command on my side.
Would you try another (new) "lamp" just to check? Can also be another dummy switch. See if it might be related to the scripts you're running, although I doubt it...

Re: homebridge-edomoticz Plugin

Posted: Tuesday 22 November 2016 23:24
by andreasmoritz
I´ve got homebridge-edomoticz set up and all my Domoticz accessories and switches are shown in the Home-app / Eve app.

1. If I flip a switch in Domoticz, i.e. turn on a light, that info are shown in the Home-app. (OK)

2. If i try to flip the switch in the Home app / Eve instead, it appears in the app as the light has been turned on. However, nothing happens with the light and the switch is still "Off" in Domoticz.

What is wrong - it is driving me crazy (especially after quite many reinstalls :( )

Re: homebridge-edomoticz Plugin

Posted: Thursday 24 November 2016 11:10
by fluxcapacitor
Two questions:

1. Is there a way to decrease the polling frequency of a particular device? eDomoticz seems to drain the battery of my Netatmo weather station pretty fast. I wonder if this is caused by the homebridge plugin (eDomoticz) or by Domoticz directly.

2. Is there a way to prevent (hide or disable) this or that device used in Domoticz to not appear in a HomeKit iOS app?

Re: homebridge-edomoticz Plugin

Posted: Thursday 24 November 2016 14:22
by thebeetleuk
Hi,

I have installed as instructed but I get the error... -bash: homebridge: command not found

commands below...

Code: Select all

pi@raspberrypi:~/homebridge $ ls -l
total 56
drwxr-xr-x 2 pi pi  4096 Nov 24 12:07 bin
-rw-r--r-- 1 pi pi   653 Nov 24 13:12 config.json
-rw-r--r-- 1 pi pi   599 Nov 24 12:07 config-sample.json
drwxr-xr-x 3 pi pi  4096 Nov 24 12:07 example-plugins
drwxr-xr-x 3 pi pi  4096 Nov 24 12:07 lib
-rw-r--r-- 1 pi pi 10172 Nov 24 12:07 LICENSE
drwxr-xr-x 8 pi pi  4096 Nov 24 12:41 node_modules
-rw-r--r-- 1 pi pi   997 Nov 24 13:17 npm-debug.log
-rw-r--r-- 1 pi pi   697 Nov 24 12:07 package.json
-rw-r--r-- 1 pi pi 10649 Nov 24 12:07 README.md
pi@raspberrypi:~/homebridge $ homebridge
-bash: homebridge: command not found
pi@raspberrypi:~/homebridge $ sudo ln -s /usr/local/lib/node_modules/homebridge/bin/homebridge /usr/bin/homebridge
ln: failed to create symbolic link ‘/usr/bin/homebridge’: File exists
pi@raspberrypi:~/homebridge $ homebridge
-bash: homebridge: command not found
pi@raspberrypi:~/homebridge $

Re: homebridge-edomoticz Plugin

Posted: Thursday 24 November 2016 17:55
by simon_rb
fluxcapacitor wrote:
2. Is there a way to prevent (hide or disable) this or that device used in Domoticz to not appear in a HomeKit iOS app?
To hide the device from HomeKit you can create a room within Domoticz and add all the devices you would like eDomoticz to expose to Homebridge/HomeKit. Add that room IDX to your config file.

Hope this helps


Sent from my iPhone using Tapatalk

Re: homebridge-edomoticz Plugin

Posted: Thursday 24 November 2016 17:56
by simon_rb
andreasmoritz wrote:I´ve got homebridge-edomoticz set up and all my Domoticz accessories and switches are shown in the Home-app / Eve app.

1. If I flip a switch in Domoticz, i.e. turn on a light, that info are shown in the Home-app. (OK)

2. If i try to flip the switch in the Home app / Eve instead, it appears in the app as the light has been turned on. However, nothing happens with the light and the switch is still "Off" in Domoticz.

What is wrong - it is driving me crazy (especially after quite many reinstalls :( )
Silly question but have you setup an MQTT Broker?


Sent from my iPhone using Tapatalk

Re: homebridge-edomoticz Plugin

Posted: Saturday 26 November 2016 1:44
by Letinono
Hi evrebody,

I'm very new to Domoticz and all its stuff. I just installed eDomoticz on my Sinology DS215j using jumbotroll builds and follow this http://forum.micasaverde.com/index.php/ ... 783.0.html to install Homebridge (because DS215j doesn't support docker) and "obviously" I replace vera by eDomoticz.

The install seems fine.
The config.json contains:

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": "8084",
            "roomid": 0
        }
    ],
    "accessories": []
}
port is 8084 by default on synology.

But when I run homebridge I got 2 problems.

First, the script HomKitDomoticzAuto.sh containing:

Code: Select all

/var/packages/debian-chroot/scripts/start-stop-status start chroot 
/usr/local/debian-chroot/var/chroottarget/ 
/root/.homebridge/run.sh
Fail with :

Code: Select all

Failed to start message bus: The pid file "/var/run/dbus/pid" exists, if the message bus is not running, remove this file
Stopping system message bus: dbus.
Starting system message bus: dbus.
Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
/root/.homebridge/run.sh: line 8: homebridge: command not found
The second problem is, when I try to run manually all these commands, homebridge is running but I got following messages:

Code: Select all

Debian Chroot is already running
Failed to start message bus: The pid file "/var/run/dbus/pid" exists, if the message bus is not running, remove this file
[ ok ] Stopping system message bus: dbus.
[ ok ] Starting system message bus: dbus.
[ ok ] Starting Avahi mDNS/DNS-SD Daemon: avahi-daemon.
*** 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>
[11/26/2016, 1:39:58 AM] Loaded plugin: homebridge-edomoticz
[11/26/2016, 1:39:58 AM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[11/26/2016, 1:39:58 AM] Registering platform 'homebridge-edomoticz.eDomoticz'
[11/26/2016, 1:39:58 AM] ---
[11/26/2016, 1:39:58 AM] Loaded config.json with 0 accessories and 1 platforms.
[11/26/2016, 1:39:58 AM] ---
[11/26/2016, 1:39:58 AM] Loading 1 platforms...
[11/26/2016, 1:39:58 AM] [eDomoticz] Initializing eDomoticz platform...
[11/26/2016, 1:39:59 AM] Loading 0 accessories...
[11/26/2016, 1:39:59 AM] [eDomoticz] There was a problem connecting to Domoticz.
I try to run in debug mode with

Code: Select all

DEBUG=* homebridge -D
but I was not able to find log files in /var/log...

Someone could help me?

Many thanks

Re: homebridge-edomoticz Plugin

Posted: Saturday 26 November 2016 12:31
by andreasmoritz
simon_rb wrote:
andreasmoritz wrote:I´ve got homebridge-edomoticz set up and all my Domoticz accessories and switches are shown in the Home-app / Eve app.

1. If I flip a switch in Domoticz, i.e. turn on a light, that info are shown in the Home-app. (OK)

2. If i try to flip the switch in the Home app / Eve instead, it appears in the app as the light has been turned on. However, nothing happens with the light and the switch is still "Off" in Domoticz.

What is wrong - it is driving me crazy (especially after quite many reinstalls :( )
Silly question but have you setup an MQTT Broker?


Sent from my iPhone using Tapatalk
No, apparently not. I got it working after I added Mqtt under hardware. Thanks a lot! Hadn't seen any info about needing that.

Now Apple's Home app works great from home. However not working when not home, just says "updating"




Skickat från min iPhone med Tapatalk

homebridge-edomoticz Plugin

Posted: Saturday 26 November 2016 13:45
by simon_rb
Have you setup an iPad or Apple TV as a hub?

https://support.apple.com/en-gb/HT207057


Sent from my iPhone using Tapatalk

Re: homebridge-edomoticz Plugin

Posted: Saturday 26 November 2016 19:01
by andreasmoritz
I have, got My Apple tv set as a hub.


Skickat från min iPhone med Tapatalk

Re: homebridge-edomoticz Plugin

Posted: Saturday 26 November 2016 22:01
by simon_rb
Assuming it's an Apple TV 3/4.. if it's working correctly as a hub then it should work. It has nothing to do with edomoticz or homebridge. Mine works fine, Apple TV 4 as a hub..

:-)


Sent from my iPhone using Tapatalk

Re: homebridge-edomoticz Plugin

Posted: Saturday 26 November 2016 23:48
by andreasmoritz
Got it working, required a reboot


Skickat från min iPhone med Tapatalk

Re: homebridge-edomoticz Plugin

Posted: Saturday 26 November 2016 23:49
by simon_rb
Excellent :-)


Sent from my iPhone using Tapatalk

Re: homebridge-edomoticz Plugin

Posted: Sunday 27 November 2016 20:41
by malarcy
Having a problem with MQTT.

I have Domoticz (with the MQTT hardware device added), mosquitto and homebridge/edomoticz all running on the same host.
ks
MQTT and DOMOTICZ talking fine via mosquitto - I can set device values via mosquitto_pub ..... as per wiki, but when I enable MQTT in the config.json for homebridge/ebdomoticz I get a message, repeated every second saying Retrying MQTT connection (or words to that effect).

Any ideas on debug?

Thanks in advance

homebridge-edomoticz Plugin

Posted: Sunday 27 November 2016 20:44
by simon_rb
malarcy wrote:Having a problem with MQTT.

I have Domoticz (with the MQTT hardware device added), mosquitto and homebridge/edomoticz all running on the same host.
ks
MQTT and DOMOTICZ talking fine via mosquitto - I can set device values via mosquitto_pub ..... as per wiki, but when I enable MQTT in the config.json for homebridge/ebdomoticz I get a message, repeated every second saying Retrying MQTT connection (or words to that effect).

Any ideas on debug?

Thanks in advance
Are the ports and settings correct within the config file?

Re: homebridge-edomoticz Plugin

Posted: Sunday 27 November 2016 20:50
by simon_rb
I am just wondering if something is possible and thought this is the best place to ask :-)

I have certain things within Domoticz setup as dimmers which are not actually lights. eDomoticz quite rightly exposes them as dimmers and they work just fine. I was wondering if the fan accessory has a slider just like the lights? I've not got any fans so I can't test. If they do is there a way to manually change my dimmers I want to not show as lights within HomeKit? I don't want eDomoticz changed, I would like to edit them locally within the accessories folder maybe? Or I could be completely barking up the wrong tree. Be nice to say turn off the lights in the Living Room and for my surround sound not to go off lol. For now I have created a new room called devices and put them in there lol. Possible? Appreciate your ideas and help.. cheers :-)