Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support for HomeMatic/homematicIP communication #30

Merged
merged 3 commits into from
Apr 28, 2024

Conversation

honsma235
Copy link

Till a few weeks ago I had Debian installed on my rock-4se with an home assistant supervised install.
That worked quite ok, until it stopped booting after I updated the OS :/. After i realized I am not able to fix the problem and I will have to install from scratch, I though I might give your fork another chance. Last time I tried, about a year ago, it didn't want to boot on my board, but this time it worked right away. Loaded my backup and it was up and running.

I was happy to leave the supervised install behind, but then I noticed that the RaspberryMatic Addon was not working as it didn't find my USB RF-Module (HMIP-RFUSB).
Upon investigating your fork I noticed that the necessary kernel modules 'eq3_char_loop' and 'generic_raw_uart' aren't present. Upstream they get pulled in with "BR2_PACKAGE_RPI_RF_MOD", but neither is active in your configs for the Rock* boards.

I tested it on my rock-4se board and my RF-Module works if the packages BR2_PACKAGE_EQ3_CHAR_LOOP and BR2_PACKAGE_GENERIC_RAW_UART are activated.

I don't think there is any downside. As far as I know, they only add two kernel modules necessary for some specific hardware.

@citruz
Copy link
Owner

citruz commented Apr 26, 2024

Oh now I see why the BR2_PACKAGE_RPI_RF_MOD package is enabled in all configs upstream even for devices that are not a raspberry pi 🙃
We could also enable that instead of adding the two packages explicitly. I'm wondering if BR2_PACKAGE_RPI_RF_MOD itself is installing anything at all if none of the BR2_PACKAGE_RPI_RF_MOD_DTS_* options are set.

@honsma235
Copy link
Author

I tried to enable BR2_PACKAGE_RPI_RF_MOD only and my RF-Module was working.
But I didn't dig into what actually happens inside the package.

Maybe @jens-maus could comment on this. I think he would know right away.

@citruz
Copy link
Owner

citruz commented Apr 27, 2024

I checked and the only thing it does is installing a rules file to /lib/udev/rules.d/. But let's stay consistent with the other configs and enable BR2_PACKAGE_RPI_RF_MOD instead of the two individual packages.
Do you want to update your PR so that you are credited as a contributor? I try to keep the config options alphabetically sorted so please at it after BR2_PACKAGE_RPCBIND.

@honsma235 honsma235 changed the title Add packages EQ3_CHAR_LOOP and GENERIC_RAW_UART to make raspberrymatic work with a HMIP-RFUSB module Support for HomeMatic/homematicIP communication Apr 28, 2024
@honsma235
Copy link
Author

Done.

Just for reference, here is the PR where this got added upstream: home-assistant#1266

@citruz citruz merged commit 97ff35b into citruz:rockpi_12.2 Apr 28, 2024
@honsma235 honsma235 deleted the PR_raspberrymatic branch April 29, 2024 05:06
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants