Innovenergy_trunk/firmware/opt/innovenergy/controller/states.py

28 lines
423 B
Python
Raw Normal View History

2023-02-16 12:57:06 +00:00
from python_libs.ie_utils.utils import enum_file_name_of
"""
Controller States
"""
UNKNOWN = 0
HEATING = 1
OPTIMIZE_SELF_CONSUMPTION = 2
CALIBRATION_CHARGE = 3
HOLD_MIN_SOC = 4
CHARGE_TO_MIN_SOC = 5
BRIDGE_GRID_BLACKOUT = 6
LIMIT_DISCHARGE_POWER = 7
SCHEDULED_CHARGE = 8
LIMIT_CHARGE_POWER = 9
NO_GRID_METER_AVAILABLE = 10
NO_BATTERY_AVAILABLE = 11
NO_INVERTER_AVAILABLE = 12
name_of = enum_file_name_of(__file__)