paller / wavin-controller

A controller for Wavin AHC 9000 written in Python with focus for use in home-automation.
11 stars 4 forks source link

Cache read values #13

Open paller opened 6 years ago

paller commented 6 years ago

There's no need to probe the controller for a value that has just been read as we can easily cache it.

Scenario: Some application reads a given temperature at 3 Hz. The thermostat only makes an update every 30 seconds or every 2 minutes, so there's little gained with the fast polling.

Solution: For read-only values we should cache it and only request an update from the controller over serial if the cached value is too old.