Daikin Madoka BRC1H bluetooth custom component

Thanks for your work @Petapton, works like a charm.

1 Like

BRC1H519W
Version Release 1.9.0

DAIKIN VRV / UnitƩ FXNQ

I am desperate. What is wrong with me ?

esp32:
  board: esp32dev
  framework:
    type: esp-idf

esphome:
  name: madoka
  friendly_name: madoka

# Enable logging
logger:
  level: VERBOSE

switch:
  - platform: restart
    name: "madoka-bridge-reboot"

##################################################################
#https://community.home-assistant.io/t/daikin-madoka-brc1h-bluetooth-custom-component/268594/100?page=4
external_components:
  - source: github://Petapton/esphome@madoka
    components: [ madoka ]

esp32_ble_tracker:

esp32_ble:
  io_capability: display_yes_no

ble_client:
  - mac_address: B8:F2:55:01:BC:5C
    id: madoka_1

climate:
  - platform: madoka
    name: "Madoka Master"
    ble_client_id: madoka_1
    update_interval: 15s
# INFO ESPHome 2024.2.0

INFO Reading configuration /config/esphome/madoka.yaml...

INFO Starting log output from 192.168.50.99 using esphome API

INFO Successfully connected to madoka @ 192.168.50.99 in 1.124s

INFO Successful handshake with madoka @ 192.168.50.99 in 0.177s

[18:20:39][I][app:102]: ESPHome version 2024.2.0 compiled on Feb 28 2024, 18:13:52

[18:20:39][C][wifi:577]: WiFi:

[18:20:39][C][wifi:409]: Local MAC: F0:08:D1:D2:6D:3C

[18:20:39][C][wifi:414]: SSID: 'IOT'[redacted]

[18:20:39][C][wifi:415]: IP Address: 192.168.50.99

[18:20:39][C][wifi:417]: BSSID: D2:21:F9:D5:88:19[redacted]

[18:20:39][C][wifi:418]: Hostname: 'madoka'

[18:20:39][C][wifi:420]: Signal strength: -68 dB ā–‚ā–„ā–†ā–ˆ

[18:20:39][V][wifi:422]: Priority: 0.0

[18:20:39][C][wifi:424]: Channel: 1

[18:20:39][C][wifi:425]: Subnet: 255.255.255.0

[18:20:39][C][wifi:426]: Gateway: 192.168.50.254

[18:20:39][C][wifi:427]: DNS1: 192.168.50.254

[18:20:39][C][wifi:428]: DNS2: 0.0.0.0

[18:20:39][C][logger:447]: Logger:

[18:20:39][C][logger:448]: Level: VERBOSE

[18:20:39][C][logger:449]: Log Baud Rate: 115200

[18:20:39][C][logger:451]: Hardware UART: UART0

[18:20:39][C][restart:068]: Restart Switch 'madoka-bridge-reboot'

[18:20:39][C][restart:070]: Icon: 'mdi:restart'

[18:20:39][C][restart:091]: Restore Mode: always OFF

[18:20:39][C][madoka:013]: madokaDaikin Madoka Climate Controller 'Madoka Master'

[18:20:39][C][esp32_ble:374]: ESP32 BLE:

[18:20:39][C][esp32_ble:376]: MAC address: F0:08:D1:D2:6D:3E

[18:20:39][C][esp32_ble:377]: IO Capability: display_yes_no

[18:20:39][C][esp32_ble_tracker:645]: BLE Tracker:

[18:20:39][C][esp32_ble_tracker:646]: Scan Duration: 300 s

[18:20:39][C][esp32_ble_tracker:647]: Scan Interval: 320.0 ms

[18:20:39][C][esp32_ble_tracker:648]: Scan Window: 30.0 ms

[18:20:39][C][esp32_ble_tracker:649]: Scan Type: ACTIVE

[18:20:39][C][esp32_ble_tracker:650]: Continuous Scanning: True

[18:20:39][C][ble_client:027]: BLE Client:

[18:20:39][C][ble_client:028]: Address: B8:F2:55:01:BC:5C

[18:20:39][C][ble_client:029]: Auto-Connect: TRUE

[18:20:39][C][captive_portal:088]: Captive Portal:

[18:20:39][C][mdns:115]: mDNS:

[18:20:39][C][mdns:116]: Hostname: madoka

[18:20:39][V][mdns:117]: Services:

[18:20:39][V][mdns:119]: - _esphomelib, _tcp, 6053

[18:20:39][V][mdns:121]: TXT: friendly_name = madoka

[18:20:39][V][mdns:121]: TXT: version = 2024.2.0

[18:20:39][V][mdns:121]: TXT: mac = f008d1d26d3c

[18:20:39][V][mdns:121]: TXT: platform = ESP32

[18:20:39][V][mdns:121]: TXT: board = esp32dev

[18:20:39][V][mdns:121]: TXT: network = wifi

[18:20:39][V][mdns:121]: TXT: api_encryption = Noise_NNpsk0_25519_ChaChaPoly_SHA256

[18:20:39][C][ota:096]: Over-The-Air Updates:

[18:20:39][C][ota:097]: Address: madoka.local:3232

[18:20:39][C][ota:100]: Using Password.

[18:20:39][C][ota:103]: OTA version: 2.

[18:20:39][C][api:139]: API Server:

[18:20:39][C][api:140]: Address: madoka.local:6053

[18:20:39][C][api:142]: Using noise encryption: YES

[18:20:40][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:41][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:41][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:42][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:42][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:42][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:42][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:42][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:42][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:42][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:42][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:43][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:43][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:43][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:43][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:43][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:44][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:44][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:44][D][madoka:189]: Got update request...

[18:20:44][W][component:214]: Component madoka.climate took a long time for an operation (0.25 s).

[18:20:44][W][component:215]: Components should block for at most 20-30ms.

[18:20:44][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 4

[18:20:44][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=4 gattc_if=3

[18:20:44][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_WRITE_CHAR_EVT

[18:20:44][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 4

[18:20:44][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=4 gattc_if=3

[18:20:44][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_WRITE_CHAR_EVT

[18:20:44][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:44][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:44][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:44][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:44][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:44][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:44][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:44][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:44][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:44][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 4

[18:20:44][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=4 gattc_if=3

[18:20:44][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_WRITE_CHAR_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 4

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=4 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_WRITE_CHAR_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 4

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=4 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_WRITE_CHAR_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:45][V][esp32_ble:342]: (BLE) gattc_event [esp_gatt_if: 3] - 10

[18:20:45][V][esp32_ble_client:121]: [0] [B8:F2:55:01:BC:5C] gattc_event_handler: event=10 gattc_if=3

[18:20:45][D][esp32_ble_client:110]: [0] [B8:F2:55:01:BC:5C] ESP_GATTC_NOTIFY_EVT

[18:20:45][W][component:214]: Component esp32_ble took a long time for an operation (0.32 s).

[18:20:45][W][component:215]: Components should block for at most 20-30ms.

[18:20:45][D][climate:396]: 'Madoka Master' - Sending state:

[18:20:45][D][climate:399]: Mode: FAN_ONLY

[18:20:45][D][climate:419]: Current Temperature: nanĀ°C

[18:20:45][D][climate:423]: Target Temperature: Low: nanĀ°C High: nanĀ°C

[18:20:45][D][climate:396]: 'Madoka Master' - Sending state:

[18:20:45][D][climate:399]: Mode: HEAT

[18:20:45][D][climate:419]: Current Temperature: nanĀ°C

[18:20:45][D][climate:423]: Target Temperature: Low: nanĀ°C High: nanĀ°C

[18:20:45][D][climate:396]: 'Madoka Master' - Sending state:

[18:20:45][D][climate:399]: Mode: HEAT

[18:20:45][D][climate:419]: Current Temperature: nanĀ°C

[18:20:45][D][climate:423]: Target Temperature: Low: 20.00Ā°C High: 21.00Ā°C

[18:20:45][D][climate:396]: 'Madoka Master' - Sending state:

[18:20:45][D][climate:399]: Mode: HEAT

[18:20:45][D][climate:404]: Fan Mode: HIGH

[18:20:45][D][climate:419]: Current Temperature: nanĀ°C

[18:20:45][D][climate:423]: Target Temperature: Low: 20.00Ā°C High: 21.00Ā°C

[18:20:45][D][climate:396]: 'Madoka Master' - Sending state:

[18:20:45][D][climate:399]: Mode: HEAT

[18:20:45][D][climate:404]: Fan Mode: HIGH

[18:20:45][D][climate:419]: Current Temperature: 22.00Ā°C

[18:20:45][D][climate:423]: Target Temperature: Low: 20.00Ā°C High: 21.00Ā°C

[18:20:45][D][api:102]: Accepted 192.168.50.10

[18:20:45][W][component:214]: Component api took a long time for an operation (0.06 s).

[18:20:45][W][component:215]: Components should block for at most 20-30ms.

[18:20:45][V][api.connection:1103]: Hello from client: 'Home Assistant 2024.2.2' | 192.168.50.10 | API Version 1.9

[18:20:45][D][api.connection:1121]: Home Assistant 2024.2.2 (192.168.50.10): Connected successfully

[18:20:46][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:46][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:46][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:46][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:46][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:46][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:46][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:46][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:47][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:47][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:47][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:48][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:48][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:48][V][esp32_ble:314]: (BLE) gap_event_handler - 3

[18:20:48][V][esp32_ble:314]: (BLE) gap_event_handler - 3
1 Like

Hi,
did you remove the BT pairing with your mobile phone?
Once the Madoka is not paired with any device, it will be able to be paired again.
Once restarted the esp32 you should see on the madoka screen the pairing request.
Then just push the screen to accept the request.

Ciao!

Yes
As you can see in my log, it is connecting and getting some info ie. 'Target Temperature: Low: 20.00Ā°C High: 21.00Ā°C etcā€¦ but impossible to activate or change anything from home assistant and then it appear as disconnected

I seeā€¦
Apparently I have same configuration as you, I have 6 Madoka controlled by two ESP32-DEVKIT-V1 (3 Madoka each)) and so far is working.
My two centsā€¦ are the Madoka FW updated?
Ignazio

Thanks Ignazio. could you please tell me what are the references of your VRV unit ? I have updated with the latest version fw v1.9. I have also 1 Master Madoka and 3 Slave Madoka.

Hi,
I have 2 external units VRV IV S-Series RXYSQ-TY1
And 6 internal units each of them connected to a Madoka controller
There is no master/slave but all 6 Madoka are controlling a single unit.
Internal units are:
3xFBA-A
3xFDXM-F

I hope it helps you.
Regards.
Ignazio

Hi All, still trying to get this work :slight_smile: my esp32 devboard still crashes after connecting successfully to the madoka :frowning:

Just wondering, I see @Petapton linking to his version of esphome in github, while Iā€™m using the generic esphome with the code snippet for my yaml file. Do I also need to compile the specific esphome from github?

Blockquote
[02:03:23][W][component:232]: Component madoka.climate took a long time for an operation (256 ms).
[02:03:23][W][component:233]: Components should block for at most 30 ms.
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_WRITE_CHAR_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_WRITE_CHAR_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_WRITE_CHAR_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_WRITE_CHAR_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_WRITE_CHAR_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][D][esp32_ble_client:110]: [0] [F4:93:1C:95:B9:FB] ESP_GATTC_NOTIFY_EVT
[02:03:23][W][component:232]: Component esp32_ble took a long time for an operation (100 ms).
[02:03:23][W][component:233]: Components should block for at most 30 ms.
[02:03:23][D][climate:396]: ā€˜Madoka Climateā€™ - Sending state:
[02:03:23][D][climate:399]: Mode: OFF
[02:03:23][D][climate:419]: Current Temperature: nanĀ°C
[02:03:23][D][climate:423]: Target Temperature: Low: nanĀ°C High: nanĀ°C
[02:03:23][D][climate:396]: ā€˜Madoka Climateā€™ - Sending state:
[02:03:23][D][climate:399]: Mode: OFF
[02:03:23][D][climate:419]: Current Temperature: nanĀ°C
[02:03:23][D][climate:423]: Target Temperature: Low: nanĀ°C High: nanĀ°C
[02:03:23]Guru Meditation Error: Core 1 panicā€™ed (LoadProhibited). Exception was unhandled.
[02:03:23]
[02:03:23]Core 1 register dump:
[02:03:23]PC : 0x400dd7c0 PS : 0x00060e30 A0 : 0x800ddc45 A1 : 0x3ffcf8c0
WARNING Decoded 0x400dd7c0: esphome::madoka::Madoka::parse_cb_(std::vector<unsigned char, std::allocator >) at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/components/madoka/madoka.cpp:354
[02:03:23]A2 : 0x3ffbbd50 A3 : 0x3ffcf900 A4 : 0x00000021 A5 : 0x00000044
[02:03:23]A6 : 0x00000013 A7 : 0x00000000 A8 : 0x800dd7be A9 : 0x00000000
[02:03:23]A10 : 0x3ffcf8c0 A11 : 0x3ffe29f7 A12 : 0x3ffe29f7 A13 : 0x00000000
[02:03:23]A14 : 0x0000000b A15 : 0x3ffe7d05 SAR : 0x00000019 EXCCAUSE: 0x0000001c
[02:03:23]EXCVADDR: 0x00000001 LBEG : 0x40083029 LEND : 0x40083031 LCOUNT : 0x00000027
[02:03:23]
[02:03:23]
[02:03:23]Backtrace: 0x400dd7bd:0x3ffcf8c0 0x400ddc42:0x3ffcf900 0x400ddcae:0x3ffcf960 0x400ddd0c:0x3ffcf9a0 0x400d7ad9:0x3ffcf9c0 0x400d7aea:0x3ffcf9e0 0x401b9db5:0x3ffcfa00 0x401b9e69:0x3ffcfa20 0x400e41d8:0x3ffcfa40 0x400e66e2:0x3ffcfa70 0x400d9492:0x3ffcfa90
WARNING Found stack trace! Trying to decode it
WARNING Decoded 0x400dd7bd: esphome::madoka::Madoka::parse_cb_(std::vector<unsigned char, std::allocator >) at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/components/madoka/madoka.cpp:353
WARNING Decoded 0x400ddc42: esphome::madoka::Madoka::process_incoming_chunk_(std::vector<unsigned char, std::allocator >) at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/components/madoka/madoka.cpp:233
WARNING Decoded 0x400ddcae: esphome::madoka::Madoka::loop() at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/components/madoka/madoka.cpp:26
WARNING Decoded 0x400ddd0c: non-virtual thunk to esphome::madoka::Madoka::loop()
WARNING Decoded 0x400d7ad9: esphome::ble_client::BLEClient::loop() at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/components/ble_client/ble_client.cpp:23 (discriminator 2)
WARNING Decoded 0x400d7aea: non-virtual thunk to esphome::ble_client::BLEClient::loop()
WARNING Decoded 0x401b9db5: esphome::Component::call_loop() at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/core/component.cpp:77
WARNING Decoded 0x401b9e69: esphome::Component::call() at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/core/component.cpp:99
WARNING Decoded 0x400e41d8: esphome::Application::loop() at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/core/application.cpp:74 (discriminator 2)
WARNING Decoded 0x400e66e2: loop() at /home/emre/bin/madoka/.esphome/build/madokagw/src/main.cpp:235
WARNING Decoded 0x400d9492: esphome::loop_task(void*) at /home/emre/bin/madoka/.esphome/build/madokagw/src/esphome/components/esp32/core.cpp:69 (discriminator 1)

Good Morning,
iā€™m new in this project and esp32.
I have a esp32 wroom and installes exp32 bluetooth proxy is thiw wrong for this project?
The Madoka panel are in pairing mode, but in the log of the esp32-bt-proxy i see start scanā€¦ but no madoka panel

Actually no. Only the custom component is needed. I use it with official esphome with the configuration provided some post ago.

Yes. Although it uses BLE to communicate, bluetooth-proxy is not enough, since, as far as I know, there is no home assistant integration leveraging bluetooth-proxy to interface with madoka devices.
To use madoka with esphome you could refer to the following snippet. Of course, on top of it, you can also add bluetooth-proxy (as I do with some of my devices, btw), but keep in mind that each madoka counts as one of the three connections available on esp32ā€¦
(also for @fastguy, this is the configuration I was referring to in the last message)

Hi @Petapton , thanks, Iā€™ll continue using the normal esphome release then. But my esp32 is still crashing with the above messages. I switched to single setpoint in the remote, still the same. Any chance to troubleshoot together?
This AC is a split ducted system with only cooling mode.

Well, the time being I cannot afford personal troubleshooting. I suggest you to open an issue on github, so I can keep track of the error and remember of it when I get to work on it next time.
Also, please use the esp-idf framework instead of the arduino one, which is the default. Itā€™s the one I developed the component against: maybe it could help (or maybe not, but still you would get more performance on the BLE side).
Last but not least, any code contribution would be greatly appreciated, in case you solved the issue on your own.

Then I donā€™t understand the process properly.
I installed the esp32 Home Web on the website
Ready-Made Projects ā€” ESPHome 7
and adopted the esp32 in the Home Assistant and installed it with the configuration adjustment.
How can I discvover the Madoka with bluetooth?

Thanks, I will open an issue to keep track. Already using the esp-idf framework. Still crashing after this after reading ā€œnanĀ°Cā€ from thermostat.

[02:03:23][D][climate:419]: Current Temperature: nanĀ°C
[02:03:23][D][climate:423]: Target Temperature: Low: nanĀ°C High: nanĀ°C
[02:03:23][D][climate:396]: ā€˜Madoka Climateā€™ - Sending state:
[02:03:23][D][climate:399]: Mode: OFF
[02:03:23][D][climate:419]: Current Temperature: nanĀ°C
[02:03:23][D][climate:423]: Target Temperature: Low: nanĀ°C High: nanĀ°C
[02:03:23]Guru Meditation Error: Core 1 panicā€™ed (LoadProhibited). Exception was unhandled.

Hello there!
I apologize upfront if I am posting this on a wrong thread.

I have a Daikin VRV system used for heating/cooling in my home with 5 indoor units connected to 1 outdoor.

Theyā€™re all controlled via Madoka (BRC1H) devices, having 1 single master and 4 slaves.

I am looking to find a way to be able to manage the devices from anywhere so Iā€™ve ended up here.

Based on the time Iā€™ve spent researching how I could get this done, I understand that I have an option of buying a Raspberry Pi device, install home assistant and try to add the custom component of this thread to run.

What I would like to ask is whether I can setup HA on a Synology NAS DS224+ (which is already ordered, and expecting it in 2-3 weeks), on a VM and be able to manage Daikin Madoka remotely using the NAS (with a Bluetooth dongle connected), instead of proceeding to buy a Raspberry Pi only for this use case. Iā€™ve read threads on setting up home assistant on NAS VMs.

Has anyone successfully run this component through a VM setup in Synology NAS (or similar)? If this would work it would be ideal for my use case.

Also, if thereā€™s any chance that I should use a different Synology hardware instead of the DS224+ to be able to use home assistant (I donā€™t think it would make any difference) youā€™re welcome to provide me with an advice. The idea of buying a DS224+ was that I would keep it for around 10 years and then buy something with more capabilities as new and better hardware will have been released by then.

I appreciate your time helping me out.

Hi Iā€™m running Home Assistant in a Docker container in a PC. You shall be able to run it on a VM in Synology if it supports Virtualization or Docker, as long as you can assign a bluetooth adapter to this virtual machine.

1 Like

@Petapton Good Morning, can you tell me more about the installation process. My Home Assistant i installed the ESPHome integration, but what must i install an the esp32 node mcu from this side Ready-Made Projects ā€” ESPHome ?
Thanks

Hi @Petapton, where shall I open the issue on Github? I checked your repository but I dont find ā€œissuesā€ tab there to create one.

Shall I create it in the mainline esphome github?

Thanks

Hi there, you install esphome to your system, then create your yaml file with the code snippet in this site and then run esphome run your_yamlfile.yaml.

You dont need anything from that site you linked. This command will compile the binary, flash and run it on your esp32, then you can follow the prompts for pairing. Homeasisstant will discover this and add it automatically.

For example yaml file, you can look at my ā€œclosedā€ bug report :slight_smile: