homebridge-edomoticz Plugin

Moderator: leecollings

markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Hi

I followed the instructions. it now seems I've got homebridge running but when I tried to check the status it shows as Inacive (dead) :(

Code: Select all

pi@raspberrypi:~$ sudo /etc/init.d/homebridge start
Starting homebridge
pi@raspberrypi:~$ systemctl status homebridge
● homebridge.service - LSB: Start daemon at boot time
   Loaded: loaded (/etc/init.d/homebridge)
   Active: inactive (dead)
pi@raspberrypi:~$
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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: eDomoticz Homebridge-Plugin

Post by Marci »

Have you run it from the commandline by typing homebridge [enter] to see if any errors are thrown?
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!
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Back to the old "Illegal instruction" massages.

Code: Select all

pi@raspberrypi:~$ homebridge
Illegal instruction
pi@raspberrypi:~$
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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: eDomoticz Homebridge-Plugin

Post by Marci »

Got a spare SD card?
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!
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Yeah

Do you think I should start from scratch then?

Shouldn't be too much bother. I only move domoticz from Windows to a Pi a couple of weeks ago.
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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: eDomoticz Homebridge-Plugin

Post by Marci »

Summat certainly seems b0rked on your current install. Do a clean install of Jessie from raspberry Pi site, then see text file attachment at end of first post. That's my own standard 'get up n running' setup.
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!
MPaul
Posts: 1
Joined: Friday 27 May 2016 14:32
Target OS: Windows
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by MPaul »

Hi Marci.
Could I ask your help - I created water counters in Domoticz with type General and subtype Counter Incremental.
That counters got updated by ESP8266 and located at Utility tab in Domoticz.
I could see both total and instant values there.
But in Eve application, I see that counters as of Contact type - so no values, just 'NO' status.
Could you please tell what is wrong ?
I registered an issue for that in eDomoticz github and attached JSON output for that counters.
Thanks in advance.
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Marci wrote:Got a spare SD card?
hi

I think i've made a bit of progress (if you can call different errors progress!)

I started from a fresh install and it now looks like I have forever and homebridge installed

Code: Select all

pi@raspberrypi:~$ sudo find / -name forever
/root/.npm/registry.npmjs.org/forever
/root/.npm/forever
/usr/local/bin/forever
/usr/local/lib/node_modules/forever
/usr/local/lib/node_modules/forever/bin/forever
/usr/local/lib/node_modules/forever/lib/forever
pi@raspberrypi:~$ sudo find / -name homebridge
/root/.npm/homebridge
/home/pi/homebridge
/home/pi/homebridge/bin/homebridge
/usr/local/lib/node_modules/homebridge
/usr/local/lib/node_modules/homebridge/bin/homebridge
/usr/bin/homebridge
/usr/lib/node_modules/homebridge
/usr/lib/node_modules/homebridge/bin/homebridge
pi@raspberrypi:~$
Then type forever start /usr/local/lib/node_modules/homebridge/bin/homebridge

Code: Select all

pi@raspberrypi:~$ forever start /usr/local/lib/node_modules/homebridge/bin/homebridge
warn:    --minUptime not set. Defaulting to: 1000ms
warn:    --spinSleepTime not set. Your script will exit if it does not stay up for at least 1000ms
info:    Forever processing file: /usr/local/lib/node_modules/homebridge/bin/homebridge
pi@raspberrypi:~$
Then running tail -f `ls -t ~/.forever/*.log | grep -v '^d' | head -n1`

Code: Select all

pi@raspberrypi:~$ tail -f `ls -t ~/.forever/*.log | grep -v '^d' | head -n1`
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/lib/dns_sd.js:32:22)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
error: Forever detected script exited with code: 1
error: Script restart attempt #7
module.js:339
    throw err;
    ^

Error: Cannot find module '../build/Release/dns_sd_bindings'
    at Function.Module._resolveFilename (module.js:337:15)
    at Function.Module._load (module.js:287:25)
    at Module.require (module.js:366:17)
    at require (module.js:385:17)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/node_modules/mdns/lib/dns_sd.js:32:22)
    at Module._compile (module.js:435:26)
    at Object.Module._extensions..js (module.js:442:10)
    at Module.load (module.js:356:32)
    at Function.Module._load (module.js:311:12)
    at Module.require (module.js:366:17)
error: Forever detected script exited with code: 1
error: Script restart attempt #8
module.js:339
    throw err;
    ^
This is my config.json

Code: Select all

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:21:3E:E4:DE:33",
        "port": 51826,
        "pin": "031-45-154"
    },
    "description": "Configuration file for Domoticz platform.",
    "platforms": [
        {
            "platform": "eDomoticz",
            "name": "eDomoticz",
            "server": "xxxxx:[email protected]",
            "port": "8082",
            "ssl": 0,
            "roomid": 0
        }
    ],
    "accessories": [
    ]
}

I'd be so grateful if someone could let me know how to fix this
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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:

eDomoticz Homebridge-Plugin

Post by Marci »

Code: Select all

sudo apt-get install libavahi-compat-libdnssd-dev
sudo npm install -g homebridge --unsafe-perm
(Installs libdns then reinstalls 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!
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Thanks for you reply.

I did this but it looks like libdns was already installed

Code: Select all

pi@raspberrypi:~$ sudo apt-get install libavahi-compat-libdnssd-dev
Reading package lists... Done
Building dependency tree
Reading state information... Done
libavahi-compat-libdnssd-dev is already the newest version.
0 upgraded, 0 newly installed, 0 to remove and 6 not upgraded
followed on with the next part and reinstalled homebridge anyway. now getting:

Code: Select all

*** 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>
[Wed Jun 01 2016 21:02:08 GMT+0100 (BST)] Warning: skipping plugin found at '/usr/local/lib/node_modules/homebridge-edomoticz' since we already loaded the same plugin from '/usr/lib/node_modules/homebridge-edomoticz'.
[Wed Jun 01 2016 21:02:16 GMT+0100 (BST)] Loaded plugin: homebridge-edomoticz
[Wed Jun 01 2016 21:02:16 GMT+0100 (BST)] Registering accessory 'homebridge-edomoticz.eDomoticz'
[Wed Jun 01 2016 21:02:16 GMT+0100 (BST)] Registering platform 'homebridge-edomoticz.eDomoticz'
[Wed Jun 01 2016 21:02:16 GMT+0100 (BST)] ---
[Wed Jun 01 2016 21:02:16 GMT+0100 (BST)] Loaded config.json with 0 accessories and 1 platforms.
[Wed Jun 01 2016 21:02:16 GMT+0100 (BST)] ---
[Wed Jun 01 2016 21:02:17 GMT+0100 (BST)] Loading 1 platforms...
[Wed Jun 01 2016 21:02:17 GMT+0100 (BST)] [Domoticz] Initializing eDomoticz platform...
[Wed Jun 01 2016 21:02:17 GMT+0100 (BST)] [Domoticz] Fetching Domoticz lights and switches...
[Wed Jun 01 2016 21:02:17 GMT+0100 (BST)] Loading 0 accessories...
[Wed Jun 01 2016 21:02:18 GMT+0100 (BST)] [Domoticz] There was a problem connecting to Domoticz.
error: Forever detected script exited with code: 0
error: Script restart attempt #14
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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:

eDomoticz Homebridge-Plugin

Post by Marci »

The warnings are normal re: bonjour & avahi - just ignore those...

Somehow you've ended up with 2 copies of the plugin installed, fix with:

Code: Select all

sudo rm -rf /usr/lib/node_modules/homebridge-edomoticz


And it should then detect and use the copy from /usr/local/lib/node_modules/homebridge-edomoticz

Finally, what's causing homebridge to actually fail and exit, as it says, is because it can't connect to Domoticz... check ~/.homebridge/config.json: ipaddress and port. Port is usually 8080. IP will usually work as 127.0.0.1
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!
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Thanks so much for your help. I've been messing around with config.json and finally mannaged to get it so it looks like a load of my switches etc are loading but now I get this error at the end:

Code: Select all

[Wed Jun 01 2016 23:50:48 GMT+0100 (BST)] [Domoticz] Fetching Domoticz lights an                                                                                                 d switches...
[Wed Jun 01 2016 23:50:48 GMT+0100 (BST)] Loading 0 accessories...
[Wed Jun 01 2016 23:51:11 GMT+0100 (BST)] [Domoticz] Initializing platform accessory '/hdd/0/load/0 Used Space'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'AIRCON HEAT ON'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Aimee lamp'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Aimee phone'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Aimee socket'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Aimeeslight'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Alarm beep'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Back Garden Sensor'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Back door contact'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bathroom UFH'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bedroom blind'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bell 1'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Big dog'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bonz bed light'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bonz home'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bunny house power'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bunnys house light'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'CO Detector'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'CPU Core 1'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dining room blind'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dining room socket 1'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dining room socket 2'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Diningroomlight'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dog Switch'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dog barking'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Domo Pi'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Door Sensor'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Door contact 2'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Door sensor 2'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Doorsensor'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy Doorbel'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Aimeeslight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Diningroomlight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Hallwaylight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Landinglight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Loungelights'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Ourbedroomlight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Sparebedroomlight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Free'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Freezer Temp'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Fridge Temp'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Front Door Bell'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Front door contact'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Frontcamswitch'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Garden switch 1'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Garden switch 2'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Gardencamswitch'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Gardenlights'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Hallway socket'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Hallwaylight'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'HarmonyPowerOff'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'IPCAMswitch'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen Sensor'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen socket 1'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen socket 2'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen socket 3'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen socket 4'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchencamswitch'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kodi Lights'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kodi TV'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kodi kindle'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Landing'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Landing'...
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:219
      throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID);
      ^

Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: d157d998-ffc0-45a9-a7fc-f42455cfbc3a
    at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:219:13)
    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:346:24)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19
    at callbackLater (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:366:37)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:392:17)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:198:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:1082:10)
    at emitOne (events.js:82:20)
error: Forever detected script exited with code: 1
error: Script restart attempt #12
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Thanks so much for your help. I've been messing around with config.json and finally mannaged to get it so it looks like a load of my switches etc are loading but now I get this error at the end:

Code: Select all

[Wed Jun 01 2016 23:50:48 GMT+0100 (BST)] [Domoticz] Fetching Domoticz lights an                                                                                                 d switches...
[Wed Jun 01 2016 23:50:48 GMT+0100 (BST)] Loading 0 accessories...
[Wed Jun 01 2016 23:51:11 GMT+0100 (BST)] [Domoticz] Initializing platform accessory '/hdd/0/load/0 Used Space'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'AIRCON HEAT ON'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Aimee lamp'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Aimee phone'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Aimee socket'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Aimeeslight'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Alarm beep'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Back Garden Sensor'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Back door contact'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bathroom UFH'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bedroom blind'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bell 1'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Big dog'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bonz bed light'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bonz home'...
[Wed Jun 01 2016 23:51:12 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bunny house power'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Bunnys house light'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'CO Detector'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'CPU Core 1'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dining room blind'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dining room socket 1'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dining room socket 2'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Diningroomlight'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dog Switch'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dog barking'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Domo Pi'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Door Sensor'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Door contact 2'...
[Wed Jun 01 2016 23:51:13 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Door sensor 2'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Doorsensor'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy Doorbel'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Aimeeslight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Diningroomlight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Hallwaylight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Landinglight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Loungelights'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Ourbedroomlight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Dummy-Sparebedroomlight'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Free'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Freezer Temp'...
[Wed Jun 01 2016 23:51:14 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Fridge Temp'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Front Door Bell'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Front door contact'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Frontcamswitch'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Garden switch 1'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Garden switch 2'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Gardencamswitch'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Gardenlights'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Hallway socket'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Hallwaylight'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'HarmonyPowerOff'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'IPCAMswitch'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen Sensor'...
[Wed Jun 01 2016 23:51:15 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen socket 1'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen socket 2'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen socket 3'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchen socket 4'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kitchencamswitch'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kodi Lights'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kodi TV'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Kodi kindle'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Landing'...
[Wed Jun 01 2016 23:51:16 GMT+0100 (BST)] [Domoticz] Initializing platform accessory 'Landing'...
/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:219
      throw new Error("Cannot add a bridged Accessory with the same UUID as another bridged Accessory: " + existing.UUID);
      ^

Error: Cannot add a bridged Accessory with the same UUID as another bridged Accessory: d157d998-ffc0-45a9-a7fc-f42455cfbc3a
    at Bridge.Accessory.addBridgedAccessory (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:219:13)
    at Server.<anonymous> (/usr/local/lib/node_modules/homebridge/lib/server.js:346:24)
    at /usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/util/once.js:15:19
    at callbackLater (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:366:37)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge-edomoticz/index.js:392:17)
    at Request.self.callback (/usr/local/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:198:22)
    at emitTwo (events.js:87:13)
    at Request.emit (events.js:172:7)
    at Request.<anonymous> (/usr/local/lib/node_modules/homebridge-edomoticz/node_modules/request/request.js:1082:10)
    at emitOne (events.js:82:20)
error: Forever detected script exited with code: 1
error: Script restart attempt #12
Maybe I still have two copies of the plugin. This didn't seem to do anything:

Code: Select all

pi@raspberrypi:~$ sudo rm -rf /usr/lib/node_modules/homebridge-edomoticz
pi@raspberrypi:~$
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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:

eDomoticz Homebridge-Plugin

Post by Marci »

You have two switches/devices in Domoticz with the same name ('Landing'). Every device must have a unique name.
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!
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

So I have :oops:

My smartwares radiator added two devices, both with the same name. Ok, it's running now. Now to connect to Eve :)

Thanks again very much for all your time, effort and patience in helping me to get this installed.
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Oh dear. Fallen again on the home straight :(
image.jpeg
image.jpeg (47.62 KiB) Viewed 3058 times
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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: eDomoticz Homebridge-Plugin

Post by Marci »

How many devices do you have in total in 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!
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

Loads :oops: I think that is the problem

I've now created a roomplan with just those I need and changed the config.json from 0 to reflect this plan but whever I reboot it loads all of them again. How can I get it to only load the roomplan items?
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
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: eDomoticz Homebridge-Plugin

Post by Marci »

Post the content of your current config.json...
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!
markk
Posts: 267
Joined: Tuesday 14 January 2014 14:50
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: eDomoticz Homebridge-Plugin

Post by markk »

This is it. My Domoticz runs on port 8082

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": "Domoticz",
            "server": "127.0.0.1",
            "port": "8082",
            "ssl": 0,
            "roomid": 13
        }
    ],
    "accessories": []
}
EDIT: Ok, I managed to get it working. it seems that, no matter what editor I used, the config.json changes I made via Winscp weren't taking effect.

I stopped homebridge and did

Code: Select all

sudo pico ~/.homebridge/config.json
changed the room id from 0 to 13, saved with "ctrl o" then "ctrl x" and it all worked.
Running Domoticz on Pi3 with RFXtrx433e. LWRF power sockets and dimmer switches. Integrated my existing wirefree alarm PIRs and door contacts with domoticz. Geofencing with Pilot. Harmony Hub. Tado for Heating. Now playing with mysensors.
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests