Esphomelib - A comprehensive solution for using ESPs with Home Assistant


#62

Hi,

Thanks for a great Add-on, I’m currently running Hass.io on a NUC, the add-on creates the file which can be validated but the NUC can’t find the Wemos D1 mini’s when they are attached, I’ve tried restarting the add-on and a number of different cables and minis both new and previously flashed. any hints on solving this


#63

I had this issue last night with a ESP8266 I was trying to flash. Two cables later, same problem. Third cable worked though! And reliably, without restarting the add on.


#64

Looks great! Can you also control a servo with this? For example to control the blinds.


#65

with the hassio addon I get these errors when I try to compile.

Error loading shared library libstdc++.so.6: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++)
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_newchunk: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Unwind_Backtrace: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: obstack_free: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Unwind_GetIPInfo: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_begin: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Znwm: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_memory_used: symbol not found
*** [.pioenvs/test/lib908/FastLED/FastLED.cpp.o] Error 127
Error loading shared library libstdc++.so.6: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++)
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_newchunk: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Unwind_Backtrace: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: obstack_free: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Unwind_GetIPInfo: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_begin: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Znwm: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_memory_used: symbol not found
*** [.pioenvs/test/lib908/FastLED/bitswap.cpp.o] Error 127
Error loading shared library libstdc++.so.6: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++)
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_newchunk: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Unwind_Backtrace: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: obstack_free: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Unwind_GetIPInfo: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_begin: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Znwm: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_memory_used: symbol not found
*** [.pioenvs/test/lib908/FastLED/colorpalettes.cpp.o] Error 127
Error loading shared library libstdc++.so.6: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++)
Error loading shared library libgcc_s.so.1: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++)
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_newchunk: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Unwind_Backtrace: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: obstack_free: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Unwind_GetIPInfo: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_begin: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _Znwm: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa/bin/xtensa-lx106-elf-g++: _obstack_memory_used: symbol not found
*** [.pioenvs/test/lib908/FastLED/colorutils.cpp.o] Error 127
========================== [ERROR] Took 1.72 seconds ==========================

#66

I used ESPHomeYAML in my latest youtube guide, check out the last ~6 minutes of the video for a full walkthrough of installing it and programming your first sensor: https://www.youtube.com/watch?v=xCQoOZNdaGY


#67

Already watched it! Sadly no help. Great video though!
I’ve been chatting with OttoWinter on discord about it. Hopefully I can figure it out.

If anyone else has any ideas let me know. I’m running in docker with the hassio plugin on an i7 nuc host running Ubuntu 16.04


#68

Hi Mr. Otto,

Great job! It’s fantastic how it works directly on your PI with no extra PC, software, arduino, coding, etc. Thanks so much!.

Unfortunatelly, I’ve been working with my two sonoff basic trying to flash them with no success at the moment. I have HASSBIAN on a PI and I’ve checked/change all components: FTDI-USB chip, usb cable, sonoff basic, connection cables, etc. and no way. I can’t flash the firmware.

Once I’ve solved the last error message like @talondnb (host not found) , now I’ve set a fixed IP address and it goes to the next step, but It has stopped again with a new error message:

INFO [esphomeyaml.main] Successfully compiled program.
INFO [esphomeyaml.main] Uploading binary…
INFO [esphomeyaml.espota] Starting on 0.0.0.0:40600
INFO [esphomeyaml.espota] Upload size: 328512
INFO [esphomeyaml.espota] Sending invitation to 192.168.0.30

ERROR [esphomeyaml.espota] No response from the ESP

Any help will be welcome. Thank in advance!


#69

The static IP worked, thanks.


#70

Have you specified the board type to be esp01_1m?

Maybe share you’re generated config?


#71

Esphomelib v1.7.0 is out!

A big release of esphomelib again. This time with just tons of bug fixes (thanks for reporting them) and equally many new features:

See https://esphomelib.com/esphomeyaml/guides/changelog.html for a full list of new features :smiley_cat:


#72

Hi,

This is my config yaml file:

esphomeyaml:
name: switch_sonoff_sirena1
platform: ESP8266
board: esp01_1m

wifi:
ssid: ‘xxx’
password: ‘xxx’
manual_ip:
static_ip: 192.168.0.30
gateway: 192.168.0.1
subnet: 255.255.255.0

mqtt:
broker: ‘192.168.0.23’
username: ‘xxxxxxx’
password: ‘xxxxxxxx’

logger:

ota:
password: ‘xxxxxxxxx’

Thaks!


#73

Awesome! Is this available now? I can’t see an update notification in the hass.io addon…


#74

Can you ping 192.168.0.30 from your hassbian?


#75

Hello,

Just upgraded to 1.7:

Successfully installed esphomeyaml-1.7.0 esptool-2.4.0

When trying to validate, I get:

INFO [esphomeyaml.config] Reading configuration...
ERROR [esphomeyaml.config] Unable to find component sensor.wifi_signal
ERROR [esphomeyaml.config] Unable to find component status_led
Failed config
  General Error: 
    - Platform not found: {}.{}
    - Component not found: status_led

Not sure what to check.now.

PS: btw, great work you made!

PSS: using the command line version. did the upgrade with “sudo pip2 install -U esphomeyaml”. Then I run the dashboard.


#76

Hello,

No, I can’t now:
[email protected]:~ $ ping 192.168.0.30
PING 192.168.0.30 (192.168.0.30) 56(84) bytes of data.
From 192.168.0.23 icmp_seq=1 Destination Host Unreachable
From 192.168.0.23 icmp_seq=2 Destination Host Unreachable
From 192.168.0.23 icmp_seq=3 Destination Host Unreachable

Diferent cables, sonoff ESP board. The only single point could be the FTDI USB adapter…

However, yesterday I got different results from ping, but never a normal response. It was an intermittent ping response. I think I have to buy another FTDI adapter, do you agree?

Thanks!


#77

I see you have set a static IP. I am not sure why you would do this, but something to be careful of is that there isn’t another host getting 192.168.0.30 from your DHCP server. That might explain intermittent ping results.

Fing, an android app, is a good tool for checking what is on your network.


#78

I’m not familiar with how the sonoff work, are they initially connected with FTDI, plugged into your hassbian then flashed that way?

And yes I agree with @nickrout in that you should also reserve the IP on your DHCP server or select an IP outside of the DHCP range so you don’t have conflicts.


#79

Hi,

I tried a static IP following Ottowinter suggestion and the error message of the Upload has changed.

OttoWinter: " Try using a static IP for the node, that should always work: https://esphomelib.com/esphomeyaml/components/wifi.html"

I can set an IP lease reservation on my router, but to do that I need the MAC address and I don’t know how to get it from the Sonoff board. On the other hand, DHCP range is from 192.168.0.50 to 99, so the selected IP 192.168.0.30 is out of it and there is no conflict with any other host.

It’s a nightmare … :cold_sweat: 1 month trying to flash and no way. I started with Arduino on a Mac, problems with drivers, COM ports, compiling c code, etc… Then ESPhomlib appears and it was the perfect solution, but… Anyway I’ll keep going. Thanks!


#80

yeah there is nothing wrong per se with a static address, as long as you are sure it doesn’t conflict with another device’s address.


#81

Great work. Thanx for all the effort you put into this. I just wished it would work for me. Even after the update to 1.7 i’m still unable to upload to my ESP8266. Same errors as before. Any suggestions on how to fix this? Any help appreciated.