Still trying to pair with madoka with no luck. After trying “agent off” I can’t pair, in Madoka thermostat the pairing icon appears very briefly (less than 500ms) and in HA appears AuthenticationFailed. I have never seen a confirmation code.
However I got this after trying a lot of pairings (sorry, I can’t copy the text):
I was right next to the controller with a PC but no code appeared. The pariring icon (not the code) appeared for a very short time and the display went back to the bt icon.
BTW, the rpi is in the basement and the madoka thermostat is at ground level, so they are a bit far. I will move the rpi so it is closer and try the pairing again, do you think it will help?
I was able to set it up again using an external BT adapter on pi3.
To be honest, I’ve tried it before but not quite sure why it is working now. Did several reboots to get the pairing to work.
Hi there,
I have 8 Madoka thermostat.
I am able to pair it all with bluetoothctl without issues.
My system is composed by a NAS server where HA is installed in a docker container.
The usb interface is a cheap small usb dongle.
The issue is that i can integrate the Madoka just one at a time!
Adding just a second paired Madoka, HA brings a pop up without any other information than a simple message “Interrotto”.
All the device MAC addresses have to be provided when the integration is being setup, it is not possible to setup the integration several times. You can specify multiple addresses using a semi-colon separator ( and all devices should appear automatically.
Did you solve this?
I too cannot get code to show with yes and no options.
The Madoka bluetooth display progreeses to a pairing symbol but then because I cannot authenticate I have to use cancel-pairing [mac] or remove [mac] commands.
I was able to use Pi3 internal bt and set that up a few months back. Now I want to re-add a controller after deleting its pairing, but am facing the same issue. I have upgraded the os and ha a few times between.
Did you get the internal bt working again?
managed to fix (internal bt) : bluetoothctl, power off, agent off, agent KeyboardDisplay, default-agent, power on, scan on, scan off (after seeing bt device), trust [ mac], pair [mac], - yes/no option to pair now shows. not sure you need trust, more likely setting power and default solved it.
This error originated from a custom integration.
Logger: custom_components.daikin_madoka
Source: custom_components/daikin_madoka/__init__.py:74
Integration: Daikin Madoka
First occurred: 6:48:50 PM (2 occurrences)
Last logged: 6:59:47 PM
Could not connect to device 68:88:A1:39:A0:F5: Could not find bluetooth device for the address 68:88:A1:39:A0:F5. Please follow the instructions on device pairing.
I received the message Device 68:88:A1:39:A0:F5 Paired: yes Pairing successful when pairing with bluetoothctl.
I noticed like others that the configuration screen is blank and returned and exclamation mark when I provided the MAC address. I unchecked the two boxes to see if it would work and indeed it added the device to home assistant. Then the error above occurred.
I removed the integration and re-added which then gave me the proper text descriptions. I received an error, tried a connect command which worked, and then was able to add the device in the configuration. Again thought, same "Could not connect to device " in the logs.
Attached is a screenshot of what I see on the Daikan.
My suggestion is to remove all the thermostat bluetooth connections (press the B with the crossthrough on that picture). Then, repeat the steps used to establish the connection from the command line. Keep in mind that you don’t have much time since you type “pair xx” on the command line and accept the connection on the thermostat.
Otherwise, they may appear to be connected, but the thermostat hasn’t authorized the connection and it is not going to work.
I did test using the mobile app to see how the thermostat reacts. There is a “pairing” button on the thermostat. Once I confirm the connection code on the mobile and then click “pairing” on the thermostat, it goes back to the home screen and glows green when the phone is connected. I had the same exact experience when pairing with home assistant but I still get the error. I’ll give it another try.