Found my mistake … I only installed the PyBLNET part, the backend and forgot about the custom_components part. So the integration is now found, but delays the while startup process:
'WARNING (MainThread) [homeassistant.bootstrap] Waiting on integrations to complete setup: blnet
So will dig into that, probably the login to the CMI is not yet working.
Hey @krimskrams,
great to hear its working on your system I never got rid of the delay (message) myself, so a) I don’t think it’s problematic and b) I can’t really help out further.
Hi @ebnerjoh
did you got the CMI to work? I am still struggling with the setup, when I include the blnet: part in my configuration.yaml HA will stall with 100% CPU usage telling me the integration blnet cannot coimplete setup.
Thanks, Christian
That still sounds troublesome. Do this still occur? Any updates on this? Is it possible to access the CMI/BLNet interface using the exact IP you provide for your setup (just a wild guess)? I am not sure how exactly a complete stall might be caused during setup.
Honestly I did not further experiment with the integration of the CMI / UVR1611 into HA as I had no idea where / what to change.
The CMI itself does work, I have the UVR1611 Data Logger installed and it works perfectly.
And with the answer from @ebnerjoh I assume your code works with the BLnet but there are some differences to the CMI.
Alright. I do not have access to a CMI bridge so unfortunately I can’t help with it. Do note that I have also written a tool to integrate the UVR1611 Data Logger into home assistant - the tool is rather old though and may not work seemlessly anymore with the newest version of home assistant. It might be a starting point to get such an integration working again though.
@nielstron - Thank you for your very nice piece of work !
Just started integration your “blnet” component to a new HA installation ( 0.118.) - python venv type installation. This device (and your work) is my real motivation to start with HA!
after I installed the PyBLNET python library and adding the files from your gitbhub repo
my configuraiton was able to start with the “blnet” components,
but when enabling “use_ta true” I get following errors: I assume something with the data ( speed sensors) I got back from my ( OLD) BLNET - Firmware version 2.19 - is different as your development environment
Traceback (most recent call last):
File "/home/homeassistant/lib/python3.8/site-packages/homeassistant/setup.py", line 213, in _async_setup_component
result = await task
File "/usr/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/home/homeassistant/.homeassistant/custom_components/blnet/__init__.py", line 103, in setup
data = fetch_data()
File "/home/homeassistant/.homeassistant/custom_components/blnet/__init__.py", line 99, in fetch_data
return hass.data["DATA_{}".format(DOMAIN)].update()
File "/home/homeassistant/.homeassistant/custom_components/blnet/__init__.py", line 147, in update
data = self.blnet.fetch(self.node)
File "/home/homeassistant/lib/python3.8/site-packages/pyblnet/blnet.py", line 90, in fetch
direct = self.blnet_direct.get_latest(self.max_retries)[0]
File "/home/homeassistant/lib/python3.8/site-packages/pyblnet/blnet_conn.py", line 328, in get_latest
frames.update(self._split_latest(data, frame))
File "/home/homeassistant/lib/python3.8/site-packages/pyblnet/blnet_conn.py", line 350, in _split_latest
frames[frame] = BLNETParser(data[1:LATEST_SIZE + 1])
File "/home/homeassistant/lib/python3.8/site-packages/pyblnet/blnet_parser.py", line 75, in __init__
self.speed[channel + 1] = round(
TypeError: type NoneType doesn't define __round__ method
Hi @mahomh ,
Great to hear you have some use for the component!
The “use_ta” option (using BLNET-Direct) is not tested and likely not properly working at all as of now. The blnet component should work fine without it though
Hi @nielstron ,
Thank you for your fast reply !
To understand it correctly - the “use_ta” option enables the direct communication via (default) port 40000 ? And there are no more features missing without that ?
But I do not see any componnet/entity in the UI.
Sorry to ask ( as I am new to HA) - I do not see in your example configuration.yaml, how to display the values and make switches visable - Can you give me some hints ?
Thanks, Martin
@martinh All features are available if the web-login worked correctly. Components should show up to be available automatically (not sure how this is handled in newer versions of HA, they used to just pop up on your main screen but I guess they do not anymore).
To see if there were any issues connecting try checking the logs of home assistant. Please do not refrain from contacting me if there are any bugs.
@nielstron great work!
I managed to integrate my uvr1611. I have one question: is it possible to see the current state of automated switches? I see if a digital switch is set to automated, the corresponding manual switch is always off. In the web frontend of the bootloader I see „AUTO/AUS“ and „AUTO/EIN“, regarding to the current state. I would like to set up an automation quering the state of „Anforderung Pelletkessel“ to check running out of pellets.
@nielstron
Since I had no experience with python and HA yet I needed some time to find the solution myself.
I changed the “switch.py” so that the icons show correct state.
that looks really nice! I thought I had already implemented the actual state to be reflected somehow, however I am not sure whether or where it was implemented.
@bulli - Thank you for your update for “BLNET” - Now I see the status of my heating/BLNET digital sensor - it is already showing up on my dashboard !
@nielstron - I really appreciate your integration of @bulli’s updates - I verified the problem with temperatures/values below 0 with the latest source:
Sorry, but senors are still missing if their temperature value is below 0 degrees- if the value goes above 0 the sensor is listed again - see below - “sensor 1” is outside temperature
( I checked all the files from the “master” repository. including “pyblnet”)
2021-01-07 04:29:32 INFO (SyncWorker_5) [custom_components.blnet] Collecting data...
2021-01-07 04:29:32 INFO (SyncWorker_5) [custom_components.blnet] Checking for new sensors...
2021-01-07 04:33:29 INFO (SyncWorker_15) [custom_components.blnet] Collecting data...
2021-01-07 04:33:29 INFO (SyncWorker_15) [custom_components.blnet] Checking for new sensors...
2021-01-07 04:33:29 INFO (SyncWorker_15) [custom_components.blnet] Discovered analog sensor 2 in use, adding
2021-01-07 04:33:29 INFO (SyncWorker_15) [custom_components.blnet] Discovered analog sensor 3 in use, adding
2021-01-07 04:33:29 INFO (SyncWorker_15) [custom_components.blnet] Discovered analog sensor 4 in use, adding
2021-01-07 04:33:29 INFO (SyncWorker_15) [custom_components.blnet] Discovered analog sensor 5 in use, adding
2021-01-07 04:33:29 INFO (SyncWorker_15) [custom_components.blnet] Discovered analog sensor 6 in use, adding
2021-01-07 04:33:29 INFO (SyncWorker_15) [custom_components.blnet] Discovered analog sensor 7 in use, adding
if temperature increases sensor 1 “appears”:
2021-01-07 09:49:29 INFO (SyncWorker_6) [custom_components.blnet] Collecting data...
2021-01-07 09:49:29 INFO (SyncWorker_6) [custom_components.blnet] Checking for new sensors...
2021-01-07 09:49:29 INFO (SyncWorker_6) [custom_components.blnet] Discovered analog sensor 1 in use, adding
2021-01-07 09:49:29 INFO (MainThread) [homeassistant.components.sensor] Setting up sensor.blnet
2021-01-07 09:49:29 INFO (SyncWorker_6) [custom_components.blnet] Added overall 1 sensors
To fix this I need the HTML source of the BLNET Webinterface when reading the digital values.
Of course only at the point where any digital value is negative.
A short guideline how to accomplish this:
Log in to the web interface
navigate to the digital values (sth like Menu->Digital Values)