HI
Iam using a KNX interface (wiser Schneider) for measuring my gas en electric
I want make a enery dashboard in HA
Gas is oke and give the right value
But eletric give a wrong value
Hou can i fix this problem
My config for gas
- name: “actueel geleverd (m3)”
state_address: “1/3/16”
type: ‘volume’
state_class: ‘total_increasing’
For elektric
For readability you must use the code tags for well… code. Helps with debugging.
If you read the value in ETS what do you get? Some devices just put out Wh and you’ll need to convert it.
type: ‘dtp-14’ is not a type. And also the wrong dtp anyway.
Thats weird, DPT 14 is not used for any kind of KWh report. Where are you getting that value from?
Model number would be helpfull so i can look at what the communication objects report.
Also noticing from you tabs that you are translating Dutch to English and back?
If you having trouble with that you can PM me.
That just means its the wrong type. 4 bytes can do alot of things, Signed, Unsigned, Floating point
But what is measuring your KWh? is it the Wiser using modbus to your KWh? or connected to your PV?Or do you have a KNX KWh module?
The wiser reads out the Modbus? So it will get the correct value. It is however pushing that value to the KNX group with the wrong type. And thus HA will receive the wrong value but Wiser will show the correct value. You will prob just have to change the data type in Wiser. (gegevenstype)
So in ETS (Not wiser or HA) what do you see at that group address?
Edit, GAS is in the correct type: 14.076 DPT_Value_Volume m3 volume so thats why HA sees that correctly
Thats exactly what i am saying. I’m getting the feeling that things are getting lost in translation.
Specially since ETS is a programming tool and not the KNX bus itself.
To be clear:
The PV KWh is connected to your Wiser via Modbus, so Wiser will display the correct value.
Wiser then puts that value in KNX at group 1/0/12 in the wrong data type. HA gets it info from 1/0/12 and thus the wrong info.
You need to change the data type in Wiser to DPT 13, then your original config in HA will work correctly
DPT 14 is a very different type than DPT 13 you CANNOT mix them.
Ah, so it is an 4 byte floating point number from the Modbus. Yeah, you will need to set that back, i hope i didnt screw up your graph to much in Wiser
Now the fun part, converting that to 4 byte signed. Should be fun
My quick Google learns that its not easy as a simple conversion. So i hope anyone else can help with that. Should be doable in HA with a template.
I’ll go and look. But it looks thats beyond what i understand, but never to old to learn.
It’s dpt-14 or just 14, not dtp-14.
It won’t get an auto-assigned unit. Use customize to add one. Customizing entities - Home Assistant
Or create a helper entity from the resulting state.