Ok, I’ve found a method to cleanup old, inactive topics. Apologies if this is rudimentary.
From the Developer services in HA, call the mqtt.publish service and send a zero byte payload to the topic you want to clear. You can find a current list of topics from either espyamlhome logging or SSH into HA and type:
@OttoWinter: thanks for your answer. You were right the problem was in the initial flashing stage, something wrong with the serial-USB device. Finally it got it at /dev/ttyUSB1 and it appears on the dashboard.
Then the compilation and the first firmware upload by USB apparentely works, great!!! but I can’t see the log. I’m using the dashboard and once the upload process finishes, it seems to call the Log option but something is wrong there because there is no answer. This is the upload log:
INFO [esphomeyaml.__main__] Successfully compiled program.
INFO [esphomeyaml.__main__] Uploading binary...
INFO [esphomeyaml.__main__] Running: esptool.py --before default_reset --after hard_reset --chip esp8266 --port /dev/ttyUSB0 write_flash 0x0 sonoff_sirena1/sonoff_sirena1/.pioenvs/sonoff_sirena1/firmware.bin
esptool.py v2.3.1
Connecting....
Chip is ESP8266EX
Features: WiFi
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 1MB
Compressed 330448 bytes to 230478...
Writing at 0x0001c000... (53 %)
Writing at 0x00020000... (60 %)
Wrote 330448 bytes (230478 compressed) at 0x00000000 in 21.1 seconds (effective 125.4 kbit/s)...
Hash of data verified.
Leaving...
Hard resetting via RTS pin...
INFO [esphomeyaml.__main__] Successfully uploaded program.
INFO [esphomeyaml.__main__] Starting log output from /dev/ttyUSB0 with baud rate 115200
If I use the Show Logs option of the dashboard I get the same results:
INFO [esphomeyaml.config] Reading configuration...
INFO [esphomeyaml.__main__] Starting log output from /dev/ttyUSB0 with baud rate 115200
Then, if I plug the sonoff switch to 220AC, I can’t see anything. No ping, no new MQTT discovered device, anything.
Am I missing something sure, but i can’t see it!. Thanks in advance for your help.
Hmm weird. I think there could be two reasons why it’s not showing any logs:
It’s still in flash mode. When you uploaded the firmware I suppose you had to first put it into flash mode by pressing some button while plugging it into USB. Try disconnecting+reconnecting the USB cable and then pressing the logs button.
All the initial log messages are already over when you press the show logs button. I guess the only option to work around this at this time is using a serial monitor on your computer (not hassIO). For example, you could connect the Sonoff device to your computer and use the serial monitor on the Arduino IDE to view the serial logs (set baud rate to 115200).
I’m away from my development machine for a few days so I can’t really help much more at this point (this is also why I’m not active on the GitHub issue tracker atm, sorry everybody!)
Hi, It’s working!!!
First option: it was in flash mode. I tried to disconnecting+reconnecting the USB cable, then go to the log button and the issue was there: some problem with the WiFi network. Then I change the WiFi and everything started working !!!
This is awesome , some minutes later I had two switches working in my Home assistant. Thanks a lot!
Is anyone else having problems with Sonoff basic? Flashing and initial use work fine, but if you take the power for many minutes the Sonoff will not start/connect to the network anymore.
From the dhcp log on my router, I can`t even see that the device is getting any IP, (Have static IP on IoT devices) can I see the debug from Arduino og platform.io?
espurna is working fine on same device and I have multiple Wemos up and running EspHomelib
[update] It seems to have cleared up, but I’m not sure why. Now to figure out why all, but the brightness are being picked up by mqtt discovery.
[update2] All good. Looks like it was discovered, but under a different name. Cleared it from the entity_registry and showed up fine after restart.
First try with one of these so I hope that it’s something simple.
I’m trying to setup the bruh multisensor, but I’m seeing this error popup in the logs.
[12:50:12][E][sensor.dht:151]: Checksum invalid: 1!=176
[12:50:12][W][sensor.dht:059]: Invalid readings! Please check your wiring (pull-up resistor, pin_ number) and consider manually specifying the DHT model using the model option. Error code: 0
I manually set the model to ASM2302 just in case. I changed out the wires and I confirmed that they’re in the right pins.
Static IP didn’t work. I’m getting this with hassio addon:
Error loading shared library libstdc++.so.6: No such file or directory (needed by /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++)
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _obstack_memory_used: symbol not found
Error relocating /root/.platformio/packages/toolchain-xtensa32/bin/xtensa-esp32-elf-g++: _Znwj: symbol not found...
Here is my config:
esphomeyaml:
name: esp32_1
platform: ESP32
board: esp32dev