Hi Forum,
I'm using the Modbus (read) plugin with a Sinotimer DDS024MR 3 phase energy meter. This works very well, thanks goes to Domotixz! I have two practical questions, I'm probably overlooking something:
1) I'm reading two values from the DSS024MR: current power (in Watts) and total energy (in kWh). Hence, two hardware devices created for reading the power and energy registers from the energy meter.
For power I have selected in the hardware settings the Sensor Type "usage" and as a result, a device appears with a correct icon, the value and the axis indication 'Watt'. Perfect!
For energy, I have selected the Sensor Type 'kWh' and the result is not as expected: In the devices list a new device appears, which has as Data two values separated by a comma: 1,495.427.....
- 201119 EVSE kWh device data.JPG (23.6 KiB) Viewed 2921 times
There is no error in the log.
The 495.427... is the correct number of kWh, I'm not sure what the 1 represents.
However, the corresponding icon in the Utility tab shows no value nor daily total as other kWh icons do.
- 201119 strange KwH icon.JPG (16.14 KiB) Viewed 2921 times
Where did I take a wrong turn?
(workaround: set as 'custom' Sensor Type and add 'kWh' as axis label)
2) To change the address of the device (or other parameter like baud rate, number of impulses, etc.) I need to write to the Parameter Register table using function 0x010 (16). I tried to write register 12 (number of impulses) which can be either 400 or 1600. The device manual states the number format is IEEE754, 32bit, single precision, so 400 -> "0x43C80000" and 1600 -> "0x44C80000" as 'payload on' and 'payload off' for testing. However, the log reads :Modbus error communicating". More or less randomly trying 0x43C8 and 0x44C8 (as the DomoticX Github suggests a format like 0x0100) yields "Exception Response (144, 16, Illegal function)". Doing something wrong... Any idea?
Update: it seems Parameter Register 12 can only be read and yields 400; it might not be possible to write is. The DDS024MR manual I have does not specify a register to read/write the number of impulses at all...
So, I should try to write another register!
@Fireflies: the log you copied states a failure to load 'plugin.py' for modbus, could that be related?