openhab / openhab-addons

Add-ons for openHAB
https://www.openhab.org/
Eclipse Public License 2.0
1.87k stars 3.58k forks source link

[grundfosalpha] Add support for Grundfos Alpha3 #16116

Open jlaur opened 9 months ago

jlaur commented 9 months ago

As discussed in #15907 extending support for Grundfos Alpha3 seems doable. See https://github.com/openhab/openhab-addons/pull/15907#issuecomment-1817656036.

This issue is created to keep track of resources, discussions and progress towards implementing this support.

Other projects having an implementation:

jlaur commented 9 months ago

I tried taking a few baby steps, but so far completely without success. In a new handler I added some logging:

    @Override
    public void onScanRecordReceived(BluetoothScanNotification scanNotification) {
        super.onScanRecordReceived(scanNotification);
        byte[] manufacturerData = scanNotification.getManufacturerData();
        logger.trace("onScanRecordReceived manufacturer data length: {}", manufacturerData.length);
        byte[] data = scanNotification.getData();
        logger.trace("onScanRecordReceived data length: {}", data.length);
    }

I get only empty byte arrays. Same when deriving from ConnectedBluetoothHandler rather than BeaconBluetoothHandler. It seems Alpha3 is a bit different than the Alpha Reader and requires more logic to be implemented.

FYI @tisoft

tisoft commented 9 months ago

Yea, alpha3 needs a real pairing connection. I will have a look, but I'm currently busy with other things.