Closed DavidDeSloovere closed 5 years ago
same error for me on ESP32:
homeyaml:
platform: espressif32
board: esp32doit-devkit-v1
esphomelib_version: dev
wifi:
ssid: !secret wifi_sid
password: !secret wifi_password
Compiling .pioenvs/wohnzimmer/liba6f/WiFi/WiFiMulti.cpp.o
src/main.cpp: In function 'void setup()':
src/main.cpp:14:19: error: 'class esphomelib::WiFiComponent' has no member named 'set_sta'
_wificomponent->set_sta(::WiFiAp{
^
src/main.cpp:14:27: error: '::WiFiAp' has not been declared
_wificomponent->set_sta(::WiFiAp{
^
src/main.cpp:31:30: warning: statement has no effect [-Wunused-value]
_application_makedhtsensor.dht;
^
*** [.pioenvs/wohnzimmer/src/main.cpp.o] Error 1
=
I think you need the dev
branch of both esphomelib and esphomeyaml together.
Maybe reinstalling esphomeyaml triggered or updated something, but it solved the issue for me.
Yeah, if you're using esphomelib_version: dev
you should probably install esphomeyaml from git as well, otherwise odds are good that esphomeyaml is going to generate code that doesn't compile against the newer version of esphomelib.
pip install --upgrade git+https://github.com/OttoWinter/esphomeyaml
Great. I'm using the esphomeyaml-edge
hassio addon now instead of esphomeyaml-beta
and it works.
I was mislead by the naming. Neither edge or beta of the addon align with dev from the lib. So I thought beta and dev would be a good match. It's not. Edge and dev are the correct ones.
Just figured out it's in the docs. https://esphomelib.com/esphomeyaml/guides/faq.html?highlight=edge#how-do-i-use-the-latest-bleeding-edge-version
@OttoWinter maybe something to keep tabs on, if more people make the incorrect assumption, changing the description of the 3 different addon versions might help.
Operating environment/Installation (Hass.io/Docker/pip/etc.): hassio
ESP (ESP32/ESP8266/Board/Sonoff): esp8266 wemos d1 mini
Affected component: wifi
Description of problem: Compile with DEV branch (
esphomelib_version: dev
) not working with wifi settings.Problem-relevant YAML-configuration entries:
Traceback (if applicable):
Additional information: Also tried commenting out
manual_ip
block, but that does't seem to matter.