homebridge-edomoticz Plugin

Moderator: leecollings

User avatar
jaha
Posts: 55
Joined: Thursday 26 January 2017 10:26
Target OS: Linux
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by jaha »

Hi

Running the latest beta and have installed a door lock it shows up as device typeval 19 instead av the old type 11. Can I change this in the config.json or somewhere else? Thanks!
ergofreiberg
Posts: 8
Joined: Friday 06 May 2016 10:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by ergofreiberg »

woody4165 wrote:
ergofreiberg wrote:Hi!

Would it be possible to add Domoticz built-in Security Panel to Homebridge. Currently I have my Paradox EVO192 linked to Security Panel and in Domoticz everyting is working fine. Is there any point in opening issue about this topic?

Regards,
Ergo
Hi

how did you linked Paradox alarm to the security panel?

Thanks
Hi!

With Tertiush Paradox IP150-MQTT script

e.
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: homebridge-edomoticz Plugin

Post by woody4165 »

ergofreiberg wrote:
Hi!

With Tertiush Paradox IP150-MQTT script

e.
Can you share some scripts?

I'm in contact with Tertius in the OpenHab forum to understand how to get the status of the alarm from MQTT topic.
If I am OT on this topic we can open another one or via PM, if possible.

Thanks
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
ergofreiberg
Posts: 8
Joined: Friday 06 May 2016 10:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by ergofreiberg »

woody4165 wrote:
Can you share some scripts?

I'm in contact with Tertius in the OpenHab forum to understand how to get the status of the alarm from MQTT topic.
If I am OT on this topic we can open another one or via PM, if possible.

Thanks
As I don't know much about programming, I'm just using Node-Red and replacing every zones payload with suitable json.
woody4165
Posts: 476
Joined: Monday 14 March 2016 13:55
Target OS: Linux
Domoticz version: beta
Location: Rome, Italy
Contact:

Re: homebridge-edomoticz Plugin

Post by woody4165 »

Very interesting, I don't know much about Node-red, but a little bit of programming...
How do you test if the alarm is Armed or Disarmed?
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
edwin1234
Posts: 249
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: homebridge-edomoticz Plugin

Post by edwin1234 »

i,m trying to install this on the raspberry pi but i get these errors:

Code: Select all

pi@raspberrypi:~ $ 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>
[2017-02-20 18:47:41] Warning: skipping plugin found at '/usr/lib/node_modules/homebridge-edomoticz' since we already loaded the same plugin from '/usr/local/lib/node_modules/homebridge-edomoticz'.
[2017-02-20 18:47:47] Loaded plugin: homebridge-edomoticz
[2017-02-20 18:47:47] Registering accessory 'homebridge-edomoticz.eDomoticz'
[2017-02-20 18:47:47] Registering platform 'homebridge-edomoticz.eDomoticz'
[2017-02-20 18:47:47] ---
[2017-02-20 18:47:47] There was a problem reading your config.json file.
[2017-02-20 18:47:47] Please try pasting your config.json file here to validate it: http://jsonlint.com
[2017-02-20 18:47:47]
/usr/local/lib/node_modules/homebridge/lib/server.js:197
    throw err;
    ^

SyntaxError: Unexpected token

    at Object.parse (native)
    at Server._loadConfig (/usr/local/lib/node_modules/homebridge/lib/server.js:191:19)
    at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:52:38)
    at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
    at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
    at Module._compile (module.js:434:26)
    at Object.Module._extensions..js (module.js:452:10)
    at Module.load (module.js:355:32)
    at Function.Module._load (module.js:310:12)
    at Function.Module.runMain (module.js:475:10)

this is the config.json:

Code: Select all

{
    "bridge": {
        "name": "Homebridge",
        "username": "CC:21:3E:E4:DE:34",
        "port": 51825,
        "pin": "031-45-153"
    },
    "description": "Configuration file for (e)xtended Domoticz platform.",
    "platforms": [
        {
            "platform": "eDomoticz",
            "name": "eDomoticz",
            "server": "user:[email protected]",
            "port": "8080",
            "ssl": 0,
            "roomid": 2,
            "usescenes": 0,
            "mqttenable": 1,
            "mqttserver": "127.0.0.1",
            "mqttport": "1883",
            "mqttauth": 0,
            "mqttuser": "",
            "mqttpass": ""
           
            
        }
    ],
    "accessories": []
}
treid config.json in jsonlint and its a valid one,
can someone help me please?
thanks

EDIT: I noticed that if i do sudo homebridge it works!!!!!
why cant it not read the config.json when i type homebridge???????
boudicca
Posts: 26
Joined: Saturday 03 January 2015 20:30
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by boudicca »

because sudo set's home folder as /root whereas normal login its /home/username, make sure your json file is located /home/username with 775 permissions... I think....
mhogendoorn
Posts: 1
Joined: Friday 03 February 2017 8:24
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by mhogendoorn »

Edwin1234, your are missing coma behind server "server",
edwin1234
Posts: 249
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: homebridge-edomoticz Plugin

Post by edwin1234 »

Thanks For your reply
But moving json to home/pi
Doesnt help.
User avatar
marcotini
Posts: 28
Joined: Thursday 16 February 2017 17:51
Target OS: Raspberry Pi / ODroid
Domoticz version: Beta
Contact:

Re: homebridge-edomoticz Plugin

Post by marcotini »

Is it possible that this plugin make my sensor fake-on when they are off? Maybe it's the timout?
Because now that I deactivate Homebridge everythigs work fine.

I don't know fronte what can be caused, because it's happen sometimes with no reason (and at night turn on all the lights lol).
User avatar
DewGew
Posts: 579
Joined: Thursday 21 April 2016 12:01
Target OS: Raspberry Pi / ODroid
Domoticz version: V4.10618
Location: Sweden
Contact:

Re: homebridge-edomoticz Plugin

Post by DewGew »

I have a homebridge working perfectly. Is there a way to have several users thrue homebridge?
Next if I change server user do I only get the devices for that specific user if have several users in domoticz?

"platform": "eDomoticz",
"name": "eDomoticz",
"server": "dewgew:[email protected]",
"port": "8080",

//Br
Raspberry Pi 3 | domoticz | Aeon Labs Z-Stick GEN5 | RFlink gateway
NanoPi NEO-air | REGO6XX interface | Machinon theme | Homebridge | Domoticz Google Assistant | ideAlarm
edwin1234
Posts: 249
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: homebridge-edomoticz Plugin

Post by edwin1234 »

i can only start homebridge with: sudo homebridge with ssh it works ok but when i stop ssh homebridge stops too how to fix this?
i`m new to linux :oops:

how to autostart it?
homebridge is in : /usr/local/lib/node_modules/homebridge/bin
and config.json in : /usr/local/lib/node_modules/homebridge

thanks
miroslavpetrov
Posts: 33
Joined: Wednesday 03 February 2016 13:35
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by miroslavpetrov »

edwin1234 wrote:i can only start homebridge with: sudo homebridge with ssh it works ok but when i stop ssh homebridge stops too how to fix this?
i`m new to linux :oops:

how to autostart it?
homebridge is in : /usr/local/lib/node_modules/homebridge/bin
and config.json in : /usr/local/lib/node_modules/homebridge

thanks
Check the first page of the thread, the bottom of the first post, you will see a section called Run in background. There you have two options depending on the version of raspbian you are using.
Automation Hardware:
Domoticz on Raspberry Pi 3 with HomeBridge.
Zigbee2MQTT + Xiaomi sensors
Fibaro HomeCenter 2 + Fibaro Dimmer2 & Double Switch2 + Aeon Multisensor 6 + Remotec ZXT-120
Eastron SDM230
edwin1234
Posts: 249
Joined: Sunday 09 October 2016 20:20
Target OS: Raspberry Pi / ODroid
Domoticz version: 2021.1
Location: Nederland
Contact:

Re: homebridge-edomoticz Plugin

Post by edwin1234 »

I did try it snd get these error:

Code: Select all

The programs included with the Debian GNU/Linux system are free software;
the exact distribution terms for each program are described in the
individual files in /usr/share/doc/*/copyright.

Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent
permitted by applicable law.
Last login: Sat Feb 25 14:28:27 2017
pi@raspberrypi:~ $ sudo systemctl status homebridge.service -l
● homebridge.service - HomeBridge Service
   Loaded: loaded (/lib/systemd/system/homebridge.service; enabled)
   Active: active (running) since za 2017-02-25 14:28:26 CET; 1min 35s ago
 Main PID: 536 (homebridge)
   CGroup: /system.slice/homebridge.service
           ├─536 homebridge                                                
           ├─867 /bin/sh -c /bin/echo -n "$(npm -g prefix)/lib/node_modules"
           └─868 npm                                             

feb 25 14:28:57 raspberrypi node[536]: *** WARNING *** Please fix your application to use the native API of Avahi!
feb 25 14:28:57 raspberrypi node[536]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
feb 25 14:28:57 raspberrypi node[536]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
feb 25 14:28:57 raspberrypi node[536]: *** WARNING *** Please fix your application to use the native API of Avahi!
feb 25 14:28:57 raspberrypi node[536]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
feb 25 14:28:58 raspberrypi homebridge[536]: *** WARNING *** Please fix your application to use the native API of Avahi!
feb 25 14:28:58 raspberrypi homebridge[536]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node>
feb 25 14:28:58 raspberrypi homebridge[536]: *** WARNING *** The program 'node' called 'DNSServiceRegister()' which is not supported (or only supported partially) in the Apple Bonjour compatibility layer of Avahi.
feb 25 14:28:58 raspberrypi homebridge[536]: *** WARNING *** Please fix your application to use the native API of Avahi!
feb 25 14:28:58 raspberrypi homebridge[536]: *** WARNING *** For more information see <http://0pointer.de/avahi-compat?s=libdns_sd&e=node&f=DNSServiceRegister>
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 za 2017-02-25 14:30:25 CET; 21s ago
  Process: 536 ExecStart=/usr/local/lib/node_modules/homebridge/bin/homebridge (code=exited, status=1/FAILURE)
 Main PID: 536 (code=exited, status=1/FAILURE)

feb 25 14:30:25 raspberrypi homebridge[536]: at new Server (/usr/local/lib/node_modules/homebridge/lib/server.js:52:38)
feb 25 14:30:25 raspberrypi homebridge[536]: at module.exports (/usr/local/lib/node_modules/homebridge/lib/cli.js:26:16)
feb 25 14:30:25 raspberrypi homebridge[536]: at Object.<anonymous> (/usr/local/lib/node_modules/homebridge/bin/homebridge:17:22)
feb 25 14:30:25 raspberrypi homebridge[536]: at Module._compile (module.js:434:26)
feb 25 14:30:25 raspberrypi homebridge[536]: at Object.Module._extensions..js (module.js:452:10)
feb 25 14:30:25 raspberrypi homebridge[536]: at Module.load (module.js:355:32)
feb 25 14:30:25 raspberrypi homebridge[536]: at Function.Module._load (module.js:310:12)
feb 25 14:30:25 raspberrypi homebridge[536]: at Function.Module.runMain (module.js:475:10)
feb 25 14:30:25 raspberrypi systemd[1]: homebridge.service: main process exited, code=exited, status=1/FAILURE
feb 25 14:30:25 raspberrypi systemd[1]: Unit homebridge.service entered failed state.
pi@raspberrypi:~ $ 
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 »

Hi all,

Just checking in to say hello.. all is still working great here!

How is everyone?

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

but now that the img file no longer exists in the download that guides you have to follow?
thank you
madrian
Posts: 231
Joined: Saturday 27 August 2016 1:18
Target OS: -
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by madrian »

Hi guys, I am still experiencing problems with dimmer switches and Siri.

Few months ago I had problem with my LED controllers, now I have same problem with virtual dummy dimmer which opens an URL.

script_device_VU.lua:

Code: Select all

commandArray = {}
 if devicechanged['VU'] then
	print('Level : '..tonumber(otherdevices_svalues['VU']))
commandArray['OpenURL']="http://192.168.1.99/web/vol?set=set" .. otherdevices_svalues['VU']
end
return commandArray
If I manually change (with my fingers) the levels in the Home app, no problem it works.

Code: Select all

2017-03-23 23:12:12.423 User: Admin initiated a switch command (37/VU/Set Level)
2017-03-23 23:12:12.498 LUA: Level : 26
2017-03-23 23:12:12.498 EventSystem: Fetching url...
2017-03-23 23:12:12.498 EventSystem: Script event triggered: /home/xy/domoticz/scripts/lua/script_device_VU.lua
If I ask Siri to Set dimmer level example to 50%:

Code: Select all

2017-03-23 23:12:33.466 User: Admin initiated a switch command (37/VU/Set Level)
2017-03-23 23:12:33.539 LUA: Level : 49
2017-03-23 23:12:33.539 EventSystem: Fetching url...
2017-03-23 23:12:33.539 EventSystem: Script event triggered: /home/madrian/domoticz/scripts/lua/script_device_VU.lua
2017-03-23 23:12:33.467 (Dummy) Light/Switch (VU)
2017-03-23 23:12:33.546 User: Admin initiated a switch command (37/VU/On)
2017-03-23 23:12:33.620 LUA: Level : 0
2017-03-23 23:12:33.620 EventSystem: Fetching url...
2017-03-23 23:12:33.620 EventSystem: Script event triggered: /home/madrian/domoticz/scripts/lua/script_device_VU.lua
2017-03-23 23:12:33.547 (Dummy) Light/Switch (VU)
FIrst it is set the correct level 49, then immediately without any reasen it is switches to 0.

Same problem was with my LED controller. Very interesting. :?
morilm
Posts: 35
Joined: Friday 27 January 2017 12:57
Target OS: OS X
Domoticz version:
Contact:

Re: homebridge-edomoticz Plugin

Post by morilm »

Hi

I have the same wired issue happening. I update a switch with

commandArray['UpdateDevice']= persiana_idx..'|50|' ..value

I get value (dest) as fixed number to control the blinds (20, 50 or 80) so when I select a value in behind, I update it to the next value

persiana_idx = otherdevices_idx[tostring(next(devicechanged))]
dest = tonumber(otherdevices_svalues[next(devicechanged)]

if (dest >= 41 and dest < 71) then dest = 50 endif
commandArray['UpdateDevice']= persiana_idx..'|50|' ..dest

Change is ok and applied... but a few minutes, the value change to the real value...

We should have a ghost somewhere!!!!! :)
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 homebridge worked like a charm for 1 month since today. Now in debug mode gives me this message

Code: Select all

 EventedHTTPServer Server listening on port 51826 +0ms
/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/advertisement.js:56
  dns_sd.DNSServiceRegister(self.serviceRef, flags, ifaceIdx, name,
         ^

Error: dns service error: unknown
    at Error (native)
    at new Advertisement (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/advertisement.js:56:10)
    at Object.create [as createAdvertisement] (/usr/local/lib/node_modules/homebridge/node_modules/mdns/lib/advertisement.js:64:10)
    at Advertiser.startAdvertising (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Advertiser.js:43:30)
    at Bridge.Accessory._onListening (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/Accessory.js:539:20)
    at emitOne (events.js:96:13)
    at HAPServer.emit (events.js:188:7)
    at HAPServer._onListening (/usr/local/lib/node_modules/homebridge/node_modules/hap-nodejs/lib/HAPServer.js:190:8)
    at emitOne (events.js:96:13)
    at EventedHTTPServer.emit (events.js:188:7)
How can I fix this?
thank you
gerard76
Posts: 53
Joined: Wednesday 22 March 2017 9:13
Target OS: Raspberry Pi / ODroid
Domoticz version: 3.8153
Contact:

Re: homebridge-edomoticz Plugin

Post by gerard76 »

I'm having trouble to get the plugin active on boot. I have updated the systemd domoticz.service to boot homebridge after domoticz, but domoticz does not have enough time to get up and running.

Code: Select all

Apr  9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.493  Active notification Subsystems: email (1/12)
Apr  9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.521  WebServer(HTTP) started on address: :: with port 8080
Apr  9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.570  WebServer(SSL) started on address: :: with port 443
Apr  9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.606  Proxymanager started.
Apr  9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.619  Starting shared server on: :::6144
Apr  9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.640  TCPServer: shared server started...
Apr  9 08:40:04 pi domoticz[426]: 2017-04-09 08:40:04.646  RxQueue: queue worker started...
<snip>
pr  9 08:40:44 pi homebridge[560]: [4/9/2017, 8:40:44 AM] [eDomoticz] Initializing eDomoticz platform...
Apr  9 08:40:44 pi homebridge[560]: [4/9/2017, 8:40:44 AM] Loading 0 accessories...
Apr  9 08:40:45 pi homebridge[560]: [4/9/2017, 8:40:45 AM] [eDomoticz] There was a problem connecting to Domoticz.
Apr  9 08:40:46 pi homebridge[560]: - Error: socket hang up
I can manually restart homebridge and all works great, but I would love it if no manual intervention was needed.

Anybody have thoughts on this?
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest