krikk/Hiking-DDS238-2-WIFI-Din-Rail-Energy-Meter-flashing-Tasmota

Reading energy export and frequency

Closed this issue · 1 comments

Hi, Do you know if its possible to read the export and frequency values and send via mqtt. I have a DDS238 wifi connected to my grid feed, it shows all power going across the DDS238, however it doesn't indicate what direction, as in negative/reverse energy, but on the LCD display of the DDS238 it does show the reverse energy.

I have read that the registers that hold the export data are 21,22,23,24
In the modbus version of the DDS238 it gets this data out, the tasmota code ( file xnrg_09_dds2382.ino) it has:

Energy.export_active = (float)((buffer[19] << 24) + (buffer[20] << 16) + (buffer[21] << 8) + buffer[22]) / 100.0; // 429496729.0 W
float import_active = (float)((buffer[23] << 24) + (buffer[24] << 16) + (buffer[25] << 8) + buffer[26]) / 100.0; // 429496729.0 W

Is it possible to access these registers on the wifi version ?

I have searched and there seemed to be alot of people interested and looking at it but never found any answers.

In the pic below is what I can graph from the mqtt data. On the LCD it says -23 for reverse/export energy, and I would like to get this into home assistant.

Thanks for any help.

energy usage

krikk commented

the data you want are not available via the tuya interface, only solution would be to use modbus