Skip to content

Polling the Hub

reneboer edited this page Feb 20, 2019 · 4 revisions

Using the standard settings the connection between your Vera (or openLuup device) and the Hub is kept open. This is required to assure any changes initiated by the Harmony remote or mobile app is correctly reflected on your Vera. If for some reason the connection lost, the plugin will try to reconnect every five minutes until it succeeds.

However, there may be times you do not want this. For example, if you turn off your Hub in Away or Vacation mode.

For this use the SetHubPolling action. Turn it off when needed. It will still be possible to use the plugin and send commands to your Harmony Hub, however you will miss status updates.

Note that the polling will only be stopped when the Hub is off, that is, the CurrentActivityID is -1. When turning it on again, the constant connection is restored and the plugin is fully functional again.

Turn off polling;

rc, rs, jb, rarg = luup.call_action("urn:rboer-com:serviceId:Harmony1", " SetHubPolling",{newPollingFlag=”0”},28)

Turn on polling;

rc, rs, jb, rarg = luup.call_action("urn:rboer-com:serviceId:Harmony1", " SetHubPolling",{newPollingFlag=”1”},28)

Next: Activity start details

Back to User Guide index