homebridge-openHAB icon indicating copy to clipboard operation
homebridge-openHAB copied to clipboard

periodic polling for changes in sitemap/items?

Open jayekub opened this issue 8 years ago • 2 comments

i find myself restarting homebridge whenever i update my openhab config, because it doesn't seem to pickup changes automatically. is there some way to make it periodically refresh from OH?

jayekub avatar Apr 21 '16 06:04 jayekub

I use executeCommandLine in a rule to restart the homebridge service when i restart OpenHAB.

Not a perfect solution, but it works ok. I also have the same command bound to a switch so I restart by pressing a button in the ui.

rule "OpenHAB startup"
when
    System started
then
    executeCommandLine("sudo systemctl restart homebridge");
    logWarn("SystemStart", "Restarting Homebridge")
end

digiltd avatar Jun 28 '16 23:06 digiltd

thanks Sam. this is also what i ended up doing--works pretty well

On Tue, Jun 28, 2016 at 04:00:28PM -0700, Sam Turner wrote:

I use executeCommandLine in a rule to restart the homebridge service when i restart OpenHAB.

Not a perfect solution, but it works ok. I also have the same command bound to a switch so I restart by pressing a button in the ui.

rule "OpenHAB startup"
when
  System started
then

  executeCommandLine("sudo systemctl restart homebridge");
  logWarn("SystemStart", "Restarting Homebridge")
end

You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub: https://github.com/tommasomarchionni/homebridge-openHAB/issues/30#issuecomment-229209650

jayekub avatar Jun 29 '16 20:06 jayekub