PatchworkBoy / homebridge-edomoticz

Domoticz Homebridge-Plugin
Other
118 stars 43 forks source link

Device status updates in the home application #97

Closed djrams10 closed 6 years ago

djrams10 commented 7 years ago

The status of door contactors and movements are very long to update. Does anyone have the solution to this problem? thank you very much

simonrb2000 commented 7 years ago

Is it just those or is it all devices? I've noticed that changes either don't happen or take a while if the home app is open..

djrams10 commented 7 years ago

Thank you for your answer. These are all devices that are in domoticz. Even if the home application is open, the response time is very long

rswilem commented 7 years ago

@djrams10 Are you using MQTT by any chance? Please check ~/.homebridge/config.json.

PS. Are you running the latest homebridge? They solved an issue about this. You can check using npm -g outdated.

simonrb2000 commented 7 years ago

Mine was due to me not running MQTT when I thought I was! Mines fine now I updated my config file

djrams10 commented 7 years ago

thank you. How do you configure mqtt? thank you

djrams10 commented 7 years ago

Thanks for your help, I installed homebridge on a synology. With docker.

djrams10 commented 7 years ago

I'm french, sorry for my english.

rswilem commented 7 years ago

@djrams10 Please read the following: https://github.com/PatchworkBoy/homebridge-edomoticz#configuration

madcat-nl commented 7 years ago

i also encountered this issue before, after installing the MQTT service like explained above, do not forget to add the hardware to domoticz. You probably will see an error like this: [eDomoticz] There was an error while getting the MQTT Hardware Device from Domoticz. Please verify that you have added the MQTT Hardware Device and that the hardware device is enabled.

This will explain how to solve it: https://www.domoticz.com/wiki/MQTT#Add_hardware_.22MQTT_Client_Gateway.22

When you have done it correctly homebrige you should say: [eDomoticz] Successfully connected to MQTT broker.

Then the IOS devices will be updated near realtime instead of when you request an update from you IOS device

djrams10 commented 7 years ago

Thank you all for your help. MQTT is it possible to use it with a synology? Thank you. The homebridge version is 0.4.25. Is this the right one? Because I always have the same problem.

rswilem commented 7 years ago

@madcat-nl Thank you for your explanation. Good add!

@djrams10 MQTT on Synology should not be a problem. Also your homebridge version seems OK as it is the latest version. 👍🏼