Check status field for UPS online binary sensor (#30144)

Avoids issue where status was previously reported as offline when
battery was low or UPS was over voltage
This commit is contained in:
Josh Anderson authored and Paulus Schoutsen committed 2020-01-03 17:40:36 +01:00
1 parent 6b519499a7
commit 8a1fc8b8f0
2 files changed
+4 -4

No files matched your search

+2 -2
View File
@@ -18,11 +18,11 @@ DEFAULT_HOST = "localhost"
DEFAULT_PORT = 3551
DOMAIN = "apcupsd"
KEY_STATUS = "STATUS"
KEY_STATUS = "STATFLAG"
MIN_TIME_BETWEEN_UPDATES = timedelta(seconds=60)
VALUE_ONLINE = "ONLINE"
VALUE_ONLINE = 8
CONFIG_SCHEMA = vol.Schema(
{