Code Monkey home page Code Monkey logo

Comments (5)

hencou avatar hencou commented on August 23, 2024

Hi Jan,

What happens when you try this example when you configure it as a new device:
https://github.com/hencou/esphome_components/blob/main/example_milight.yaml

from esphome_components.

JanRunhart1 avatar JanRunhart1 commented on August 23, 2024

Hi @hencou,

I've got exactly the same problem when configuring a new device. I've checked the settings in the Yaml file.

Yaml file:
yaml.txt.txt

Errorlog:
Compiling .pioenvs/esphome-web-56b5a8/src/esphome/components/mi/GroupStateCache.cpp.o src/esphome/components/mi/GroupAlias.cpp: In static member function 'static void GroupAlias::saveAliases(Stream&, const std::map<String, GroupAlias>&)': src/esphome/components/mi/GroupAlias.cpp:56:17: error: call of overloaded 'write(int)' is ambiguous stream.write(0); ^ In file included from /data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26, from src/esphome/components/mi/GroupAlias.h:1, from src/esphome/components/mi/GroupAlias.cpp:1: /data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:61:20: note: candidate: 'virtual size_t Print::write(uint8_t)' virtual size_t write(uint8_t) = 0; ^~~~~ /data/cache/platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:62:12: note: candidate: 'size_t Print::write(const char*)' size_t write(const char *str) ^~~~~ *** [.pioenvs/esphome-web-56b5a8/src/esphome/components/mi/GroupAlias.cpp.o] Error 1 ========================= [FAILED] Took 101.45 seconds =========================

from esphome_components.

tbrasser avatar tbrasser commented on August 23, 2024

Same here:

Compiling .pioenvs/milighthub-one/src/esphome/components/mi/light/mi_light.cpp.o
src/esphome/components/mi/GroupAlias.cpp: In static member function 'static void GroupAlias::saveAliases(Stream&, const std::map<String, GroupAlias>&)':
src/esphome/components/mi/GroupAlias.cpp:56:17: error: call of overloaded 'write(int)' is ambiguous
stream.write(0);
^
In file included from /config/.esphome/platformio/packages/framework-arduinoespressif32/cores/esp32/Stream.h:26,
from src/esphome/components/mi/GroupAlias.h:1,
from src/esphome/components/mi/GroupAlias.cpp:1:
/config/.esphome/platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:61:20: note: candidate: 'virtual size_t Print::write(uint8_t)'
virtual size_t write(uint8_t) = 0;
^~~~~
/config/.esphome/platformio/packages/framework-arduinoespressif32/cores/esp32/Print.h:62:12: note: candidate: 'size_t Print::write(const char*)'
size_t write(const char *str)
^~~~~
Compiling .pioenvs/milighthub-one/src/esphome/components/mi/mi.cpp.o
*** [.pioenvs/milighthub-one/src/esphome/components/mi/GroupAlias.cpp.o] Error 1

from esphome_components.

hencou avatar hencou commented on August 23, 2024

It seems the problem was only when compling with ESP32, I am only using ESP8266. Seems also compiling now for ESP32 as well again (ensure you retrieve the new code from Github instead from cache)

from esphome_components.

JanRunhart1 avatar JanRunhart1 commented on August 23, 2024

@hencou, thanks for the quick response. It's working now! I'm closing the issue.

from esphome_components.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.