Open steini72 opened 1 year ago
As I understand correctly Tasmota driver, there has to be USE_BLE_ESP32
and USE_MI_ESP32
defined. Addtionally there has to be USE_MI_HOMEKIT
and one of those CONFIG_IDF_TARGET_ESP32
or CONFIG_IDF_TARGET_ESP32C3
or CONFIG_IDF_TARGET_ESP32S3
defined (source)
First two are enabled in TasmoCompiler by selecting "Bluetooth" feature as described here
The last one USE_MI_HOMEKIT
can be added in "Custom paramters" step by:
#ifdef USE_MI_HOMEKIT
#undef USE_MI_HOMEKIT
#endif
#define USE_MI_HOMEKIT
Those *IDF*
defines should be included when you choose appropriate board (but do not quote me on that). Give it a try. If it doesn't work for you, ask Tasmota Dev team (preferably on Tasmota discord channel) to find out what needs to be #define
to get what you need.
I have
written. thank you
Does it work for you?
Compile yes homekit does not work
Have you read this part of documentation link? Select "Bluetooth" from features list and add those line in "Custom parametrs" field:
#ifdef USE_MI_HOMEKIT
#undef USE_MI_HOMEKIT
#endif
#define USE_MI_HOMEKIT 1
#ifdef USE_MI_EXT_GUI
#undef USE_MI_EXT_GUI
#endif
#define USE_MI_EXT_GUI
Compile yes homekit does not work No MI GUI
Unselect "Bluetooth" from features list and add those line in "Custom parametrs" field:
/root/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /tmp/ccTwC5sJ.ltrans10.ltrans.o:(.literal+0x5ac): undefined reference to mi_homekit_main' /root/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /tmp/ccTwC5sJ.ltrans10.ltrans.o:(.literal+0x5b0): undefined reference to
mi_homekit_stop'
/root/.platformio/packages/toolchain-xtensa-esp32/bin/../lib/gcc/xtensa-esp32-elf/8.4.0/../../../../xtensa-esp32-elf/bin/ld: /tmp/ccTwC5sJ.ltrans10.ltrans.o: in function `_Z13RulesMqttDatav$part$455':
Unselect "Bluetooth" from features list and add those line in "Custom parametrs" field:
The "Bluetooth" feature needs to be SELECTED/CHECKED.
If it does not work for you please contact Tasmota Dev Team to assist you with your problem.
This is a verified working env for MI Homekit
[env:tasmota32-mi32-homebridge]
extends = env:tasmota32_base
board_build.f_cpu = 240000000L
build_flags = ${env:tasmota32_base.build_flags}
-DFIRMWARE_BLUETOOTH
-DUSE_MI_EXT_GUI
-DUSE_MI_HOMEKIT=1 ; 1 to enable; 0 to disable
-DUSE_BERRY_ULP
lib_extra_dirs = lib/libesp32, lib/libesp32_div, lib/lib_basic, lib/lib_i2c, lib/lib_div, lib/lib_ssl
lib_ignore = ESP8266Audio
ESP8266SAM
TTGO TWatch Library
Micro-RTSP
epdiy
Somehow related. Homekit support is now removed in Tasmota. Release v13.2 will be the last which does support Homekit. Homekit is not compatible to IDF5.1 which is the underlying SDK for Arduino 3.0.0. Arduino 3.0.0 is needed for supporting the newer espressif MCUS. Matter is now the way ;-)
Can you please include MI32 Homkit ?