Hello,
Blnet works great for me but I need a flow sensor and I try to turn on pyblnet, installed pyblnet in the console added to custom_component (pyblnet next to blnet) and in configuration.yaml is blnet and pyblnet and still an error
Logger: homeassistant.setup
Source: setup.py:138
First occurred: 0:06:05 (1 occurrences)
Last logged: 0:06:05
Setup failed for pyblnet: No setup function defined.
Hi @marcinbc,
Its hard to understand what happened without seeing your configuration and setup in custom components. However, there is no component called “pyblnet”. The name of the component is “blnet” and it should be set up as described in https://github.com/nielstron/ha_blnet (the most up to date version of the component).
@mahomh: I have the same problem with my bootloader. I am getting the following error message:
Traceback (most recent call last):
File “/usr/src/homeassistant/homeassistant/setup.py”, line 213, in async_setup_component
result = await task
File “/usr/local/lib/python3.8/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/blnet/init.py”, line 102, in setup
data = fetch_data()
File “/config/custom_components/blnet/init.py”, line 98, in fetch_data
return hass.data["DATA{}".format(DOMAIN)].update()
File “/config/custom_components/blnet/init.py”, line 146, in update
data = self.blnet.fetch(self.node)
File “/usr/local/lib/python3.8/site-packages/pyblnet/blnet.py”, line 91, in fetch
direct = self.blnet_direct.get_latest(self.max_retries)[0]
File “/usr/local/lib/python3.8/site-packages/pyblnet/blnet_conn.py”, line 304, in get_latest
self.get_count()
File “/usr/local/lib/python3.8/site-packages/pyblnet/blnet_conn.py”, line 84, in get_count
checksum) = struct.unpack(’<5sB3s3sB’)
TypeError: unpack expected 2 arguments, got 1
I have also two network nodes. Here is my yaml config
‘’’
blnet:
resource: “http://192.168.178.222”
password: 12345
use_web: true
use_ta: true
web_port: 355
ta_port: 40000
can_node: 32
‘’’
It works if I set use_ta to false. Does anyone have an idea to overcome this situation?
@nielstron - Maybe you have seen it already - Starting from version HA 2021.6.0 blnet stops working because of missing version key in manifest file:
2021-06-09 11:51:01 ERROR (SyncWorker_3) [homeassistant.loader] The custom integration ‘blnet’ does not have a valid version key (None) in the manifest file and was blocked from loading. See Custom integration changes | Home Assistant Developer Docs for more details
@nielstron - Thank you very much ! Everything is working fine again.
Sorry, I missed the update you already made - my integration was “manual installation” (and the link to the repository was not immediately available to me) - now I have switched to the installation via HACS - this should display new versions more conveniently
I have managed to work around this problem by running this command via cron - as you can see: every 6 hours. this is enough for my environment:
( this sets the “active” CAN ID for a blnet query to CAN ID: 1)
5 */4 * * * curl http://<IP of BLNet>/data.htm?blaB=1
@mahomh Glad to see you found a solution! Note that the HA blnet component supports an option called “can_node” which should set the can id automatically for you. I have never tried it in the field but your situations seems to be a good opportunity (it should do what your cron job does, but before every request to the system)
I installed everything.
But I only get 100% cpu load and for long time “wait until blnet is starting”.
After that no sensors or units to be seen.
I’ve a cmi on uvr16x2.
Ni Niels! I stumbled upon your integration for the UVR1611 in Home Assistant via the BLnet interface. At this moment I’m using tne newer CMI interface and the portal which Technische Alternative provides. Will it be possible to use your integration also with the CMI? Or do I have to hook up an BLnet interface to the CAN-bus? Many thanks for your answer! Regards, Guido
Hi @nielstron
I appreciate your work for publishing this BL-Net integration for Homne-Assistant
I’m quiet new on Home Assistant and the BL-Net integration is on of my first projects in HA.
I have instralled HACS and than the BL-Net integration and configured the conf.yaml with a couple of lines, as described in the project description.
The component more or less just forwards data scraped from different webpages of the BLNET interface. So I don’t know if the values you are missing are not displayed due to not being implemented yet or a bug. Feel free to head over to GitHub - nielstron/pyblnet: Automate wireless communication to UVR1611 via BL-NET and open an issue for the values
Hi @nielstron
many thanks for quick answering and for suggesting opening an issue case on your GitHub channel.
I will do that and feel free to contact me for further informations concerning the missing datas.
kind regards
Raphael
Hello Niels or everyone else who might be able to help,
I’m trying to get my BL-NET available in my HA installation. It’s not HA core but ‘Home Assistant Operating System’ running on a RPi 3B+.
I was able to put the ‘custom_components’ files in the correct folder but I’m totally stuck on the PyBLNET.
I am not able to install it using pip3 install PyBLNET as this seems to be not supported an the HA standalone version. I googled now for 4 days and read every comment but still have no idea on how to get that thing working. Any idea and/or help would be very much appreciated.
Ok I made some approach recently. It seems I was wrong. The PyBLNET ssems to be automatically added. After another startup of homeassistant i noticed an error pointing me into
“/blnet_web.py”, line 194, in read_analog_values
data_raw = dom.text()"
So I guess the lib is there. I analyzed the code and saw that it tries to read data from the BL-NET by loading a special page "self.ip + “/580500.htm”.
Am I right?
So I tried to load that page in browser but nothing happens. I expect this to be the problem because I can open e.g. self.ip + “/can.htm”.
OK. If I’m right something should happen when I type this into the browsers address bar: “self.ip + “/can.htm?blaA=” + str(node),” [http://192.168.2.41/can.htm?blaA=65].
I get a page showing me “aktive Knoten am CAN Bus 1”. So correct I assume.
Now I noticed that the three lines underneeth on that page ( |Vend.ID:|| — | — ||Pr.Code:|||Rev.Nr.:|||BEZ.:|) show nothing. So it might be an issue with the UVR1611 or the connection to it?
OK, after a while I was able to get it running.
I guess there was never a real problem, just a couple of missunderstandings from my side.
Mainly I was confused about analog and digital values which doesn’t go along with the additional analog and digital values that can be configured in UVR1611 and BL-NET.
So this library only provides the INPUTS and OUTPUTS of UVR1611. But to be more precise it only supports analog INPUTS and digital OUTPUTS. All other input/output configs are skipped during the setup process. This also answers @C64 questions.
My main problem was that after configuring additional analog and digital values (which is possible in BL-NET) my UVR1611 was so busy it couldn’t send any other data. Therefore the scrapper didn’t get any data and crashed.
After all it’s working as expected. I guess some improvements on pyBLNET could be done to get the missing inputs and outputs. Maybe I can dig into this later and contribute. Right now I am happy to finally see what is going on at my heating system.
after struggling with that component and digging deeper into the modules I can answer your question. The values you are missing are not an UVR1611 INPUT or OUTPUT. It is information from inside the controller and the functions. By now the pyBLNET module doesn’t gather this information.
Regarding ‘Mischerinformation’ (which is indeed an OUTPUT) it is just not implemented and therefore skipped while converting the received data. As it is more or less just some string recognition and regex you could add it to blnet_web.py. Too see what data you get you can open the site in your browser and save it as html (blnetip/580600.htm)