New binding for DAIKIN Madoka Controller (BLE)

for me after a day or with the thing working on OH 3 I noticed that the devide was showing as offline on OH, sometimes pausiong and restarting the thing worked, but now I get again the Duplicate channel error…

Can you direct me to the code I need to put on the esp32 so that it works with Madoka? Thanks

You might have a mix of different code versions in your install. Sometimes there is cache.
OH 3.0.0.M2 is being released very soon, and I suggest you upgrade on this one, and delete any previous cache/tmp folder. Everything will be part of OH 3 M2 (new BlueZ binding and fixed Madoka plugin without duplicate RSSI).

BLE2MQTT is here

But it is currently not supported to be used as a Bluetooth adapter in OH.

I installed the milestone and once the Thermostat is configured it shows as online but no values comu up on the channels (e.g. see the Power Status Channel on the image)

Also, I tried disabling and enabling the thing to see if it made any difference, and then the duplicate RSSI channel error comes up. To me this is a bug on the code where it may be trying to re-register the channels when re-enabling a disabled device. The same RSSI error shows up when restarting the openhab service, so defintelly there seems to be a bug somewhere to be fixed (and I´m pretty sure it is not caused by any earliewr versions, as I started from a clean slate raspberry pi image)

Stack trace below in case helps you fix the bug

also there are some other errors on the logs

That is really weird, as this was fixed in this PR:

Looking at the source code from the main tree, the vuln is fixed, there is no more RSSI channel:

There is no JAR or KAR remaining in your ${OH}/addons ? Have you removed the cache and temp folders in userdata?

Maybe you fixed it on the initial registration of the thing, but maybe there’s some logic that is triggered once the device is reenabled or during service reboot that is causing another attempt to register the channel.

Apart from that, the thing channels are not receiving data from the device, even when it is showing online

The fix for this has been merged into the latest 3.0.0 snapshot.

Do you have a link to the code change? I don’t see any changes to the Madoka addon bundle in the last few days…

The changes were in the bluetooth addon not the madoka addon. The duplicate channel issue affected all bluetooth devices, not just diakin madoka.

Great, thanks!

The duplicate channel error seems gone (e.. I can Disable and reenable the thing and it comes back online without the RSSI error), but there are many other errors still there (some of them new, like the one referring to a missing characteristic). When I try to interact with the thing (e.g. turning off the “Unit Power Status” through a switch Item) the device throws a communication error and goes offline). Maybe the change that was done to remove the RSSI channel needs to be brought back as there has been a somehow related fix higher up on the bluetooth bundle?

Hi @andresdrb,
That’s weird!
Can you tell me your software version ?
Example for mine:

Can you also send us the output, in bluetoothctl, the output of info <macaddr> ?

that command to get the list of versions doesn’t return anything for me. I can give you this

and this is the mac info

Regarding the version, it is the device channel, as per documentation:

Based on your Bluetoothctl screenshot, it seems that your device is not paired.
I’ve faced the problem with blueZ losing the pairing for some unknown reason.
What I’ve been doing, is, when working fine, backup the pairing (/var/lib/bluetooth/)

I suggest repair properly your device

Hi,
I am really enjoying your binding and use it a lot.
Is there a way to get more info from the Madoka Controller, I am interesting mainly in the following data:

Thanks

Hi,

There is a PR ongoing for new channels, including the clean filter indicator (supporting the reset of the notification as well), but not the defrost / hot start.
I can also consider adding others unit status:

https://github.com/openhab/openhab-addons/pull/9368

hi Yaron,
I’ve just bought a Daikin system with 10 Madoka controllers, I’m happy to see there is another solution but CoolMaster which costs 2500USD.
any idea where can I find some guidelines for how to install everything?

thanks,
Tamir

Hi Tamir,

You should install the Bluetooth Binding and follow the instructions in this link DaikinMadoka.