It is working fine, except that i can only update Integer values instead of Floats.
For updating I use this piece of code.
Code snippet:
row = line.split('\t')
# Watts 1
s="%.1d; %d" % (float(row[7]), 0)
Devices[7].Update(nValue=int(float(row[7])), sValue=s)
'row' contains the fields of a TAB separated ASCII output record from the SDM630 meter.
I have 2 questions:
- I tried sending nValue=float(row[7]). That gives me a type error. How do I update a float value using a float ?
- How do I set the SubTypeName of the Current meter ? I used TypeName 'Current/Ampere'. It currently shows up as a 'CM113/ElectriSave', which I don't have.
Ps. Forgive me my high energy usage


