DeerMaximum / Technische-Alternative-CMI

Custom Home Assistant integration to read data from a C.M.I.
MIT License
40 stars 4 forks source link

A way to read all internal Variables #69

Closed henfri closed 10 months ago

henfri commented 10 months ago

Hello Maximilian,

I have written a logic (also in python, but not in HA), that is able to read any internal Variable from UVR. I have documented it here: https://knx-user-forum.de/forum/supportforen/smarthome-py/1451781-technische-alternative-uvr1611-16x2-mit-cmi-werte-in-sh-py-einlesen (it is in German; let me know if you need a translation, but your name suggests that you might know German).

Would you have Interest to include this in HA?

Best regards, Hendrik

DeerMaximum commented 10 months ago

This all looks quite experimental to me. I don't think I will add the functionality into the integration. As far as I can see, the internal values can also be read out via CAN. So another possibility would be to read the internal values via CAN, CoE and the CoE integration.

henfri commented 10 months ago

Hello Maximilian,

what do you mean by "exprimental"? If it is the code-quality, I agree. If it is the function, I don't. It has been working flawlessly for nine years now (https://knx-user-forum.de/forum/supportforen/smarthome-py/35834-alpha-logik-uvr1611).

The approach may not be documented by TA, but it was the TA helpdesk that told me about this possibility.

I also think that I did not explain well what values are readable for instance all the values shown in this screen are readable: image

image

That is: You can get the values that are not a physical Input/Output, but those that are results from one logic block and only passed to another one.

The whole approach is deterministic. There is an ID in the TA-Designer XML that can be found in the HTML of the visualization ("schema")

So, I do not really see what is experimental about it and I also see a significant value.

Best regards, Hendrik

DeerMaximum commented 10 months ago

I find the way the data is obtained not exactly optimal, since the data is parsed from HTML. As I see it, the data you read out can also be read out via CAN. Which is easier for the user.

funktion

CAN

I want to keep the integration as lightweight as possible, and since there is already a good way to retrieve this data it is unnecessary to provide a second way.

henfri commented 9 months ago

Thanks. Where do you find the view from the second screenshot? In my CMI, I cannot select "Funktionen" image

Greetings, Hendrik

DeerMaximum commented 9 months ago

The second screenshot is from the CAN settings of my UVR16x2. The page is: CAN-BUS -> CAN Analogausgänge -> Beliebiger Ausgang