Page 74 of 86

Re: homebridge-edomoticz Plugin

Posted: Friday 26 January 2018 18:07
by GCB2016
Thanks for your quick response. Unfortunately I am not really familiar with scripting. Is it supereasy to do (in this case)? If so, can you point me into a direction?

A quick Google pointed me here (https://www.linuxquestions.org/question ... ng-329962/), but I am have no idea if this is somewhat correct. And even then: what to do next? Where to place the script? I guess I need a CRON-job to check it every 10minutes or so? Thanks for helping me out!

Code: Select all

#! /bin/bash/
if [ "$(pidof homebridge)" ] 
then
  # running
else
  # not running
fi

Re: homebridge-edomoticz Plugin

Posted: Friday 26 January 2018 22:24
by Marci
poudenes wrote: Friday 26 January 2018 16:58
GCB2016 wrote: Friday 26 January 2018 14:22 Hi everyone (marci?), is it possible to have a switch in Domoticz that tells you if Homebridge is running or not?
You can create a bash script that check status of Homebridge and then update a TEXT Device
Or use Monit service
See https://makandracards.com/makandra/1145 ... using-curl & https://www.domoticz.com/wiki/Domoticz_ ... Fswitch_on

Re: homebridge-edomoticz Plugin

Posted: Friday 26 January 2018 22:27
by Marci
Have just resynced the git repo to NPM, nudging version to 2.1.0

This gives you wallsocket / light / fan / switch icons depending on Switch Icon specified within Domoticz.

Re: homebridge-edomoticz Plugin

Posted: Friday 26 January 2018 22:34
by Marci
rjblake wrote: Thursday 04 January 2018 23:11 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.10

If I change MQTT to 0, problem stops. Given all the constant restarts, the Homekit functionality becomes unusable.
Choose an MQTT Client, install it on your desktop, subscribe to the domoticz mqtt stream, find the message causing the error & post it. https://www.hivemq.com/blog/seven-best- ... ient-tools

Can’t begin to diagnose without knowing what the specific MQTT message is that’s causing it or what’s sending it.

Re: homebridge-edomoticz Plugin

Posted: Saturday 27 January 2018 0:47
by Nautilus
Marci wrote: Friday 26 January 2018 22:27 Have just resynced the git repo to NPM, nudging version to 2.1.0

This gives you wallsocket / light / fan / switch icons depending on Switch Icon specified within Domoticz.
Thanks for the update! One problem though, now getting this error:

Code: Select all

/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz_accessory.js:1260
					if (this.image.indexOf("Fan") > -1)
					               ^

TypeError: Cannot read property 'indexOf' of undefined
    at eDomoticzAccessory.getServices (/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz_accessory.js:1260:21)
    at eDomoticzAccessory.publishServices (/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz_accessory.js:79:23)
    at new eDomoticzAccessory (/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz_accessory.js:71:7)
    at eDomoticzPlatform.configureAccessory (/usr/lib/node_modules/homebridge-edomoticz/index.js:244:21)
    at Server._configCachedPlatformAccessories (/usr/lib/node_modules/homebridge/lib/server.js:352:24)
    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:88:8)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
edit: reverted back to 2.0.11 and working ok again

Re: homebridge-edomoticz Plugin

Posted: Saturday 27 January 2018 14:25
by Marci
Should be fixed now...

Re: homebridge-edomoticz Plugin

Posted: Sunday 28 January 2018 22:29
by Nautilus
Thanks, working now! :)

Re: homebridge-edomoticz Plugin

Posted: Monday 29 January 2018 20:16
by Marci
Update v2.1.2 pushed out to NPM - fixes Eve custom sensor recognition - Eve Weather now discontinued - devices using the old Eve Weather UUIDs blocked. Characteristics remade to align to current Eve recognised types: Visibility, WindSpeed, WindDirection, Pressure/Temp/Humidity, Rainfall.

As UUIDs have changed for device characteristics, if changes aren’t reflected within a few minutes after restarting homebridge, remove your ~/.homebridge/accessories folder and restart (to empty the cachedAccessories). This shouldn’t affect roomings etc.

Re: homebridge-edomoticz Plugin

Posted: Tuesday 30 January 2018 18:14
by Marci
Update 2.1.4 pushed out to NPM - excludeDevices now works on the device’s IDX value rather than ID value. Reason? ID value is not unique. Go take a look at settings > devices, sort by the ID column and see for yourselves (may not be the case for everyone, but I certainly have a PILE of devices all with identical IDs). Not sure why original author of this portion of code chose to use ID, so I’ve changed it over to use IDX. Refactor your config.json excludedDevices array as appropriate, grab the latest ver via npm.

I’m still waiting to hear back from those with the issue where excludedDevices continued to appear to see whether this change resolves their problem.

Re: homebridge-edomoticz Plugin

Posted: Tuesday 30 January 2018 19:38
by islandman
Thanks for the great Service, now hopping for button support :D

Re: homebridge-edomoticz Plugin

Posted: Tuesday 30 January 2018 20:28
by Marci
S'next on the list...

Re: homebridge-edomoticz Plugin

Posted: Tuesday 30 January 2018 21:22
by islandman
Marci wrote: Tuesday 30 January 2018 20:28 S'next on the list...
C O O L

Re: homebridge-edomoticz Plugin

Posted: Tuesday 30 January 2018 23:21
by Nautilus
Marci wrote: Saturday 27 January 2018 14:25 Should be fixed now...
Nautilus wrote: Sunday 28 January 2018 22:29 Thanks, working now! :)
I guess I spoke too soon, now I'm getting this (almost the same as last time):

Code: Select all

/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz_accessory.js:1263
					if (this.image.indexOf("Fan") > -1)
					               ^

TypeError: Cannot read property 'indexOf' of undefined
    at eDomoticzAccessory.getServices (/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz_accessory.js:1263:21)
    at eDomoticzAccessory.publishServices (/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz_accessory.js:79:23)
    at new eDomoticzAccessory (/usr/lib/node_modules/homebridge-edomoticz/lib/domoticz_accessory.js:71:7)
    at eDomoticzPlatform.configureAccessory (/usr/lib/node_modules/homebridge-edomoticz/index.js:245:21)
    at Server._configCachedPlatformAccessories (/usr/lib/node_modules/homebridge/lib/server.js:352:24)
    at Server.run (/usr/lib/node_modules/homebridge/lib/server.js:88:8)
    at module.exports (/usr/lib/node_modules/homebridge/lib/cli.js:40:10)
    at Object.<anonymous> (/usr/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:635:30)
    at Object.Module._extensions..js (module.js:646:10)
Could it be something in my setup as no one else has reported this? 2.0.11 is the last version I can confirm working.

Re: homebridge-edomoticz Plugin

Posted: Tuesday 30 January 2018 23:53
by Marci
Nope - my fault. I’d added a check one place when I needed to add it in two... gizza mo... (but yes, you do have an obscure device being detected as a switch that doesn’t have an image set in it’s JSON output, which I haven’t come across before).

Re: homebridge-edomoticz Plugin

Posted: Tuesday 30 January 2018 23:57
by Marci
npm update to 2.1.5 - should be fixed again!

Re: homebridge-edomoticz Plugin

Posted: Wednesday 31 January 2018 22:37
by Nautilus
Now confirmed to be working, thanks!

Re: homebridge-edomoticz Plugin

Posted: Saturday 03 February 2018 14:20
by Marci
Those waiting for Push buttons (single tap / dbl tap / long tap): see viewtopic.php?f=36&t=22015&p=169677#p169677 and comment there.

Re: homebridge-edomoticz Plugin

Posted: Saturday 03 February 2018 16:43
by Marci
Folks having issues with blinds showing incorrect current position on wake: Found something that may have been causing an issue to not retrieve the status into the correct characteristic. So (as well as ensuring you have MQTT correctly set up and activated so that changes are pushed in realtime from Domoticz to Homebridge, as it appears many of you don’t) update to the latest version (2.1.7) via npm, see if things are working better, and report back here.

Code: Select all

sudo npm update -g homebridge-edomoticz
Then restart homebridge.

Re: homebridge-edomoticz Plugin

Posted: Saturday 03 February 2018 17:35
by Marci
Update 2.1.9 pushed out to NPM - Maps UV Index sensors (eg: DarkSkies) with subtype of UVN128,UV138 to the Eve-recognised characteristic 05ba0fe0-b848-4226-906d-5b64272e05ce. Fixes missing break cases.

Code: Select all

sudo npm update -g homebridge
Then restart Homebridge.

Re: homebridge-edomoticz Plugin

Posted: Sunday 04 February 2018 9:04
by lsp242
I installed the edomitcz plugin, on mij domoticz only P1-usb is connected.

When I start homebridge, the gas and electra meter are not detected, and i get this message after start:

Code: Select all

events.js:183
      throw er; // Unhandled 'error' event
      ^

Error: listen EADDRINUSE :::51826
    at Object._errnoException (util.js:1022:11)
    at _exceptionWithHostPort (util.js:1044:20)
    at Server.setupListenHandle [as _listen2] (net.js:1351:14)
    at listenInCluster (net.js:1392:12)
    at Server.listen (net.js:1476:7)
    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:126:16)
    at Server.run (/usr/local/lib/node_modules/homebridge/lib/server.js:96:10)
In my config.json is the mqtt set on 1, but i didnt install any mqtt, do i have to?
When try to edit the config.json with nano i get the message: permission denied..

can anyone put me on the right track.. The installation on de raspberry is done on a edomoticz image.