Does anybody know if it is possible for an external program to open a connection to HomeSeer and get an instant report each time a device's value changes?
If so, and you can point to code samples, that would be appreciated (particularly, code samples in nodejs / Javscript).
Some more details ...
I'm using Homebridge with the Homeseer plugin. Homebridge's HomeSeer plugin currently gets status updates by polling HomeSeer (by default, every 60 seconds). While polling works O.K. for devices where you don't need instant updates, its ineffective for things like a door contact sensor when you want to trigger events that occur instantly upon, e.g., opening the door. Of course, you could just poll rapidly, but then HomeSeer seems to become unresponsive. I'd like to modify the Homebridge Homeseer plugin so that it opens a channel to HomeSeer and then gets status updates over that channel whenever device values change.
Is this possible?
If so, and you can point to code samples, that would be appreciated (particularly, code samples in nodejs / Javscript).
Some more details ...
I'm using Homebridge with the Homeseer plugin. Homebridge's HomeSeer plugin currently gets status updates by polling HomeSeer (by default, every 60 seconds). While polling works O.K. for devices where you don't need instant updates, its ineffective for things like a door contact sensor when you want to trigger events that occur instantly upon, e.g., opening the door. Of course, you could just poll rapidly, but then HomeSeer seems to become unresponsive. I'd like to modify the Homebridge Homeseer plugin so that it opens a channel to HomeSeer and then gets status updates over that channel whenever device values change.
Is this possible?
Comment