homebridge-edomoticz Plugin

Moderator: leecollings

simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by simon_rb »

Ah, sorry Marci - was a few pages back and thought maybe you'd missed it lol.

Would be a good idea if it could be implemented


Sent from my iPhone using Tapatalk
niclasc
Posts: 28
Joined: Wednesday 09 December 2015 17:04
Target OS: Linux
Domoticz version: 4.10854
Location: Sweden
Contact:

Re: homebridge-edomoticz Plugin

Post by niclasc »

When I try to start Homebridge after installation I get this:

homebridge: command not found

What?
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 »

Because you didn't do it whilst standing on one leg?
*gazes into crystal ball*


How did you install homebridge? Which instructions did you use? Were any errors displayed during installation process?
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!
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by simon_rb »

Crack me up Marci


Sent from my iPhone using Tapatalk
Artic1980
Posts: 23
Joined: Monday 25 April 2016 17:37
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by Artic1980 »

Marci wrote:
Artic1980 wrote:i have this problem
sudo systemctl status homebridge.service -l
● homebridge.service - HomeBridge Service
Loaded: loaded (/lib/systemd/system/homebridge.service; enabled)
Active: failed (Result: exit-code) since gio 2016-10-13 20:00:50 CEST; 21s ag o
Process: 610 ExecStart=/usr/bin/homebridge (code=exited, status=203/EXEC)
Main PID: 610 (code=exited, status=203/EXEC)

ott 13 20:00:50 octopi systemd[1]: Starting HomeBridge Service...
ott 13 20:00:50 octopi systemd[1]: Started HomeBridge Service.
ott 13 20:00:50 octopi systemd[1]: homebridge.service: main process exited, code =exited, status=203/EXEC
ott 13 20:00:50 octopi systemd[1]: Unit homebridge.service entered failed state.


whi?
Run...

Code: Select all

DEBUG=* homebridge -D
...to get more useful info.
Homebridge command not found


Inviato dal mio iPhone utilizzando Tapatalk
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

homebridge-edomoticz Plugin

Post by simon_rb »

@TheRamon/Marci

I have pinched this off of another site which seems to be a workaround for the dimmer issue (on command being sent). Would this be possible to implement? I know it's for Homeseer but maybe a way for Domoticz to adopt it using edomoticz maybe? It's not perfect but should solve the problem

Taking a cue from b3nj1 above, I wrapped my HomeSeer.js "setValue: -> httpRequest" in a setTimeout() of 800ms. Now I can see in my HomeBridge log that the delayed dimming value command always fires after any 'on' command Siri sends when dimming. First time I've been able to control dimming up/down via Siri in a logical way! Thanks, b3nj1.


Sent from my iPhone using Tapatalk
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: homebridge-edomoticz Plugin

Post by Mazzokun »

Hi sometimes when I try to put on light with ios10 I get a red "unreachable" switch, so I research into terminal and I get

Code: Select all

● homebridge.service - HomeBridge Service
   Loaded: loaded (/lib/systemd/system/homebridge.service; enabled)
   Active: failed (Result: signal) since Sat 2016-10-15 23:04:31 CEST; 1h 25min ago
  Process: 890 ExecStart=/usr/bin/homebridge (code=killed, signal=SEGV)
 Main PID: 890 (code=killed, signal=SEGV)

Oct 15 23:04:18 raspberrypi systemd[1]: Starting HomeBridge Service...
Oct 15 23:04:18 raspberrypi systemd[1]: Started HomeBridge Service.
Oct 15 23:04:31 raspberrypi systemd[1]: homebridge.service: main process exited, code=killed, status=11/SEGV
Oct 15 23:04:31 raspberrypi systemd[1]: Unit homebridge.service entered failed state.

$ DEBUG=* homebridge -D

/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
    ^

Error: /usr/lib/arm-linux-gnueabihf/libavahi-client.so.3: unexpected PLT reloc type 0x56
    at Error (native)
    at Object.Module._extensions..node (module.js:568:18)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
So I send a reboot and Then Homebridge start working but I have those WARNINGS and Error..

Code: Select all

$ DEBUG=* homebridge -D
*** 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>
[10/16/2016, 12:42:25 AM] Loaded plugin: homebridge-edomoticz
[10/16/2016, 12:42:25 AM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[10/16/2016, 12:42:25 AM] Registering platform 'homebridge-edomoticz.eDomoticz'
[10/16/2016, 12:42:25 AM] ---
[10/16/2016, 12:42:25 AM] Loaded config.json with 0 accessories and 1 platforms.
[10/16/2016, 12:42:25 AM] ---
[10/16/2016, 12:42:25 AM] Loading 1 platforms...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing eDomoticz platform...
[10/16/2016, 12:42:25 AM] [eDomoticz] Fetching Domoticz lights and switches...
[10/16/2016, 12:42:25 AM] Loading 0 accessories...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Accento Ingresso'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'CPU_Usage'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Cancellino Xmas'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Cupola Esterno'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Cupola Interno'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Cupola Xmas'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Facciata'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Faro Garage'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Faro Retro'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Fioriera'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Fotovoltaico'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Lampada Sala'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Lampione'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Lanterna Ingresso'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Lanterna Nonna'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Luci'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Luci Cancellino'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'MacBook'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Memory Usage'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Presa Volante'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Pulsante Cancello'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Riavvio Modem'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Riavvio RaspBerry'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'Riavvio WiFi'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'iPad'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'iPhone'...
[10/16/2016, 12:42:25 AM] [eDomoticz] Initializing platform accessory 'rgbw'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 021-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:59:19)
    at HAPServer.listen (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:157: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:111:16)
    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:369:14)
What I can do? Thank you very much
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 »

The warnings are normal. Explained on frontpage of homebridge GitHub.

The error...

Code: Select all

Error: listen EADDRINUSE :::51826
...means homebridge is already running. You can only run one instance.
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 »

Artic1980 wrote:
Marci wrote:
Artic1980 wrote:i have this problem
sudo systemctl status homebridge.service -l
● homebridge.service - HomeBridge Service
Loaded: loaded (/lib/systemd/system/homebridge.service; enabled)
Active: failed (Result: exit-code) since gio 2016-10-13 20:00:50 CEST; 21s ag o
Process: 610 ExecStart=/usr/bin/homebridge (code=exited, status=203/EXEC)
Main PID: 610 (code=exited, status=203/EXEC)

ott 13 20:00:50 octopi systemd[1]: Starting HomeBridge Service...
ott 13 20:00:50 octopi systemd[1]: Started HomeBridge Service.
ott 13 20:00:50 octopi systemd[1]: homebridge.service: main process exited, code =exited, status=203/EXEC
ott 13 20:00:50 octopi systemd[1]: Unit homebridge.service entered failed state.


whi?
Run...

Code: Select all

DEBUG=* homebridge -D
...to get more useful info.
Homebridge command not found


Inviato dal mio iPhone utilizzando Tapatalk
That's your problem. A symlink to homebridge doesn't exist in /usr/bin - this is covered in first post instructions.
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!
martijnm
Posts: 26
Joined: Thursday 04 February 2016 13:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

Re: homebridge-edomoticz Plugin

Post by martijnm »

For some reason I cannot use Homebridge anymore.

I have installed HomeBridge-eDomoticz with MQTT, loaded with PM2.

App name │ id │ mode │ pid │ status │ restart │ uptime │ memory
homebridge-edomoticz │ 0 │ fork │ 1925 │ online │ 0 │ 18h │ 43.891 M

However, when adding a new accessory with the Eve app it does not find HomeBridge. In iOS 9 I could easily reset HomeKit through settings > Privacy > Homekit. In iOS 10.1 (beta) this function does not exist. What to do?
rwijbenga
Posts: 20
Joined: Sunday 25 September 2016 22:59
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by rwijbenga »

martijnm wrote:For some reason I cannot use Homebridge anymore.

I have installed HomeBridge-eDomoticz with MQTT, loaded with PM2.

App name │ id │ mode │ pid │ status │ restart │ uptime │ memory
homebridge-edomoticz │ 0 │ fork │ 1925 │ online │ 0 │ 18h │ 43.891 M

However, when adding a new accessory with the Eve app it does not find HomeBridge. In iOS 9 I could easily reset HomeKit through settings > Privacy > Homekit. In iOS 10.1 (beta) this function does not exist. What to do?
What do you see when you view the status?

sudo systemctl status homebridge.service -l

Did you try to delete the accessories and persist folders?

I just delete the house in IOS when everything else fails and add it again....
kiala
Posts: 2
Joined: Sunday 16 October 2016 19:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by kiala »

Hi all,

I'm new to domoticz and testing homebridge and mydomoathome.
I had intalled both on my domoticz's pi and they both worked well, but my domoticz was low.
So i decided to remove them both and install them on another pi. I changed the config files in order to be able to connect to the remote pi where domoticz is installed.
It's ok for mydomoathome but i cannot connect with homebridge. I don't know what i'm doing wrong. Can anyone help me ?

Here's my homebridge start in debug mode :

Code: Select all

[xx@raspberrypi:~ $ DEBUG=* 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>
[2016-10-16 19:21:34] Loaded plugin: homebridge-edomoticz
[2016-10-16 19:21:34] Registering accessory 'homebridge-edomoticz.eDomoticz'
[2016-10-16 19:21:34] Registering platform 'homebridge-edomoticz.eDomoticz'
[2016-10-16 19:21:34] ---
[2016-10-16 19:21:34] Loaded plugin: homebridge-legacy-plugins
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.AD2USB'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.Carwings'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.ELKM1'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.FileSensor'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.GenericRS232Device'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.HomeMatic'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.HomeMaticThermo'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.HomeMaticWindow'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.HttpGarageDoorOpener'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.HttpHygrometer'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.HttpThermometer'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.Tesla'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.X10'
[2016-10-16 19:21:34] Registering accessory 'homebridge-legacy-plugins.mpdclient'
[2016-10-16 19:21:34] Registering platform 'homebridge-legacy-plugins.Domoticz'
[2016-10-16 19:21:34] Registering platform 'homebridge-legacy-plugins.HomeAssistant'
[2016-10-16 19:21:34] Registering platform 'homebridge-legacy-plugins.HomeSeer'
[2016-10-16 19:21:34] Registering platform 'homebridge-legacy-plugins.ISY'
[2016-10-16 19:21:34] Registering platform 'homebridge-legacy-plugins.LIFx'
[2016-10-16 19:21:34] Registering platform 'homebridge-legacy-plugins.SmartThings'
[2016-10-16 19:21:34] Registering platform 'homebridge-legacy-plugins.TelldusLive'
[2016-10-16 19:21:34] Registering platform 'homebridge-legacy-plugins.ZWayServer'
[2016-10-16 19:21:34] ---
[2016-10-16 19:21:34] Loaded config.json with 0 accessories and 1 platforms.
[2016-10-16 19:21:34] ---
[2016-10-16 19:21:34] Loading 1 platforms...
[2016-10-16 19:21:34] [eDomoticz] Initializing eDomoticz platform...
[2016-10-16 19:21:34] [eDomoticz] Fetching Domoticz lights and switches...
[2016-10-16 19:21:34] Loading 0 accessories...
[2016-10-16 19:21:35] [eDomoticz] There was a problem connecting to Domoticz.
And my config file :

Code: Select all


{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:22:3D:E3:CE:30",
        "port": 51826,
        "pin": "031-45-154"
    },

    "description": "This is an example configuration file with one fake accessory and one fake platform. You can use this as a template for creating your own configuration file containing devices you actually own.",

    "accessories": [ ],

    "platforms": [
        {
            "platform": "eDomoticz",
            "name": "eDomoticz",
            "server": "user:[email protected]",
            "port": "8080",
            "ssl": 0,
            "roomid": 0
        }
      ]
}
Changed my true user / password to paste here :)

I tried different roomid , ssl true / false, and nothing works.

Can you help me please ?

Thanks a lot !

Kiala
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: homebridge-edomoticz Plugin

Post by Mazzokun »

and now I have this error code :(

Code: Select all

pi@raspberrypi:~ $ sudo systemctl status homebridge.service -l
● homebridge.service - HomeBridge Service
   Loaded: loaded (/lib/systemd/system/homebridge.service; enabled)
   Active: failed (Result: exit-code) since Sun 2016-10-16 23:54:17 CEST; 26min ago
  Process: 1027 ExecStart=/usr/bin/homebridge (code=exited, status=1/FAILURE)
 Main PID: 1027 (code=exited, status=1/FAILURE)

Oct 16 23:54:17 raspberrypi homebridge[1027]: at Module.load (module.js:458:32)
Oct 16 23:54:17 raspberrypi homebridge[1027]: at tryModuleLoad (module.js:417:12)
Oct 16 23:54:17 raspberrypi homebridge[1027]: at Function.Module._load (module.js:409:3)
Oct 16 23:54:17 raspberrypi homebridge[1027]: at Module.require (module.js:468:17)
Oct 16 23:54:17 raspberrypi homebridge[1027]: at require (internal/module.js:20:19)
Oct 16 23:54:17 raspberrypi homebridge[1027]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:24:20)
Oct 16 23:54:17 raspberrypi homebridge[1027]: at Module._compile (module.js:541:32)
Oct 16 23:54:17 raspberrypi homebridge[1027]: at Object.Module._extensions..js (module.js:550:10)
Oct 16 23:54:17 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
Oct 16 23:54:17 raspberrypi systemd[1]: Unit homebridge.service entered failed state.

Code: Select all

pi@raspberrypi:~ $ DEBUG=* homebridge -D
/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:35
    throw ex;
    ^

Error: /usr/lib/arm-linux-gnueabihf/libavahi-client.so.3: ELF file OS ABI invalid
    at Error (native)
    at Object.Module._extensions..node (module.js:568:18)
    at Module.load (module.js:458:32)
    at tryModuleLoad (module.js:417:12)
    at Function.Module._load (module.js:409:3)
    at Module.require (module.js:468:17)
    at require (internal/module.js:20:19)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/dns_sd.js:24:20)
    at Module._compile (module.js:541:32)
    at Object.Module._extensions..js (module.js:550:10)
User avatar
TheRamon
Posts: 126
Joined: Tuesday 12 July 2016 11:32
Target OS: Raspberry Pi / ODroid
Domoticz version: BETA
Location: NL/DE
Contact:

Re: homebridge-edomoticz Plugin

Post by TheRamon »

@Marci:

Yeah, I ment caching locally in eDomoticzAccessory. Something like isOn = false, and update that value through the status JSON of Domoticz. Whenever iOS asks te status of that device, we return the isOn value of eDomoticzAccessory. That'd be instant. We now make a HTTP request to Domoticz first to ask what the status is, and return that one. Could take ages if Domoticz does not want to answer us at that moment.

@simon_rb:
Is dimming still not working for you? Whenever I turn on my dimmer now it turns on, and dims to 100%.

@kiala:
Is Domoticz running on port 8080 on that Raspberry Pi too? And is the IP of your other Pi really 192.168.0.96?
Try http://192.168.0.96:8080/json.htm?type= ... filter=all in your browser. See what that gives you. You should probably get a username/password dialog first.

@Mazzokun:

"ELF file OS ABI invalid" is your error. Looks like some internal issue with libavahi. That's not something our plugin uses, but Homebridge does. Maybe try with those guys? I googled the error and seems like something with your distribution of Linux. You might need to re-install homebridge & libavahi.
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

Re: homebridge-edomoticz Plugin

Post by simon_rb »

TheRamon, no it's because the way the way my dimmers work. If the dimmer is already on then try to dim it goes through a stage of dimming and brightening. Nothing you've done, just seems HomeKit sends an on command then the dim command. Just doesn't work with my dimmers. Not a real issue. I just won't dim them via HomeKit although if I ask Siri to dim the lights it will work? If I say set the brightness it send share on command lol.

Good luck with the Caching. That would be more handy


Sent from my iPhone using Tapatalk
martijnm
Posts: 26
Joined: Thursday 04 February 2016 13:06
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.530
Location: Emmen, Drenthe
Contact:

Re: homebridge-edomoticz Plugin

Post by martijnm »

rwijbenga wrote:What do you see when you view the status?
sudo systemctl status homebridge.service -l

Did you try to delete the accessories and persist folders?
I just delete the house in IOS when everything else fails and add it again....

When running systemctl, I get an error message

# systemctl status homebridge.service -l
-bash: systemctl: command not found

I have deleted ~/.homebridge/persist and ~/.homebridge/accessories. Renamed HomeBridge, restarted and rebooted everything. No success.

In HomeKit on iOS10 how can I delete my house? I don't see this option anywhere..
simon_rb
Posts: 612
Joined: Wednesday 07 August 2013 19:09
Target OS: -
Domoticz version:
Location: UK
Contact:

homebridge-edomoticz Plugin

Post by simon_rb »

To delete house in iOS 10 it's in the iOS 10 Home App itself. Arrow top left corner then scroll to bottom and "Remove Home"


Sent from my iPhone using Tapatalk
Mazzokun
Posts: 89
Joined: Thursday 28 April 2016 23:55
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Location: Milan, Italy
Contact:

Re: homebridge-edomoticz Plugin

Post by Mazzokun »

I format and reinstall everything from the beginning.. I got this

Code: Select all

pi@raspberrypi:~ $ systemctl -l status homebridge
● homebridge.service - HomeBridge Service
   Loaded: loaded (/lib/systemd/system/homebridge.service; enabled)
   Active: failed (Result: exit-code) since Mon 2016-10-17 15:12:44 UTC; 2min 52s ago
  Process: 1146 ExecStart=/usr/bin/homebridge (code=exited, status=203/EXEC)
 Main PID: 1146 (code=exited, status=203/EXEC)
This is exactly what I done from the very beginning:

Code: Select all


sudo raspi-config
sudo apt-get update
sudo apt-get upgrade
sudo reboot

sudo rpi-update
sudo reboot

sudo apt-get install libdevice-serialport-perl
sudo apt-get install telnet


mkdir ~/domoticz
cd ~/domoticz
wget http://releases.domoticz.com/releases/release/domoticz_linux_armv7l.tgz
tar xvfz domoticz_linux_armv7l.tgz
rm domoticz_linux_armv7l.tgz

sudo cp domoticz.sh /etc/init.d
sudo chmod +x /etc/init.d/domoticz.sh
sudo update-rc.d domoticz.sh defaults

cd ~/domoticz
sudo ./domoticz
[ctrl-c]
sudo service domoticz.sh start



# INSTALL HOMEBRIDGE
cd ~/
sudo apt-get install apt-transport-https
sudo apt-get remove nodejs
sudo rm -rf /usr/local/{lib/node{,/.npm,_modules},bin,share/man}/{npm*,node*,man1/node*} /var/db/receipts/org.nodejs.*
hash -r
wget https://nodejs.org/dist/v6.3.1/node-v6.3.1-linux-armv7l.tar.gz
tar -xvf node-v6.3.1-linux-armv7l.tar.gz
cd node-v6.3.1-linux-armv7l
sudo cp -R * /usr/local/
cd ~/

sudo apt-get install libavahi-compat-libdnssd-dev
sudo apt-get install npm
sudo npm install -g homebridge --unsafe-perm
sudo npm install -g homebridge-edomoticz --unsafe-perm

mkdir ~/.homebridge

sudo pico ~/.homebridge/config.json

——Config.json
                                                      
{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:21:4E:E7:DF: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
        }
    ],
    "accessories": []
}

——

sudo pico /lib/systemd/system/homebridge.service

——
[Unit]
Description=HomeBridge Service
After=multi-user.target

[Service]
User=pi
Type=idle
ExecStart=/usr/bin/homebridge

[Install]
WantedBy=multi-user.target

———

sudo chmod 644 /lib/systemd/system/homebridge.service
sudo systemctl daemon-reload
sudo systemctl enable homebridge.service
sudo reboot

#STATUS HOMEBRIDGE
sudo systemctl status homebridge.service -l


if I DEBUG=* homebridge -D

Code: Select all

pi@raspberrypi:~ $ DEBUG=* homebridge -D
*** 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>
[10/17/2016, 7:18:25 PM] Loaded plugin: homebridge-edomoticz
[10/17/2016, 7:18:25 PM] Registering accessory 'homebridge-edomoticz.eDomoticz'
[10/17/2016, 7:18:25 PM] Registering platform 'homebridge-edomoticz.eDomoticz'
[10/17/2016, 7:18:25 PM] ---
[10/17/2016, 7:18:25 PM] Loaded config.json with 0 accessories and 1 platforms.
[10/17/2016, 7:18:25 PM] ---
[10/17/2016, 7:18:25 PM] Loading 1 platforms...
[10/17/2016, 7:18:25 PM] [eDomoticz] Initializing eDomoticz platform...
[10/17/2016, 7:18:25 PM] [eDomoticz] Fetching Domoticz lights and switches...
[10/17/2016, 7:18:26 PM] Loading 0 accessories...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Accento Ingresso'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'CPU_Usage'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Cupola Esterno'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Cupola Interno'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Cupola Xmas'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Facciata'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Faro Retro'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Fioriera'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Fotovoltaico'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Lampada Sala'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Lampione'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Lanterna Ingresso'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Lanterna Nonna'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Luci'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Luci Cancellino'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'MacBook'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Memory Usage'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Pulsante Cancello'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Riavvio Modem'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Riavvio RaspBerry'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'Riavvio WiFi'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'iPad'...
[10/17/2016, 7:18:26 PM] [eDomoticz] Initializing platform accessory 'iPhone'...
Scan this code with your HomeKit App on your iOS device to pair with Homebridge:
                       
    ┌────────────┐     
    │ 031-45-154 │     
    └────────────┘     
                       
  EventedHTTPServer Server listening on port 51826 +0ms
[10/17/2016, 7:18:26 PM] Homebridge is running on port 51826.
  EventedHTTPServer [::ffff:13.3.89.220] New connection from client +1s
  EventedHTTPServer [::ffff:13.3.89.220] HTTP server listening on port 45433 +4ms
  EventedHTTPServer [::ffff:13.3.89.220] HTTP request: /pair-verify +24ms
  HAPServer [CC:21:4E:E7:DF:33] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:21:4E:E7:DF:33] Pair verify step 1/2 +9ms
  EventedHTTPServer [::ffff:13.3.89.220] HTTP Response is finished +51ms
  EventedHTTPServer [::ffff:13.3.89.220] HTTP request: /pair-verify +41ms
  HAPServer [CC:21:4E:E7:DF:33] HAP Request: POST /pair-verify +1ms
  HAPServer [CC:21:4E:E7:DF:33] Pair verify step 2/2 +3ms
  HAPServer [CC:21:4E:E7:DF:33] Client 26DFF16F-5B3E-4454-9CFB-B44E0AE8CBEE verification complete +9ms
  EventedHTTPServer [::ffff:13.3.89.220] HTTP Response is finished +3ms
  EventedHTTPServer [::ffff:13.3.89.220] HTTP request: /accessories +18ms
  HAPServer [CC:21:4E:E7:DF:33] HAP Request: GET /accessories +0ms
  EventedHTTPServer [::ffff:13.3.89.220] HTTP Response is finished +26ms
  EventedHTTPServer [::ffff:13.3.89.220] HTTP request: /characteristics +458ms
  HAPServer [CC:21:4E:E7:DF:33] HAP Request: PUT /characteristics +1ms
  Accessory [Homebridge] Processing characteristic set: [{"aid":2,"iid":11,"ev":true},{"aid":2,"iid":14,"ev":true},{"aid":3,"iid":11,"ev":true},{"aid":3,"iid":14,"ev":true},{"aid":4,"iid":11,"ev":true},{"aid":4,"iid":14,"ev":true},{"aid":5,"iid":11,"ev":true},{"aid":5,"iid":14,"ev":true},{"aid":6,"iid":11,"ev":true},{"aid":6,"iid":14,"ev":true},{"aid":7,"iid":11,"ev":true},{"aid":7,"iid":14,"ev":true},{"aid":8,"iid":11,"ev":true},{"aid":8,"iid":14,"ev":true},{"aid":9,"iid":11,"ev":true},{"aid":9,"iid":14,"ev":true},{"aid":10,"iid":13,"ev":true},{"aid":10,"iid":16,"ev":true},{"aid":11,"iid":11,"ev":true},{"aid":11,"iid":14,"ev":true},{"aid":12,"iid":11,"ev":true},{"aid":12,"iid":14,"ev":true},{"aid":13,"iid":11,"ev":true},{"aid":13,"iid":14,"ev":true},{"aid":14,"iid":11,"ev":true},{"aid":14,"iid":14,"ev":true},{"aid":15,"iid":11,"ev":true},{"aid":15,"iid":14,"ev":true},{"aid":16,"iid":11,"ev":true},{"aid":16,"iid":14,"ev":true},{"aid":17,"iid":11,"ev":true},{"aid":17,"iid":14,"ev":true},{"aid":18,"iid":11,"ev":true},{"aid":18,"iid":14,"ev":true},{"aid":19,"iid":11,"ev":true},{"aid":19,"iid":14,"ev":true},{"aid":20,"iid":11,"ev":true},{"aid":20,"iid":14,"ev":true},{"aid":21,"iid":11,"ev":true},{"aid":21,"iid":14,"ev":true},{"aid":22,"iid":11,"ev":true},{"aid":22,"iid":14,"ev":true},{"aid":23,"iid":11,"ev":true},{"aid":23,"iid":14,"ev":true},{"aid":24,"iid":11,"ev":true},{"aid":24,"iid":14,"ev":true}] +37ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +4ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
  Accessory [Homebridge] Registering Characteristic "Reachable" for events +1ms
  Accessory [Homebridge] Registering Characteristic "Category" for events +0ms
so in debug it works.. either no.. What? Why? :( :| :(
Last edited by Mazzokun on Monday 17 October 2016 19:21, edited 1 time in total.
kiala
Posts: 2
Joined: Sunday 16 October 2016 19:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by kiala »

@kiala:
Is Domoticz running on port 8080 on that Raspberry Pi too? And is the IP of your other Pi really 192.168.0.96?
Try http://192.168.0.96:8080/json.htm?type= ... filter=all in your browser. See what that gives you. You should probably get a username/password dialog first.
Yes i have two pi's :

IP finishing with 96 is the pi that has domoticz installed. (and only domoticz). The port is OK too.
IP finishing with 99 is the pi that has homebridge installed (and doesn't have domoticz).

I have added the option "Do not ask for password in local network", and if i try the http address you gave me, it's ok and i have all the devices now. So i think it's an authentification problem. But my user and password were correct.

'm going to try as is, but i had noticed that my domoticz runs slow (maybe 10 seconds to open the a web page, switches or dashboard) when this parameter (don't ask for password on local network) is set. I set it yesterday and all was OK, (before changing to the other pi) but after a few hours , domoticz was terribly slow. I unset this parameter and domoticz worked well, 1 second to load a page). I'm going to do some tests and verify after 1 or 2 days.

Thans a lot .

Kiala
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 »

Which branch of the plugin are you using? There were some authentication fixes put in place in the mqtt-integration branch over on github... update to this first...

https://github.com/PatchworkBoy/homebri ... ntegration

Download and copy the contents over the top of the contents of your current homebridge-edomoticz folder... and update your config.json as per further down that page... leave mqttenable set to 0 to run the mqtt branch without mqtt.
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!
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests