Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 17 additions & 0 deletions custom_components/solaredge_modbus_multi/sensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,23 @@ def extra_state_attributes(self):
except KeyError:
attrs["sunspec_did"] = None

try:
if self._platform.decoded_mmppt is not None:
try:
if self._platform.decoded_mmppt["mmppt_DID"] in SUNSPEC_DID:
attrs["mmppt_device"] = SUNSPEC_DID[
self._platform.decoded_mmppt["mmppt_DID"]
]

except KeyError:
pass

attrs["mmppt_did"] = self._platform.decoded_mmppt["mmppt_DID"]
attrs["mmppt_units"] = self._platform.decoded_mmppt["mmppt_Units"]

except AttributeError:
pass

return attrs


Expand Down