Closed rakragh closed 6 months ago
Hi @rakragh , sorry for not reviewing earlier. I wonder which smart meter uses 24bit integers. To my knowledge a 24bit representation is not defined in the SML specification.
Could you provide me with an example, why and where you need this representation?
Hello. I recently tried to connect my EFR SGM-C8-A620S meter and ran into the same issue with the exported energy counter.
The value for imported energy is given as 4byte hex, but the export (confusingly) only as 3 byte. That leads to a conversion error giving a ridicolous high value.
Here are the corresponding Log entries from the Sensor node:
For comparision :
'Total energy consumed': Sending state 1925.06372 kWh with 3 decimals of accuracy [D][sml:072]: (0a014546522203e18065) 1-0:1.8.0 [0x0125bdce]
'Total energy exported bin': Sending state 1844674360770560.00000 kWh with 3 decimals of accuracy 'Total_energy_exported_hex': Sending state '0xdf383a' [D][sml:072]: (0a014546522203e18065) 1-0:2.8.0 [0xdf383a]
df383a correctly evatuates to -> 14628922 which gives the correct 1462.8922 kWh
It would be great if this could be implemented soon.
Anyway, i am also quite open for suggestions to wor around this.
Would be good to consider in ESPhome. Let me know if you have questions.