uses the 0x00.../?!\r\n activation of the reader. However it's only 6.8 and 6.26 (cumulative energy and volume) that are interesting, the other fields are static/configuration values. For example, 6.6 never changes, 9.4 never changes. I guess this is why the current code only parses 6.8 and 6.26.
Using the "extended information" command, /#!, also gives the instantaneous power, current flow, as well as temperature for inflow, outflow and their difference, which is also interesting to import.
So you may want to update the data_cmd L32 to instead send '/', '#' , '!', 0x0D, 0x0A and update the parser.
I'm working on a rewrite of the OBIS parsing code as well, including the extended data parsing.
The current data_cmd, https://github.com/psvanstrom/esphome-uh50reader/blob/b26e0121ad7d971e74c97ef91267655b19889e18/uh50reader.h#L32
uses the
0x00.../?!\r\n
activation of the reader. However it's only 6.8 and 6.26 (cumulative energy and volume) that are interesting, the other fields are static/configuration values. For example, 6.6 never changes, 9.4 never changes. I guess this is why the current code only parses 6.8 and 6.26.Using the "extended information" command, /#!, also gives the instantaneous power, current flow, as well as temperature for inflow, outflow and their difference, which is also interesting to import.
So you may want to update the data_cmd L32 to instead send
'/', '#' , '!', 0x0D, 0x0A
and update the parser.I'm working on a rewrite of the OBIS parsing code as well, including the extended data parsing.