anton-johansson / e-home

An E-Home controller server.
Apache License 2.0
1 stars 0 forks source link

More stable metrics interval #27

Closed anton-johansson closed 6 years ago

anton-johansson commented 6 years ago

When a device' metrics change, it sends an update to the controller. If there is no change (for example if the value is zero, and keeps being zero), no update will be sent. This means we won't send any metrics to the database. This will seem incorrect, for example if devices are turned off.

Instead, we should poll the devices at fixed, configurable intervals.