PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

Aeotec Door/Window Sensor 2nd Edition. Works but no pushes #149

Closed jensolsson closed 6 years ago

jensolsson commented 6 years ago

I have enabled pushes when the door opens / closes in HomeKit, however I only get those occationally. It seem like if domoticz does not tell homebridge about the change but rather homebridge-edomoticz polls this from domoticz. Is there a possibility to fix this so that pushes are reliable?

Here is my config:

pi@domoticz:~/.homebridge $ cat config.json { "bridge": { "name": "Homebridge", "username": "", "port": 51826, "pin": "" }, "description": "Configuration file for (e)xtended Domoticz platform.", "platforms": [ { "platform": "eDomoticz", "name": "eDomoticz", "server": "127.0.0.1", "port": "80", "ssl": 0, "roomid": 2, "mqtt": 1, "loadscenes": "1" } ], "accessories": [] }

PatchworkBoy commented 6 years ago

If your MQTT install is working properly, then Domoticz pushes to homebridge pretty much instantaneously. If it isn't, then homebridge polls Domoticz on-demand (when you launch / refresh your HomeKit app).

Check MQTT is operating properly and that you've configured Domoticz correctly to use it, and homebridge-eDomoticz correctly (by the looks of it, that config.php is for an old version of homebridge-edomoticz)

PatchworkBoy commented 6 years ago

See https://www.domoticz.com/wiki/MQTT#Add_hardware_.22MQTT_Client_Gateway.22 for the Domoticz end.

jensolsson commented 6 years ago

If i check appversion.h it is 8922. This is not old is it? Maybe i have annold config? Anywhere i can find a new sample config?

PatchworkBoy commented 6 years ago

Front page of this repo.

Appversion.h has nothing to do with this plugin. Plugin version is in package.json

jensolsson commented 6 years ago

@PatchworkBoy ok thanks but comparing the sampel config on the front page to mine, the only difference is that I have "loadscenes": "1" whereas the sampel has "excludedDevices": []. Apart from that also name, username and pin differs. Do I need to do anything else in a default install? mqtt is set to one but how can I debug it? Is there a debug log that can be enabled etc?

jensolsson commented 6 years ago

I managed to fix it. Looking at the first page on this repo there is no mention on it but apparently there need to be a mqtt server installed also. I did not know that an external server was required. I thought mqtt server capabilities was built into domoticz. Maybe worth adding a note about this in the readme? Anyway now it seem to work very well :)