I would like to add this custom component but I don’t at all how to do it on HA/HACS.
Using this repo, I am able to connect to my Madoka device but I don’t know how to add the custom component to HA.
Thanks for sharing this. I’m unfortunately having a bit of trouble with it though - it doesn’t seem to be presenting the confirmation message on the madoka unit before failing authorisation
Yes, it is.
Hope I get some spare time to prepare a pull request to the official esphome project.
In the meantime, the updated config snippet is the following:
It really does seem like there is something different with the US ones. Same trouble here. Madoka Assistant seems designed for BRC1H5# and 6# controllers (I remember seeing something like that, can’t find it now). So maybe 7# series is different.
The device originally shows up in bluetoothctl as a BRC1H71, but then seems like it can be paired again (second time) as a UE878 RF Module.
My device info:
SW1 21001801
Ver 01.01.00
SW2 70310517
30:F9:4B:DE:94:BE
I have done, but isn’t paired. It’s ready to pair with mobile. BTW, should I remove the madoka custom component? I have it disabled, so, it shouldn’t be the reason of not working.
Hey there. Awesome news re: ESPhome. I just tried to set this up using an M5Stack, but no luck. Few things based on the conversations here:
ble_tracker can’t be used with ble_client, so the yes_no option can’t be configured. But regardless of that! I’ve got a compile error:
In file included from src/esphome/components/madoka/madoka.cpp:1:0:
src/esphome/components/madoka/madoka.h:77:8: error: 'void esphome::madoka::Madoka::gap_event_handler(esp_gap_ble_cb_event_t, esp_ble_gap_cb_param_t*)' marked 'override', but does not override
void gap_event_handler(esp_gap_ble_cb_event_t event, esp_ble_gap_cb_param_t *param) override;
^
src/esphome/components/madoka/madoka.cpp: In member function 'void esphome::madoka::Madoka::gap_event_handler(esp_gap_ble_cb_event_t, esp_ble_gap_cb_param_t*)':
src/esphome/components/madoka/madoka.cpp:92:70: error: 'class esphome::ble_client::BLEClient' has no member named 'get_gattc_if'
auto status = esp_ble_gattc_register_for_notify(this->parent_->get_gattc_if(), this->parent_->get_remote_bda(),
^
src/esphome/components/madoka/madoka.cpp:92:101: error: 'class esphome::ble_client::BLEClient' has no member named 'get_remote_bda'
auto status = esp_ble_gattc_register_for_notify(this->parent_->get_gattc_if(), this->parent_->get_remote_bda(),
^
src/esphome/components/madoka/madoka.cpp: In member function 'virtual void esphome::madoka::Madoka::gattc_event_handler(esp_gattc_cb_event_t, esp_gatt_if_t, esp_ble_gattc_cb_param_t*)':
src/esphome/components/madoka/madoka.cpp:123:45: error: 'class esphome::ble_client::BLEClient' has no member named 'get_remote_bda'
esp_ble_set_encryption(this->parent_->get_remote_bda(), ESP_BLE_SEC_ENCRYPT_MITM);
^
src/esphome/components/madoka/madoka.cpp: In member function 'void esphome::madoka::Madoka::query(uint16_t, esphome::madoka::message, int)':
src/esphome/components/madoka/madoka.cpp:222:13: error: 'delay' was not declared in this scope
delay(10);
^
src/esphome/components/madoka/madoka.cpp:233:53: error: 'class esphome::ble_client::BLEClient' has no member named 'get_gattc_if'
esp_ble_gattc_write_char(this->parent_->get_gattc_if(), this->parent_->get_conn_id(), this->wwr_handle_,
^
src/esphome/components/madoka/madoka.cpp:233:84: error: 'class esphome::ble_client::BLEClient' has no member named 'get_conn_id'
esp_ble_gattc_write_char(this->parent_->get_gattc_if(), this->parent_->get_conn_id(), this->wwr_handle_,
^
src/esphome/components/madoka/madoka.cpp:247:12: error: 'delay' was not declared in this scope
delay(t_d);
^
*** [.pioenvs/madoka-1f-master/src/esphome/components/madoka/madoka.cpp.o] Error 1
========================== [FAILED] Took 4.34 seconds ==========================
so that I will wait for a future implementation that works o that I’m able to make it works in my installation.
in my last tentative I was able to pair bluetooth on termina, but when I try to configure madoka entity, after pressing “submit” i got this error on HA:
This error originated from a custom integration.
Logger: pymadoka.connection
Source: custom_components/daikin_madoka/init.py:72
Integration: Daikin Madoka
First occurred: 10:40:47 PM (57 occurrences)
Last logged: 10:45:47 PM
No backend with an available connection slot that can reach address B8:F2:55:00:92:42 was found
[org.bluez.Error.Failed] br-connection-canceled
[org.bluez.Error.Failed] Operation already in progress
I was finally able to configure the ESPHome component made by Petapton.
My first try faiiled because of my limited experience with ESPHome.
Now I’m using a D1 Mini NodeMcu con Modulo WiFi ESP8266-12F, that controls two Daikin Madoka devices.
Hey Manu, there’s a PR that someone’s posted with a bunch of fixes. It’d be great if that could be merged .
I’m not sure if anyone’s got the “power on/off” working. Mine doesn’t seem to work at all. - i’ve tried with the latest fixes/patch in the issues on Github and without.
The esp madoka works really well. One question. Can you setup and control more than one madoka with one esp32? if yes how the configuration looks like?