Bepacom-Raalte/Bepacom-BACnet-IP-Integration

request to add units

Closed this issue · 9 comments

Hi,
it is possible to add these units in the integration?
W
Kwh
min
sec
h
%RH
ppm
V

thanks a lot

I just released integration version v0.2.1b1. Could you update and see if the units work for you?

yes, perfectly:
immagine

immagine

the only variable that i cannot see in my export is deg (degree angular) the other are all show.
one question: i cannot see energy variabe in the HA enery manager:
immagine

according to the HA documentation the "state_class" must be "total" or "total_increasing"
the imported point has "state_class" set as measurements:
immagine
there is any way to change the state_class?
thanks a lot!

I can add the degrees as units for angular. The user can't change the state class. I can make it so the entity becomes state class total if the unit of measurement is one of those.
Please try v0.2.1b2 to see if it works for you.

Hi! works perfectly now!!!
image

Also ° are displayed now!
image

Can you change the state_class also for volumetric point in "total" or "total_increasing"?
image
Thanks a lot!

Great to hear, added UnitOfVolume to be state_class total as well. Could you try v0.2.1b3?

Hi Thanks,
i think that is needed to change the device_class in water:
image
image
it is possible for you to assign the device class accordind to bacnet point descriptor? eg if in the point description there is "water" the device_class will be "water"?

It would be possible to do based on description, but then the issue is languages. In each language, it'll be something else so it's going to be difficult to make it work right.
I think a better solution would be to use a template sensor with the right device class using the value of the right entity like so:

image

Great Idea! it Works! Thanks a lot!
All of Units that i need work now, should i close this issue?

I'll close this issue for you, glad this solution works for you!