Enums
This page contains the different enums which are used to represent states such as port status (input/output/not connected), light status (off/low/med/high), and charging status (idle/charge/discharge).
Enums for SolixBLE module.
- class SolixBLE.states.PortStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The status of a port on the device.
- UNKNOWN = -1
The status of the port is unknown.
- NOT_CONNECTED = 0
The port is not connected / off.
- OUTPUT = 1
The port is an output / on.
- INPUT = 2
The port is an input / on.
- classmethod from_input_only(value: int)
Custom factory for ports which only support being inputs.
- class SolixBLE.states.ChargingStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The status of charging/discharging on a device.
- UNKNOWN = -1
The status is unknown.
- IDLE = 0
The device is idle (Battery not charging or discharging).
- DISCHARGING = 1
The device is discharging.
- CHARGING = 2
The device is charging.
- class SolixBLE.states.ChargingStatusF3800(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The charging type of an F3800.
- UNKNOWN = -1
The status is unknown.
- INACTIVE = 0
The device is idle.
- SOLAR = 1
The device is charging via solar.
- AC = 2
The device is charging via AC.
- BOTH = 3
The device is charging via solar and AC.
- class SolixBLE.states.LightStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The status of the light on the device.
- UNKNOWN = -1
The status of the light is unknown.
- OFF = 0
The light is off.
- LOW = 1
The light is on low.
- MEDIUM = 2
The light is on medium.
- HIGH = 3
The light is on high.
- SOS = 4
SOS mode. Not supported by all devices.
- class SolixBLE.states.LightMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The light mode of the device.
- UNKNOWN = -1
The light mode is unknown.
- NORMAL = 0
Normal light mode.
- MOOD = 1
Mood light mode.
- class SolixBLE.states.DisplayTimeout(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Display timeout on device in seconds. Only specific values are allowed.
- UNKNOWN = -1
The status of the display timeout is unknown.
- S20 = 20
20 seconds.
- S30 = 30
30 seconds.
- S60 = 60
60 seconds.
- S300 = 300
300 seconds (5m).
- S1800 = 1800
1800 seconds (30m).
- class SolixBLE.states.TemperatureUnit(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The status of the temperature unit of the device.
- UNKNOWN = -1
The display unit is unknown.
- CELSIUS = 0
Display unit Celsius.
- FAHRENHEIT = 1
Display unit is Fahrenheit.
- class SolixBLE.states.GridStatus(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The grid connection status.
- UNKNOWN = -1
The grid status is unknown.
- OK = 1
Grid is connected and OK.
- OK_AS_WELL_I_GUESS = 2
Undocumented in API, but device operates as expected and outputs power to grid. Maybe a pure “dispense” state because SB2 can’t draw power from the grid
- CONNECTING = 3
Grid is connecting.
- NO_GRID = 6
No grid connection.
- class SolixBLE.states.SBUsageMode(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Usage mode of a Solarbank device.
- UNKNOWN = -1
The usage mode is unknown.
- MANUAL = 1
Manual (schedule) mode.
- SMARTMETER = 2
Smart meter mode.
- SMARTPLUGS = 3
Smart plugs mode.
- BACKUP = 4
Backup mode.
- USE_TIME = 5
Use time mode.
- SMART = 7
Smart mode.
- TIME_SLOT = 8
Time slot mode.
- class SolixBLE.states.SBPowerCutoff(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
Power cutoff threshold of a Solarbank device in %.
- UNKNOWN = -1
The cutoff threshold is unknown.
- P5 = 5
5 %.
- P10 = 10
10 %.
- class SolixBLE.states.PortOverload(value, names=None, *, module=None, qualname=None, type=None, start=1, boundary=None)
The overload status of a port.
- UNKNOWN = -1
Overload status is unknown.
- NONE = 0
No overload event.
- USB_C1 = 8
USB C1 overload detected.
- USB_C2 = 9
USB C2 overload detected.
- USB_C3 = 10
USB C3 overload detected.