Open kitty99hub opened 1 year ago
Hi @kitty99hub , The values that are displayed on these websites should be displayed. However, the integration does not copy over the names of the analog/digital sensor - the reason has something to do with homeassistant making trouble when you manually set names, then later want to override them.
Have you checked whether the analog/digital sensors match any of the sensors at 580600/580E01?
If not, it is always useful to share the source code of these websites so the scraper can be adjusted. However I do not have a BLNET at home anymore so I can not test things and be only of limited help.
Hi @nielstron Many thanks for reacting on my request :) No, I didn´t checked the analog/digital sensors to see what they will put out. Thanks for the tip, I will check this afternoon and also share the source code of this page. regards,
Hi @nielstron I have checked the entities in HA and here the results. On the following pictures, you can see the 2 pages from the BLnet and the entities I have in HA available (BLnet sensor names are also shown in the HA entity card). There are a couple of data from these 2 BLnet pages I can see in HA (marked green), but also some I didn't have available in HA (some examples of needed data from these 2 pages marked red). In BLnet are a lot of data, but In HA I have only these 16 sensors (entities) available. Have I missed something, or could it be due to an incorrect configuration on my part? Attached are also the source codes of these 2 BLnet pages. I hope this helps you identify the cause. If I can help in any way, just let me know. Many thanks
Here the BLnet vs HA overview:
Here the source codes: 580600 source code.txt 580E01 source code.txt
BTW, I don't know if you read that, but I remember, that the user "TheGsus" wrote in the community forum anithing about the missing data: https://community.home-assistant.io/t/hooking-up-the-uvr1611-via-blnet/37846/110?u=c64
I agree to @kitty99hub. The values in red box on first picture are not detected by pyblnet as the regex doesnt detect these in 580600.html dom. I guess this should be more or less easy to solve be figuring out the right regex and adding a second parser to the code. (quick&dirty solution) I would also like to point to this issue here (https://github.com/nielstron/pyblnet/issues/39) where I added the working regex for real digital inputs not just analogue inputs. The 580E01.html might be totally different depending on the actual configuration of your UVR1611. This seems way more difficult. I would suggest to add a whole new module here with additional configuration parameters.
hi, then I can assume, that also other data points from the BLnet were not implemented in this integration...!?
I have no idea about the effort on programming such integrations, but I'm now wondering how complete this integration is, or in other words, which data will be processed in it and which will not.
I couldn't find any documentation that describes which data points are implemented and which not.
Since such integrations often arise from personal needs, I understand that covering this is the first priority and does not necessarily have to cover the entire range.
But it would be very nice if this valuable integration could be improved even further and integrate as many data points as possible.
In terms of programming, I'm not the right man, but I'm available if I can help in any way. e.g. making the source codes of the BLnet pages available etc...
Regards,
@kitty99hub : So far only the 'real' Hardware inputs and outputs thats say connected sensors and actors are partly supported. This includes analogue inputs like real temperature sensores and digital outputs (on/off) e.g for pumps. The rest was never implemented. I am also not a developer. Just playing around with code and having some basic knowlegde in programming. But my way of doing it is more or less try and error. As I understood Niels is not having so much time to implement all this. Maybe we can find someone who likes to actively participate in the project.
@kitty99hub : I did some analysis today of your request to extract the values from a 'Heizkreisregler'. First of all we need to understand that it really is absolutely not the case that you will find a 'Heizkreisregler' is you open the 580E01.html page. More or less it seems that 580Exx.html starting from 01 is iterated through your function list. So whatever number your 'Heizkreisregler' has you will need to parse a different site. Anyways (e.g. in my case) you can have more than one. I would suggest adding an additional configuration input which is dafault false/none. If none is given no code will be executed. Just old behaviour.
Second if you identified the correct html page it is quite easy to parse the information (at least if u wanna do it quick and dirty). You need 6 regex for the parser. The class is also "c" which makes it possible to reuse almost everything from the existing code. (I guess you could do it in a loop too):
Traum.IST:( ){1,3}(?P<valraumist>(- )?\d+,?\d*)
Traum.ABSENK:( ){1,3}(?P<valraumabsenk>(- )?\d+,?\d*)
Traum.NORMAL:( ){1,3}(?P<valraumnormal>(- )?\d+,?\d*)
Traum.EFF:( ){1,3}(?P<valraumeff>(- )?\d+,?\d*)
Tvorl.IST:( ){1,3}(?P<valvorlist>(- )?\d+,?\d*)
Tvorl.SOLL:( ){1,3}(?P<valvorlsoll>(- )?\d+,?\d*)
I also skipped detecting the unit of measurement as it is per definition always centigrades. I could not finish the whole code as I have no development environment right now and I am also unable to modify the pyblnet code on my HA instance.
@nielstron : Would it be possible to add another function to the code (e.g. def read_heatingCircuit_values(self) ) which simple does nothing if not configured and otherwise tries to parse the configured html site with the 6 regex and finally add if succesfull those six values to the HA values?
hi @whatashit Many thanks for looking into this and surching for solutions. Your information and the code sound promising, but right now I really don't know what to do with it and how to approach the matter :( Do we have to wait until @nielstron has updated/edited its integration or would it be possible to integrate more data points now?
I also read in the other topic that your test with the updated version of nielstron's integration was successful, regarding the node problem and the failure of data display. I'll have to read it in detail and see what I need to adjust for myself.
Many thanks for your contribution :)
Hi, I'm missing some information who I would like to show in Home Assistant. I looked at the code in blnet_web.py, but I can't judge whether the corresponding data should normally be read out or not. However, I was able to read from the code that the data already displayed (analog inputs and digital outputs) are read out from the page IP/580600.htm. Some still needed data are on the same BLnet page, but not displayed in HA, which is why I am wondering whether there is a problem or whether it will not yet been read out!? That's why I would like to share some screenshots with the required informations. Mainly needed informations are marked in red. This BLnet page is available from IP/580E01.htm
This BLnet page is available from IP/580600.htm
This screenshot shows the actual available entities on my HA setup:
Would it be possible to read out this information and showing them in HA? If I have to provide further information, please let me know, possibly with short instructions ;) Thanks for your help and your work on this integration regards