I am using this example to read an Eastron SDM230m power meter. As far as I can tell, it is working. However…
This is a repeating snippet from my log:
[07:03:32][V][component:199]: Component modbus took a long time for an operation (0.86 s).
[07:03:32][V][component:200]: Components should block for at most 20-30ms.
How can I diagnose the source of this problem. I have jacked up the UART speed from the SDM230 default of 9600 to the maximum of 38400. That does not change the “modbus component” time! It consistently hovers at the 0.8sec value.
My first thoughts are: That it seems that the example yaml is reading 80 (0x50) bytes in one go.
How would I go about modifying this example to just read the information of interest or 2x40 byte blocks?
As yaml is not a “programming” language, I am stuck on how to understand the examples given on https://esphome.io/. For example, is there a definition of “sdm_meter” as in:
- platform: sdm-meter
Regards, M.