I am aware that the energy today/yesterday are calculated readings; I could do that in my nodered flow. But it is nice to see it in the interface. However, in all the examples for multi-phase measuring system, there is no way to tell which particular pzem stops working. In my case, I am measuring inverter in and out. I can attach both pzems without any problems on address 1 (for input) and address 2 (for output). The readings are returned in an array with the 1st index for input readings and 2nd index for output readings. But if for some reason, one of the pzems stops working, the output just returns readings from the other pzem without error. That is why I wanted the readings indexed by the modbus address so that I continue to store readings for the correct pzem. I have looked at the 2 ino files I mentioned in my above post. I think I can store the address in the energy structure defined in the
xdrv_03_esp32_energy.ino file. But I cannot figure out how it is returning the data for Status 10.