mirror of
https://forgejo.altau.su/lego/lego-monitoring.git
synced 2026-03-10 12:45:19 +00:00
21 lines
579 B
Python
21 lines
579 B
Python
from enum import StrEnum
|
|
|
|
|
|
class UPSStatus(StrEnum):
|
|
"""https://networkupstools.org/docs/developer-guide.chunked/new-drivers.html#_status_data"""
|
|
|
|
ON_LINE = "OL"
|
|
ON_BATTERY = "OB"
|
|
BATTERY_LOW = "LB"
|
|
BATTERY_HIGH = "HB"
|
|
BATTERY_REPLACE = "RB"
|
|
BATTERY_CHARGING = "CHRG"
|
|
BATTERY_DISCHARGING = "DISCHRG"
|
|
UPS_BYPASS = "BYPASS"
|
|
"""Battery and connected devices are not protected from power outage!"""
|
|
UPS_OFFLINE = "OFF"
|
|
UPS_OVERLOAD = "OVER"
|
|
UPS_CALIBRATION = "CAL"
|
|
UPS_TRIM = "TRIM"
|
|
UPS_BOOST = "BOOST"
|
|
UPS_FSD = "FSD"
|