Chint DTSU666-Modbus smart meter

Python and python framework

Moderator: leecollings

Post Reply
elfabric
Posts: 2
Joined: Wednesday 13 October 2021 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Chint DTSU666-Modbus smart meter

Post by elfabric »

Hi.

Following the example of MFxMF I have written plugin for Chint DTSU666 smart meter:
https://github.com/elfabriceu/DTSU666-Modbus
dtsu666-domoticz.jpg
dtsu666-domoticz.jpg (204.99 KiB) Viewed 6867 times
log:
dtsu666-domoticz2.png
dtsu666-domoticz2.png (58.91 KiB) Viewed 6867 times
Any feedback or suggestions are appreciated.

Best regards
Robert
Ksala
Posts: 1
Joined: Monday 22 November 2021 23:26
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Chint DTSU666-Modbus smart meter

Post by Ksala »

Hi Robert

In your plugin on github i founded probably error.

there is
Volts_AB = self.rs485.read_float(0x2000, functioncode=4, numberOfRegisters=2)/10
...
should be

Volts_AB = self.rs485.read_float(0x2000, functioncode=3, numberOfRegisters=2)/10
...

for read modbus devices you shuld use function 3 against to 4 for all reads

After uploading your plugin from github domoticz was hanging. After making the correction I am writing about, everything started work perfectly.

Well done. Thanks a lot for greeat job.

Best Regards,

Krzysztof
elfabric
Posts: 2
Joined: Wednesday 13 October 2021 16:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Chint DTSU666-Modbus smart meter

Post by elfabric »

Hi Krzysztof,

The DTSU666 meter allows reading data using both functions 03 and 04. I haven't noticed any problems with the readings with function 04. Do you have a standard DTSU666 software version - not customized for Huawei, Hoymiles etc.? Just in case, I put on Github a plugin version that reads data using the 03 function. More tests would be nice.

Best regards
Robert
Wind06
Posts: 1
Joined: Tuesday 21 November 2023 18:40
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Chint DTSU666-Modbus smart meter

Post by Wind06 »

Hi,

I am new in Domoticz and need help, I am trying to make DTSU666-Modbus working, I followed all instructions I guess.
but I am unable to make it work, I do have errors in logs. I don't know if the problem is coming from my USB/RS485 which is not
working or is it a configuration issue.
The USB device is a Waveshare Industrial USB to RS485 Converter with Original FT232RL Automatic Transceiving Embedded Protection Circuits Such as Fuse ESD Protection and TVS Diode

Any help will be very much appreciated

When stating the plugin I get the following errors:

Call to function 'onHeartbeat' failed, exception details:
Traceback (most recent call last):
.Log('Voltage L1-L2: {0:.3f} V'.format(Volts_AB))
UnboundLocalError: local variable 'Volts_AB' referenced before assignment
Nusiek
Posts: 1
Joined: Tuesday 27 August 2024 21:06
Target OS: Raspberry Pi / ODroid
Domoticz version:
Contact:

Re: Chint DTSU666-Modbus smart meter

Post by Nusiek »

Witam wszystkich
Posiadam falownik Huawei SUN2000, licznik DTSU666 oraz MBtranslator do odczytu po TCP IP danych z falownika. Jak uruchomić taki zestaw aby był możliwy odczyt w Domoticzu?
Pozdrawiam
Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests