-
-
Notifications
You must be signed in to change notification settings - Fork 48
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support for 0x62 Async transmit/receive to capture DSMR P1 "smart meter" data #125
Comments
After reading up on how the RFXtrx module is integrated in Home Assistant, I'm left wondering what would be a good place to fit the decoding of the data packets coming from the DSMR meter. As can be seen here, the DSMR pushes a multi-line "telegram" on to the P1 port. The RFXcom device converts the lines in this telegram to a sequence of RFX packets with packet type 0x62. To get the full telegram, one would have to collect the sequence of RFX packets until the "Checksum" packet is received, which ends the telegram. My first thought was to convert each individual entry as a Dsmr SensorPacket without interpreting the data from the telegram. However, this does not fit the current model of the RFXtrx Home Assistant integration very well: the integration expects the pyRFXtrx layer to pass it fully interpreted events, with the measured sensor data in the "values" property. My second idea was to do the interpretation of the "telegram" data line-by-line in pyRFXtrx and include this in the Dsmr packet / event as the packet's "value". This would yield a stream of events, where some of the events do not contain any value, and others contain at most one value. The nice part about this is that this can be done without waiting for the full telegram to be constructed. A third idea is to add collect the separate telegram lines until the full telegram is received and only then return a Dsmr Sensor package with all the values filled in in one go. The intermediate events should then contain a packet that is unfinished and thus get discarded by the HA integration. |
After taking a good look at the dsmr_parser library, I realised that it would be trivial to interpret and skip the bytes added by the RFXtrx integration at the lowest level. That makes it possible to use the existing DSMR integration of Home Assistant instead of the RFXtrx integration. Would it still make sense to extend the pyRFXtrx library with support for the 0x62 Async packet type? |
Just plug similar tech for my French Smart Meter and the current version of RFXtrx has an issue :
It seems that is use the same technology to send data :) looking forward for a positive outlook :) Count me in if you need testing |
Recently I purchased a RFXtrxLAN with both a RFXtrx443XL and a DSMR P1 cable installed.
After plugging in the P1 cable into my "smart" electricity meter, it sends the data pushed onto the P1 port as type 0x62 package data to the RFXtfx. I would like to process this data in Home Assistant to show the current electricity.
The text was updated successfully, but these errors were encountered: