add alarm bitfields (#352)

- fix bitfield of the inverter alarms
- add batterie alarms
This commit is contained in:
Stefan Allius
2025-04-06 20:07:17 +02:00
committed by GitHub
parent 015b6b8db0
commit af5604d029
5 changed files with 109 additions and 46 deletions

View File

@@ -221,7 +221,7 @@ def inv_data_seq2(): # Data indication from the controller
return msg
@pytest.fixture
def inv_data_seq3(): # Inverter indication from MS-2000
def inv_data_seq3(): # Inverter indication from MS-3000
msg = b'\x00\x00\x01\x2c\x00\x00\x00\x64\x53\x00\x00' # | ..^.....,...dS..
msg += b'\x00\x00\x00\xc8\x53\x44\x00\x00\x00\x01\x2c\x53\x00\x00\x00\x00' # | ....SD....,S....