Well, I did not succeed that well. I have tried two tracks now:
-
From the Arduino IDE
I quickly got a blink demo to work. It means I could upload/flash SW.
Then I tried to setup wifi. Here it starts to fail. It takes many++ attempts to connect to my wifi. By looking at WiFi.status I get a lot of WL_DISCONNECTED and WL_CONNECT_FAILED even if the router is a few meters away.
I have download several other files but I get the same result.
I have tried two different Wemos modules withe same result. -
ESPhome
I connected the Wemos module to my RPI running HASS.
I installed the ESPhome on my HASS.
When I try upload the SW it ends with
Creating BIN file "/data/wemos_1/.pioenvs/wemos_1/firmware.bin" using "/data/wemos_1/.pioenvs/wemos_1/firmware.elf"
========================= [SUCCESS] Took 15.73 seconds =========================
INFO Successfully compiled program.
INFO Resolving IP address of wemos_1.local
ERROR Error resolving IP address of wemos_1.local. Is it connected to WiFi?
ERROR (If this error persists, please set a static IP address: https://esphome.io/components/wifi.html#manual-ips)
ERROR Error resolving IP address: Error resolving address with mDNS: Did not respond. Maybe the device is offline., [Errno -5] No address associated with hostname
My interpretation is that it is the same problem as for Arduino IDE attempt above.
I feel like a looserā¦
Any suggestions?