Skip to content

Commit

Permalink
Add operating_status (#124) (#125)
Browse files Browse the repository at this point in the history
  • Loading branch information
qqwa committed Aug 18, 2023
1 parent 95b6fd6 commit 0b59066
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
10 changes: 9 additions & 1 deletion pysma/definitions.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,14 @@
l10n_translate=True,
enabled=False,
)

#: Operating status
operating_status = Sensor(
"6180_08412B00",
"operating_status",
path=JMESPATHS_TAG,
l10n_translate=True,
enabled=False,
)
# Status - Operation - Inverter
#: General operating status
inverter_condition = Sensor(
Expand Down Expand Up @@ -544,6 +551,7 @@
inverter_power_limit,
inverter_system_init,
operating_status_general,
operating_status,
power_l1,
power_l2,
power_l3,
Expand Down
6 changes: 3 additions & 3 deletions tests/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -4598,7 +4598,7 @@ def mock_aioresponse():
}
}
},
47,
48,
id="STP 10.0 SE, no energy meter, no optimizers",
),
pytest.param(
Expand Down Expand Up @@ -5631,7 +5631,7 @@ def mock_aioresponse():
}
}
},
68,
69,
id="STP 6.0 SE, with energy meter, no optimizers",
),
pytest.param(
Expand Down Expand Up @@ -6156,7 +6156,7 @@ def mock_aioresponse():
}
}
},
66,
67,
id="STP 10.0 SE, with energy meter, no optimizers",
),
pytest.param(
Expand Down

0 comments on commit 0b59066

Please sign in to comment.