FlyingDiver / Indigo-miniUniFi

Minimalistic UniFi plugin for Indigo
MIT License
0 stars 0 forks source link

Delay before reporting off-line #4

Closed FlyingDiver closed 3 years ago

FlyingDiver commented 3 years ago

As discussed I would build in a user-specified delay before considering a client "actually" disconnected. Not sure why you'd want to delay a connection trigger (disconnection, yes, but connection?), but I suppose no harm in adding that option.

Originally posted by @jstewart99 in https://github.com/FlyingDiver/Indigo-miniUniFi/issues/1#issuecomment-714757188

FlyingDiver commented 3 years ago

The delay adds considerable complexity to the plugin. Right now, it reports off-line as soon as the controller data indicates that. Adding a delay means keeping a time-stamped list, etc, etc. That won't be in the first release. You could do the same thing with Indigo triggers and timers, if it really doesn't work for you.

FlyingDiver commented 3 years ago

I think I have a solution. I added an "offline_seconds" state to the device. So now you can set a trigger to do whatever for that device whenever that state value exceeds your threshold.

FlyingDiver commented 3 years ago

Not to be implemented. If you want delayed triggers for devices going off-line, use Indigo triggers or see the Occupatum plugin.