homebridge-edomoticz Plugin

Moderator: leecollings

GCB2016
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

Post 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
User avatar
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

Post 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
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!
User avatar
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

Post 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.
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!
User avatar
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

Post 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.
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!
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: homebridge-edomoticz Plugin

Post 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
User avatar
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

Post by Marci »

Should be fixed now...
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!
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: homebridge-edomoticz Plugin

Post by Nautilus »

Thanks, working now! :)
User avatar
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

Post 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.
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!
User avatar
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

Post 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.
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!
islandman
Posts: 53
Joined: Saturday 05 August 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by islandman »

Thanks for the great Service, now hopping for button support :D
User avatar
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

Post by Marci »

S'next on the list...
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!
islandman
Posts: 53
Joined: Saturday 05 August 2017 20:27
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by islandman »

Marci wrote: Tuesday 30 January 2018 20:28 S'next on the list...
C O O L
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: homebridge-edomoticz Plugin

Post 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.
User avatar
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

Post 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).
Last edited by Marci on Wednesday 31 January 2018 0:02, edited 2 times 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!
User avatar
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

Post by Marci »

npm update to 2.1.5 - should be fixed again!
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!
Nautilus
Posts: 722
Joined: Friday 02 October 2015 12:12
Target OS: Raspberry Pi / ODroid
Domoticz version: beta
Location: Finland
Contact:

Re: homebridge-edomoticz Plugin

Post by Nautilus »

Now confirmed to be working, thanks!
User avatar
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

Post 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.
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!
User avatar
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

Post 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.
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!
User avatar
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

Post 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.
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!
User avatar
lsp242
Posts: 54
Joined: Sunday 04 February 2018 8:51
Target OS: Raspberry Pi / ODroid
Domoticz version: 12923
Location: Netherlands
Contact:

Re: homebridge-edomoticz Plugin

Post 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.
Gadget freak - Domoticz beginner - ios and android user
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests