4 Madoka connected and functional - It has been very difficult (More than 5 hours with all type of issues)
I recommend the following
0 - Once Devices are Paired, before Integration with Custom component
1 - All Madoka are using the same alias, hence it is disconnected. It is useful to rename the device via
bluetoothctl , (power off, power on, devices)
connect <mac>
set-alias <alias>
TIPS 1 - Using Putty better than Terminal H ( possible to Copy/paste of MAC address with Putty )
TIPS 2 - Prepare a note with all MAC and Alias + sequence with bluetoothctl, power on, off, scan off, trust, pair
Hi all,
after 2 or 3 hours or good functioning, the Bluetoothctl is no longer responding.
Error Message :
“Waiting to connect to bluetoothd…dbus[207]: arguments to dbus_connection_get_object_path_data() were incorrect, assertion “connection != NULL” failed in file dbus-connection.c line 5921.
This is normally a bug in some application using the D-Bus library.”
This component does not (yet) support devices that require security settings (eg connecting with a PIN).
I suspect this rules out using esphome and bluetooth proxying to pair to and control the Madoka BRC1H. If anyone’s found a workaround, please let me know.
Hello everyone.
I finally wrote a madoka component for ESPHome. It’s still in a pre-early stage (code has to be re-styled and organized), but it works. If anybody wants to try it out, here’s a sample ESPHome configuration to make it work.
Now, the component is working and I was able to connect to my thermostat. But after some time, I’m losing connection and then the home-asisstant console is flooded with these messages:
hi @Petapton , I will try your sample ESPHome configuration. Just got one sample unit to play with during weekend. Sorry for the dumb question, but dont we need to pair the esp32 with the madoka controller first? How do we do that?
Yes, I set the integration to display the pairing code, but it basically trusts anything (it could be improved, but for a first proof of concept it is enough). You just have to confirm pairing from the madoka unit and it should go.
Please note that I had some troubles in testing with the device reporting successful pairing but being unable to communicate. This seems to be due to the fact that ESP32 saves past pairing info into flash and they survive firmware flashing. So if you get such an error, please try esptool.py erase_flash before flashing the firmware.
Mine is still crashing. Maybe it’s got to do with my Madoka, it seems somehow I have two setpoints while I shall have only one (or vice versa). My AC is cooling only.
You could try to alter the climate component declaration (see Add Daikin Madoka Component. · esphome/esphome@64b05d8 · GitHub). It probably fails trying to get the two setpoints of your Madoka remote (as it provides just one). You could also try to revert the Madoka remote to use two setpoints by means of the advanced settings in the mobile app (pairing the app again): I know it is necessary to switch on “one setpoint mode” if you want to use the daikin wifi adapter; I guess it is possible to do the opposite.
I’m wondering if @Petapton is still interested in working on his own component…
Its amazing! I tried it and it works well with 1 Madoka unit. If i add second one it was like very unstable.
I used ESP32-WROVER 240 MHz 328 kB (small ram?) for that. I have also noticed that after some time it stops sending information about state and in HA it looks like disconnected, but if i switching the state on HA component wakes up. But after night it disconnect completely and switch the state on component doesn’t help
I tested the component on an OLIMEX ESP32-POE with just one remote: it is perfectly stable. HA never looses the connection. I’ve not tried with multiple remotes (but I will do as I got 4 remotes). It could be related to some kind of race-condition but I would start using another unit.
I ordered also Olimex Poe. Maybe this will solve my issue with connection. I found out that the Bluetooth on my board has problem to connect via closed door on 3m distance. Interesting due other devices are able to communicate on much bigger range. Maybe it’s standard Iam newbie in esp32
Hello, you could try to switch to the esp-idf framework. As for this page (red box), it should be much more stable.
The ESP32 Platform component should be configured to use the esp-idf framework, as the arduino framework uses significantly more memory and performs poorly with the Bluetooth proxy enabled. When switching from arduino to esp-idf, make sure to update the device with a serial cable as the partition table is different between the two frameworks as OTA Update Component updates will not change the partition table.