Skip to content

Commit 6840165

Browse files
authored
changed force mode none to standby, none can't be used in templating (#64)
2 parents 8ee62dd + bcc59bd commit 6840165

2 files changed

Lines changed: 7 additions & 2 deletions

File tree

custom_components/marstek_modbus/registers_v12.py

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
SELECT_DEFINITIONS, SWITCH_DEFINITIONS, NUMBER_DEFINITIONS, BUTTON_DEFINITIONS,
66
EFFICIENCY_SENSOR_DEFINITIONS and STORED_ENERGY_SENSOR_DEFINITIONS that were
77
previously in `const.py` and correspond to v1/v2 devices.
8+
9+
missing:
10+
sensor:
11+
- vms_version
12+
- cell_xx_voltage 1tm16
813
"""
914

1015
# Definitions for sensors to be read from the Modbus device
@@ -597,7 +602,7 @@
597602
"key": "force_mode",
598603
"enabled_by_default": False,
599604
"scan_interval": "high",
600-
"options": {"None": 0, "Charge": 1, "Discharge": 2},
605+
"options": {"Standby": 0, "Charge": 1, "Discharge": 2},
601606
},
602607
{
603608
"name": "Grid Standard",

custom_components/marstek_modbus/registers_v3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -852,7 +852,7 @@
852852
"key": "force_mode",
853853
"enabled_by_default": False,
854854
"scan_interval": "high",
855-
"options": {"None": 0, "Charge": 1, "Discharge": 2},
855+
"options": {"Standby": 0, "Charge": 1, "Discharge": 2},
856856
},
857857
# {
858858
# "name": "Grid Standard",

0 commit comments

Comments
 (0)