According to the KNX manual the values range from 0 - 2000 pbb and are encoded with KNX DPT 9.xxx, which is a generic DPT for floating point values.
Unfortunately I didn’t find a straight-forward way to have this data available in Home Assistant with the correct unit of measurement, etc. According to this table, there is no inherent support for ppb (parts per billion).
What is the best way to get this data into Home Assistant and have it represented correctly in the dashboard? When assigning the generic 2byte_float data type, then the value has no unit and is mis-represented in the dashboard:
Rather than having this weird graph for data that can easily be plotted over time, I would like to have this view (e.g. for the CO2 reading, which is 9.008 i.e. ppm):
Is is possible to have such a datatype, even though there is no dedicated DPT for it?
Or do I have to work around this with some template sensor?
I think you’d just need to add state_class: measurement and the device_class to your knx sensor entity definition to have the Ui show that graph.
Unit of measurement can be overridden in UI.
Hello Karol,
I have the True Presence but I can’t have the Presence in Home assistant.
I create an binarysensor with the address group from the Presence KO
If the sensor sends 1 on presence and 0 on no presence then it is ok.
If it just always sends 1s repeatedly then you may want an event or device trigger (knx interface device).