Feilner / homebridge-plc

Homebridge plugin for Siemens Step7 and compatible PLCs
MIT License
12 stars 3 forks source link

Add adaptive Polling for certain accessories #3

Closed Feilner closed 3 years ago

Feilner commented 3 years ago

Some accessories like WindowCovering, Window or Valve are requiring that states are pushed towards home kit. E.g. vor Valve after doing a Activateit is necessary to a updated value of InUse. Otherwise the the spinning icon in the home app does not disappear.

Similar is for WindowCovering her it is likly thet the CurrentPosition needs to be pushed.

Feilner commented 3 years ago

Prepared a fix that after a set of a value direly a push is done. Planed is to support the delayed set by a defined polling rate.