Comments (5)
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.
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.
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.
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.
@hencou, thanks for the quick response. It's working now! I'm closing the issue.
from esphome_components.
Related Issues (20)
- Feature Request: Add Trigger for Code Received HOT 3
- Changing color with the colorwheel in HA HOT 6
- Failing to compile, error: 'to_string' is not a member of 'std'
- lights flashing after upload HOT 7
- Use alternate SPI Bus on ESP32 for NRF24 HOT 11
- New install transitioning from Sidoh/miligjthub HOT 1
- Feature Request: Mi command passthrough HOT 6
- Mi - fut089 HOT 5
- Mi - fut089 remote control incorrectly parsed HOT 33
- Group 0 does not remember brightness after on/off/on HOT 7
- Any Ideas how to bridge or Sync ID's HOT 5
- Compilation failure with stripped down yaml HOT 3
- Support for RGBCCT Miboxer S2-W HOT 5
- Expose only selected functions of light to HA HOT 5
- Twitchy turning ON\OFF CCT Lamps HOT 4
- Feature Request: Implement transition argument HOT 8
- Solution For Update Problems Using Old Config HOT 1
- wierd behavior, when receiving remote commands HOT 2
- Not receiving S2 commands when additional light is defined in yaml HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from esphome_components.