Closed jollyjinx closed 3 years ago
Just a followup for others that might come here in the future. I was able to get it working in BidCos only mode and it works fine. I restored a backup and was able to switch switches and read values (like power values form a measuring plug). The empty teach-in devices window is still there, so I suspect some else being awry with the Homematic software system itself.
If the adapter is recognized by pyvccu then it should work out of the box. Check the install script to ensure the code is added to the host to init the kernel module.
The error you describe (no HM-IP) should be because the "old" firmware is loaded or the manufacturing firmware is left untouched. The CCU updates the firmware at /etc/S12UpdateRFHardware. I patch this at https://github.com/angelnu/docker-ccu/blob/master/additions/patches/S12UpdateRFHardware.patch
If everything goes well you should actually get two virtual devices, each one for one of the protocols. The rfd daemon only handless the old one while the java daemon does the homematic IP one.
I've put it in the GPIO of the Raspberry and have had no luck. The only way I can get to the correct teach in page (both ip and bidcos ) is via booting it in RaspberryMatic - so the hardware works it seems ( actually I have two of the devices now as I first thought it was not working). So this is a plain raspberry pi, raspberry pi os, docker and the plain HM-MOD-RPI-PCB in the GPIO port and it does not show the teach window correctly.
On a side note: How can I check that it's recognized by pivccu ? and why do we need pivccu anyways ? I thought the whole multiplexing of bidcos/hmip is done by multimcad ?
You need the pivccu for the USB adapter. When you connect it directly to GPIO it should work without pivccu but then you need to ensure that the board is detected at https://github.com/angelnu/docker-ccu/blob/master/additions/files/etc/init.d/S01InitHost
Since I moved to use pivccu I did not check with the Raspberry PI 4 without pivccu but it should be possible to add. Please do a PR if you add it.
Closing issue since migrated to RaspberryMatic -> see https://github.com/jens-maus/RaspberryMatic/wiki/Docker
If issue is still there in RaspberryMatic please open an issue there - I will provide support there.
I've tried this Homematic installation as I wanted to have it inside a container on my raspberry pi4. I've bought a HM-MOD-RPI-PCB which I connect via USB ( I had a fd232 lying around ). I've changed the boot up process so that /etc/init.d/S11InitRFHardware correctly initializes the /var/hm_mode to something like (numbers changed)
rfd also looks good to me:
The Website comes ok and shows a duty cycle but for whatever reason it does not show a teach-in device page - it only shows 'back' and 'inbox'
Edit: I've directly put in the board into the raspberry pi 4 directly and have the same result - it's recognized and multimacd and rfd run fine, but no teach in on the webpage. So it seems to me it has nothing to do with the fact that I was adding it via usb first.
where should I look to get hints on what's going wrong ?