You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently notifications are shown when an error occurs reading from a sensor or when a sensor alarms. But in both cases there is no real action the user can take. We should not use notifications in general and be smarter - ie. Show an 😵 or similar on sensor error for the value and perhaps one notification saying that the error occurred, which we then hide if the error stops.
Also since no action can be taken for alarm conditions, don't show a notification for these but instead change the icon to indicate the alarm is active.
The text was updated successfully, but these errors were encountered:
There is nothing the user can do in this case so don't bother showing a
notification, this is just noise.
Issue #42.
Signed-off-by: Alex Murray <[email protected]>
Previously when the error state was set for a sensor we would clear the old
state and set the new one, without checking if they were the same. But this
would result in a closing of the existing notification and showing of a new one
with the same contents.
In general it can be useful to let the user know that the sensor has encountered
and error BUT we don't want to do this every time the sensor value is tried to
be read. So check if the new error condition is different and only then take any
action, that way we won't close and redisplay the same notification.
Issue #42.
Signed-off-by: Alex Murray <[email protected]>
Currently notifications are shown when an error occurs reading from a sensor or when a sensor alarms. But in both cases there is no real action the user can take. We should not use notifications in general and be smarter - ie. Show an 😵 or similar on sensor error for the value and perhaps one notification saying that the error occurred, which we then hide if the error stops.
Also since no action can be taken for alarm conditions, don't show a notification for these but instead change the icon to indicate the alarm is active.
The text was updated successfully, but these errors were encountered: