mgbowman / openhab-addons

The next-generation open Home Automation Bus (openHAB)
Eclipse Public License 2.0
13 stars 2 forks source link

Initial state of client undefined #5

Closed mgbowman closed 4 years ago

mgbowman commented 4 years ago

Discussed here:

https://community.openhab.org/t/ubiquiti-unifi-binding-feature-discussion/14520/1010?u=mgbowman

mgbowman commented 4 years ago

Initially this was done on purpose in case the controller had a "network hiccup" where it went offline and came back online quickly - it wouldn't change the state of any channels.

Now, there are two distinctive cases of (1) controller offline and (2) controller online + client not returned by the controller. In the 2nd case, the channels are now set to sane defaults.

If the controller goes / is offline, the original functionality is retained - the channels will not change and they keep their last values returned by the controller.

mgbowman commented 4 years ago