Cleanup MQTT json format for DCU batterie (#349)

* Cleanup MQTT json format for DCU batterie
- add hw and sw version
- rename total generation into total charging energy
- rename cell temperature sensors
- restructure json format
- adapt unit tests

* revert changed test packages
This commit is contained in:
Stefan Allius
2025-04-05 22:30:57 +02:00
committed by GitHub
parent 6974672ba0
commit 3d073acc58
5 changed files with 121 additions and 123 deletions

View File

@@ -6,7 +6,7 @@ from dotenv import load_dotenv
load_dotenv()
SOLARMAN_INV_SNR = os.getenv('SOLARMAN_INV_SNR', '00000080')
SOLARMAN_DCU_SNR = os.getenv('SOLARMAN_INV_SNR', '00000080')
SOLARMAN_DCU_SNR = os.getenv('SOLARMAN_DCU_SNR', '00000080')
def get_sn() -> bytes:
return bytes.fromhex(SOLARMAN_INV_SNR)