sjenkins Posted September 23 Posted September 23 (edited) Ok, the re-write and validation of G2 & G3 is complete. Unfortunately, our sample size in testing is one of each system ; but here we go! The feature set is short but the code clean-up and resiliency should make up for it. polling 60 shortPoll, 600 longPoll (should roll out as default) 60 shortPoll is how often G2 will poll the gateway (same as before but was longPoll) to update (you can try shorter but you may flood the G2 gateway, YMMV) shortPoll also flips the ST cmd for heartbeat, re-starts the G3 client if it fails 600 longPoll is how often G3 will poll the gateway. Has been moved out to 10min as this is really just belt/suspenders for G3. Almost not needed as I have found the sse client is more than able to keep G3 updates accurate. longPoll does nothing for G2 controller ST cmd still tracks heartbeat, easy to monitor in a program ST status is tracking connected/disconnected, basically if the plugin is running number of nodes has been added and can be used as a check for how many shades + scenes you have discovered. G3 , complete re-write of the sse event client which is much much more resilient and less resources shades complete rewrite, should just work scenes G3 activation is now calculated. MUCH quicker and more accurate. Works even when the mobile app is blank. also a complete re-write Take a look at the code if you are interested on GITHUB . I welcome feedback & obviously value bug reports. NOTE!!! - there are a number of profile changes, if you are writing overtop of a current node, you will likely need to hit the load profile button and re-load eisy-ui or the AC. VERSION = '1.13.0' """ 1.13.0 DONE polling rewrite, controller: shortPoll=G2 poll, heartbeat for all, re-start G3 events, longPoll=G3 poll DONE polling rewrite, shade: shortPoll: re-start events if stopped, longPoll: not-used DONE polling rewrite, scene: shortPoll: re-start events if stopped, manually clear G2 scene activate, longPoll: not-used NOTE default & recommend setting shortPoll=60, longPoll=600 DONE major re-write of function and Event routines DONE add number of nodes managed by controller to controller node Edited September 23 by sjenkins
Recommended Posts