First, let me say that after some struggles, I am very happy with this solution. There were some dark moments that took some time to resolve, but I now seem to have a pretty decent, stable solution. I am still getting the occasional checksum error but it doesn't seem to affect the performance as it did when I first set the system up... I guess time will tell, I have only had it running about a day. But, it is much more responsive than it was.
Here are my questions:
1) Is there a way for a script to determine when the plugin is loaded and working? I have a background script (enclosed) to check the state of all my ALC devices (and a few others) every 5 seconds and move these results to MailLobby variables. I have to do this because of the device naming problem - devices are using special characters that MainLobby cannot handle ([, ], etc). When I first start HS, I get a bunch of subscript out of range problems until HS populates and updates. I am calling zones by number so I suspect those arrays are not populated until the plugin does its thing. Once the plugin is happy, no more errors.
2) Is there a way to have 1 trigger script if ANY HAI unit changes? If this is possible, I can forego #1 running every 5 seconds and simply setup that trigger to run when a unit has a state change and save cycles. Given I have several dozen ALC devices, I fret setting up that many triggers to accomplish this.
3) Any suggestions for a better solution? I only have 10 units programmed in the script now -- I fear that with 50+ devices polling every 5 seconds, my system will be wasting a lot of cycles just to populate the variables that "rarely" change.
I enclosed my script for those who have a similar need.
Thanks,
Here are my questions:
1) Is there a way for a script to determine when the plugin is loaded and working? I have a background script (enclosed) to check the state of all my ALC devices (and a few others) every 5 seconds and move these results to MailLobby variables. I have to do this because of the device naming problem - devices are using special characters that MainLobby cannot handle ([, ], etc). When I first start HS, I get a bunch of subscript out of range problems until HS populates and updates. I am calling zones by number so I suspect those arrays are not populated until the plugin does its thing. Once the plugin is happy, no more errors.
2) Is there a way to have 1 trigger script if ANY HAI unit changes? If this is possible, I can forego #1 running every 5 seconds and simply setup that trigger to run when a unit has a state change and save cycles. Given I have several dozen ALC devices, I fret setting up that many triggers to accomplish this.
3) Any suggestions for a better solution? I only have 10 units programmed in the script now -- I fear that with 50+ devices polling every 5 seconds, my system will be wasting a lot of cycles just to populate the variables that "rarely" change.
I enclosed my script for those who have a similar need.
Thanks,
Comment