cereal2nd / velbus-aio

Velbus Asyncio
Apache License 2.0
15 stars 10 forks source link

Velbus in Home Assistant not detecting all modules #118

Open Bernd-97 opened 2 months ago

Bernd-97 commented 2 months ago

Hi guys

I have used OpenHAB to tweak my Velbus setup for a few years on an Raspberry Pi 4b, but recently decided to jump on the HA train. I bought a HA Yellow, installed it, pretty neat software, detects a whole lot of stuff in my house (Musiccast, Samsung TV, Doorbird, ...)

When I added the Velbus device, I noticed that the hub only detects 24 of the 39 modules. Looking around I found that the last "found" address is decimal 70. The ones not found are :

FYI, all the modules that aren't found are in a 3rd cabinet. The modules in the first and second cabinet are all found. OpenHAB on my Rpi never had any problems with that.

Any ideas if there is anything I can do? I tried to reload the hub a few times, doesn't help. I'd rather not change the addresses, as it's easier for me to find the correct module.

Kind regards Bernd

cereal2nd commented 2 months ago

can you enable the debug loggin on the velbus integration? then reload it and attach it to this ticket?

Bernd-97 commented 1 month ago

Sure thing, here goes (added the json also, just in case)

home-assistant_velbus_2024-08-25T13-42-33.336Z.log config_entry-velbus-01J4VC8MG5DWCG406H5TCV40XN.json

c-soete commented 4 weeks ago

@Bernd-97 I'm having the exact same issue. I've already mentioned it in the Velbus forums here:

https://forum.velbus.eu/t/velbus-home-assistant-missing-module-instances/17402/19

Have you found a fix for this or should I downgrade?

cereal2nd commented 4 weeks ago

serial.serialutil.SerialException: [Errno 2] could not open port /dev/serial/by-id/usb-Velleman_Projects_VMB1USB_Velbus_USB_interface-if00: [Errno 2] No such file or directory: '/dev/serial/by-id/usb-Velleman_Projects_VMB1USB_Velbus_USB_interface-if00'

does this file exsists on your system? if not your integration is wrongly configured

can you also have a look at the cache directory? its in the same location as the homeassistant config file, a subdir here .storages and then the velbuscache directroy

Bernd-97 commented 3 weeks ago

@c-soete No not yet, but I don't find much time to try and fix it

@Cereal2nd I do have that file, took a screenshot with the VS Code add-on. And I can actually control the items, with realtime update, so the USB interface does work. usb

But I can't seem to find that velbuscache. Where exactly can I find that?

Extra update: I changed one of the addresses (201) to number 60, which is in the range of modules that the binding did find (I have a number 61,62,63 and 70 which are detected), and reloaded the binding. Didn't help, still only 24 modules found.

cereal2nd commented 3 weeks ago

fo the address changes the velbuscache needs to be cleared.

either do this via the HA service page or do this via the filesystem (while ha is stopped)

cereal2nd commented 3 weeks ago

i could really use some help here, there are mistakes in the protocol definition file:

https://github.com/Cereal2nd/velbus-aio/blob/master/velbusaio/protocol.json

if you could have a look thats everything is correct for your modules we may be able to solve it. This is the biggest pain in velbus, the protocol definitions are only availabel in pdf, so we need to extract the needed info for each module into this file, once its in there in 99% of the cases the modules will just work in HA.

c-soete commented 3 weeks ago

Does this also apply to me, because I want to help as well.

Where can I find the protocol definition for each one of my modules in my system?

cereal2nd commented 3 weeks ago

every little item that gets added would be helpfull

https://github.com/velbus/moduleprotocol