Tasmota 8.1.0 -- Emulation Hue und Emulation Wemo beim erstellen der Firmware

  • Hallo,

    ich habe ein Problem beim erstellen der Firmware mit beiden Emulationen Hue und Wemo.

    • mit Wemo alleine funktioniert immer Problemlos
    • wenn ich HUE dazu haben möchte bekomme ich immer Fehlermeldungen beim kompilieren.

    Meine Software ist Visual Studio Code mit Platformio.

    Fehler ist immer:

    So sieht meine user_config_override aus:

    wenn es nicht funktioniert


    so wenn es funktioniert

    Zitat

    //#undef USE_EMULATION

    //#undef USE_EMULATION_WEMO

    #undef USE_EMULATION_HUE

  • meierchen006 8. Januar 2020 um 21:35

    Hat den Titel des Themas von „Tasmota 8.1.0 -- Emulation Hue und Emulation Wemo beim erstellen der Firmware einstellen“ zu „Tasmota 8.1.0 -- Emulation Hue und Emulation Wemo beim erstellen der Firmware“ geändert.
  • Hallo,

    #2: natürlich möchte ich nicht beide Emulationen gleichzeitig nutzen.

    Ich scheitere ja schon beim kompilieren, um überhaupt eine Auswahl zu haben

    Leo888

    Ok, ich mache mal in der override alles mit Emulation weg evtl geht es dann?

  • Hallo Leo888

    gleiches Ergebnis auch diese Fehlermeldung


    1. Linking .pioenvs\tasmota-DE\firmware.elf
    2. c:/users/andreas/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .pioenvs\tasmota-DE\src\tasmota.ino.cpp.o:(.text._Z7PollUdpv+0x1c): undefined reference to `HueRespondToMSearch()'
    3. c:/users/andreas/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .pioenvs\tasmota-DE\src\tasmota.ino.cpp.o:(.text._Z14HandleNotFoundv+0x14): undefined reference to `HandleHueApi(String*)'
    4. c:/users/andreas/.platformio/packages/toolchain-xtensa/bin/../lib/gcc/xtensa-lx106-elf/4.8.2/../../../../xtensa-lx106-elf/bin/ld.exe: .pioenvs\tasmota-DE\src\tasmota.ino.cpp.o: in function `HandleNotFound()':
    5. tasmota.ino.cpp:(.text._Z14HandleNotFoundv+0xcf): undefined reference to `HandleHueApi(String*)'
    6. collect2.exe: error: ld returned 1 exit status
    7. *** [.pioenvs\tasmota-DE\firmware.elf] Error 1
    8. ===================================================== [FAILED] Took 42.19 seconds =====================================================
    9. Environment Status Duration
    10. ---------------- -------- ------------
    11. tasmota-DE FAILED 00:00:42.191
    12. ================================================ 1 failed, 0 succeeded in 00:00:42.191 ================================================
    13. The terminal process terminated with exit code: 1
    14. Terminal will be reused by tasks, press any key to close it.

    fast Kompletter Code beim erstellen

    so sieht dann die Override aus:

  • Du kannst nur das eine oder andere machen.
    Ich bin miur da ziemlich sicher.
    Ich habe aktuell gewechselt.
    WEMO hatte ich nun 1 1/2 Jahre laufen. Zunehmend gab es Probleme, das Sie nicht immer sofort geschaltet haben.
    Aktuell alle umgestellt auf Hue, MEGA. Den Satz noch nicht ganz gesprochen bei ALEXA... KLACK !

  • beide Emus laufen gleich gut. Unterschied steht ja schon dabei, Hue Mehrfachgeräte, WEMO Einzelgerät. Somit ist es sinnfrei ne Steckdose mit Hue zu schalten.

    Man kann beide Emus gleichzeitig kompilieren, aber nur einen davon laufen lassen. Wo ich den Fehler vermute, hatte ich oben schon geschrieben.

  • Hallo,

    ich konnte mein Problem finden:

    //#undef USE_LIGHT ist notwendig damit es funktioniert.

    So muss es aussehen (user_config_override(--Ausschnitt)) damit beide Emulationen auswählbar sind:

    Allerdings ist die Firmware jetzt 538KB groß so dass man bei enem Update über die minimal.bin gehen muss, :cursing:
    was bei nur einer Emulation nicht notwendig ist.

    Einmal editiert, zuletzt von meierchen006 (10. Januar 2020 um 14:00)

  • Code
    Enable Hue Bridge emulation for Alexa (+14k code, +2k mem common)
    Enable Belkin WeMo emulation for Alexa (+6k code, +2k mem common)

    Ja das sind schon ziemlich Brocken.

    Ich schmeisse immer alle Sensoren/Geräte die ich nicht besitze, aus der my_user_config.h und bin bei knapp 460KB.

    Viel Speicher brauchen auch die Astro-Funktionen (16k). Falls du die nicht nutzt, weg damit!

  • genau das hatte ich schon geschrieben und wenn Du schon selber kompilierst, dann schmeiß doch die Sensoren, Domoticz und allen sonstigen Ballast den Du nicht verwendest.

    Das größte bin hat bei mir gerade mal 483k.

  • Hallo,

    ich habe doch schon vieles rausgeschmissen


    kompiliere doch nur diese defines:

  • Ja aber Homeassi und domoticz was wirklich Platz frisst hast mit drin. Es reicht eben nicht viel raus zu schmeißen, sondern alles was man nicht braucht.

    So sieht das bei mir aus:

    #undef USE_DOMOTICZ
    //#define USE_DOMOTICZ // Enable Domoticz (+6k code, +0.3k mem)
    #undef USE_HOME_ASSISTANT
    //#define USE_HOME_ASSISTANT // Enable Home Assistant Discovery Support (+7k code)
    //------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    //Emulatoren
    #undef USE_EMULATION_HUE 
    //#define USE_EMULATION_HUE // Enable Hue Bridge emulation for Alexa (+14k code, +2k mem common)

    #undef USE_EMULATION_WEMO
    //#define USE_EMULATION_WEMO // Enable Belkin WeMo emulation for Alexa (+6k code, +2k mem common)
    //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    #undef USE_JAVASCRIPT_ES6
    #define USE_JAVASCRIPT_ES6
    #undef USE_WEBSEND_RESPONSEdefine
    #define USE_WEBSEND_RESPONSEdefine
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    //optional
    #undef ROTARY_V1
    //#define ROTARY_V1 // Add support for MI Desk Lamp
    #undef USE_SONOFF_RF
    //#define USE_SONOFF_RF // Add support for Sonoff Rf Bridge (+3k2 code)
    #undef USE_RF_FLASH
    //#define USE_RF_FLASH // Add support for flashing the EFM8BB1 chip on the Sonoff RF Bridge. C2CK must be connected to GPIO4, C2D to GPIO5 on the PCB (+2k7 code)
    #undef USE_SONOFF_SC
    //#define USE_SONOFF_SC // Add support for Sonoff Sc (+1k1 code)
    #undef USE_TUYA_MCU
    //#define USE_TUYA_MCU // Add support for Tuya
    #undef USE_ARMTRONIX_DIMMERS
    //#define USE_ARMTRONIX_DIMMERS // Add support for Armtronix Dimmers (+1k4 code)
    #undef USE_PS_16_DZ
    //#define USE_PS_16_DZ // Add support for PS-16-DZ Dimmer (+2k code)
    #undef USE_SONOFF_IFAN 
    //#define USE_SONOFF_IFAN // Add support for Sonoff iFan02 and iFan03 (+2k code)
    #undef USE_BUZZER 
    //#define USE_BUZZER // Add support for a buzzer (+0k6 code)
    #undef USE_ARILUX_RF
    //#define USE_ARILUX_RF // Add support for Arilux RF remote controller (+0k8 code, 252 iram (non 2.3.0))
    #undef USE_SHUTTER 
    //#define USE_SHUTTER // Add Shutter support for up to 4 shutter with different motortypes (+6k code)
    #undef USE_EXS_DIMMER
    //#define USE_EXS_DIMMER // Add support for ES-Store WiFi Dimmer (+1k5 code)
    #undef EXS_MCU_CMNDS
    //#define EXS_MCU_CMNDS // Add command to send MCU commands (+0k8 code)
    //-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    //Optional light modules
    #undef USE_WS2812
    //#define USE_WS2812 // WS2812 Led string using library NeoPixelBus (+5k code, +1k mem, 232 iram) - Disable by //
    #undef USE_WS2812_DMA
    //#define USE_WS2812_DMA // DMA supports only GPIO03 (= Serial RXD) (+1k mem). When USE_WS2812_DMA is enabled expect Exceptions on Pow
    #undef USE_MY92X1
    //#define USE_MY92X1 // Add support for MY92X1 RGBCW led controller as used in Sonoff B1, Ailight and Lohas
    #undef USE_SM16716
    //#define USE_SM16716 // Add support for SM16716 RGB LED controller (+0k7 code)
    #undef USE_SM2135
    //#define USE_SM2135 // Add support for SM2135 RGBCW led control as used in Action LSC (+0k6 code)
    #undef USE_SONOFF_L1 
    //#define USE_SONOFF_L1 // Add support for Sonoff L1 led control
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    #undef USE_COUNTER
    //#define USE_COUNTER // Enable inputs as counter (+0k8 code)

    #undef USE_ADC_VCC
    #define USE_ADC_VCC // Display Vcc in Power status. Disable for use as Analog input on selected devices
    //--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    //Sensoren
    #undef USE_DS18x20
    //#define USE_DS18x20 // Add support for DS18x20 sensors with id sort, single scan and read retry (+2k6 code)

    #undef USE_SHT
    //#define USE_SHT // [I2cDriver8] Enable SHT1X sensor (+1k4 code)
    #undef USE_HTU 
    //#define USE_HTU // [I2cDriver9] Enable HTU21/SI7013/SI7020/SI7021 sensor (I2C address 0x40) (+1k5 code)
    #undef USE_BMP 
    //#define USE_BMP // [I2cDriver10] Enable BMP085/BMP180/BMP280/BME280 sensors (I2C addresses 0x76 and 0x77) (+4k4 code)
    #undef USE_BH1750
    //#define USE_BH1750 // [I2cDriver11] Enable BH1750 sensor (I2C address 0x23 or 0x5C) (+0k5 code)

    #undef USE_SHT3X
    //#define USE_SHT3X // [I2cDriver15] Enable SHT3x (I2C address 0x44 or 0x45) or SHTC3 (I2C address 0x70) sensor (+0k7 code)

    #undef USE_LM75AD
    //#define USE_LM75AD // [I2cDriver20] Enable LM75AD sensor (I2C addresses 0x48 - 0x4F) (+0k5 code)

    #undef USE_MHZ19
    //#define USE_MHZ19 // Add support for MH-Z19 CO2 sensor (+2k code)
    #undef USE_SENSEAIR
    //#define USE_SENSEAIR // Add support for SenseAir K30, K70 and S8 CO2 sensor (+2k3 code)
    #undef USE_PMS5003
    //#define USE_PMS5003 // Add support for PMS5003 and PMS7003 particle concentration sensor (+1k3 code)
    #undef USE_NOVA_SDS
    //#define USE_NOVA_SDS // Add support for SDS011 and SDS021 particle concentration sensor (+1k5 code)
    #undef USE_SERIAL_BRIDGE
    //#define USE_SERIAL_BRIDGE // Add support for software Serial Bridge (+0k8 code)

    #undef USE_IR_REMOTE
    //#define USE_IR_REMOTE // Send IR remote commands using library IRremoteESP8266 and ArduinoJson (+4k3 code, 0k3 mem, 48 iram)
    #undef USE_IR_RECEIVE
    //#define USE_IR_RECEIVE // Support for IR receiver (+7k2 code, 264 iram)

    #undef USE_SR04  
    //#define USE_SR04 // Add support for HC-SR04 ultrasonic devices (+1k code)

    #undef USE_HX711
    //#define USE_HX711 // Add support for HX711 load cell (+1k5 code)
    #undef USE_DHT
    //#define USE_DHT // Add support for DHT11, AM2301 (DHT21, DHT22, AM2302, AM2321) and SI7021 Temperature and Humidity sensor (1k6 code)
    #undef USE_DHT12
    // #define USE_DHT12 // [I2cDriver41] Enable DHT12
    //----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

    //Power Anzeige
    #undef USE_ENERGY_MARGIN_DETECTION
    //#define USE_ENERGY_MARGIN_DETECTION // Add support for Energy Margin detection (+1k6 code)
    #undef USE_ENERGY_POWER_LIMIT
    //#define USE_ENERGY_POWER_LIMIT // Add additional support for Energy Power Limit detection (+1k2 code)
    #undef USE_PZEM004T
    //#define USE_PZEM004T // Add support for PZEM004T Energy monitor (+2k code)
    #undef USE_PZEM_AC
    //#define USE_PZEM_AC // Add support for PZEM014,016 Energy monitor (+1k1 code)
    #undef USE_PZEM_DC
    //#define USE_PZEM_DC // Add support for PZEM003,017 Energy monitor (+1k1 code)
    #undef USE_MCP39F501
    //#define USE_MCP39F501 // Add support for MCP39F501 Energy monitor as used in Shelly 2 (+3k1 code)
    #undef USE_ADE7953
    //#define USE_ADE7953 // [I2cDriver7] Enable ADE7953 Energy monitor as used on Shelly 2.5 (I2C address 0x38) (+1k5)