SHELLY 2.5: No flashing via FTDI possible after ESP Home installation

I have a problem with a Shelly 2.5 and ESP Home.

The first flashing with ESP Home was no problem (FTDI adapter on Raspberry Pi with Home Assistant). The further flashing over the air via WLAN also worked. But now I want to flash the Shelly again via FTDI adapter and that does not work. Although I connected the adapter to the GPIO pins of the Shelly 2.5 as before, ESP Home cannot establish a connection. GPIO0 is connected to GND, as before. Do I need to do anything else with devices flashed with ESP Home? Press button or something?

Translated with DeepL Translate: The world's most accurate translator (free version)

Does ota not work?

Try connecting GPIO0 to ground.

With what are you trying to flash the Shelly with the FTDI? ESPHomeFlasher?

Not that I’d assume, but you have disconnected the high voltage before you try to flash, have you? :wink:

On the other hand, like @nickrout said, why are you trying to flash “by hand” and not ota? There are a lot of solutions to change things via ota, even the change of a “hardcoded” IP address. :slight_smile: What is it you want to achieve?

@zoogara I conntected GPIO0 to GND, as I wrote in the first posting.

@paddy0174 I used the HACS Add-On for ESP Home for flashing.
Yes, I disconnected the high voltage :slight_smile:
Maybe my use cases are covered by the ota option. Can you tell me more about changing the ip address? I wasn’t able to do this.

You can do that OTA. You’ll need to use the use_address option.

https://esphome.io/components/wifi.html

Screenshot 2022-06-30 at 23-32-33 WiFi Component

Change the IP in the wifi config to what you want and use the use_address to specify the old IP that will be changed.

Don’t forget to delete that option from your config immediately after uploading successfully.

1 Like

There is no HACS addOn for ESPHome, at least none that I know of. I think you mean the HA-OS addOn, the one you have in your sidebar in HA or that you get via Config > Add-ons > ESPHome? Let’s just assume it is this addOn, should be the case for most installations. :slight_smile:

To change the IP address you need to use the use_address part from the Wifi docus in ESPHome.

It’s actually quite simple. Just set the new IP address in cour config file (the ESPHome yaml) as IP address and write the “old” address with the above mentioned use_address.

Like so:

wifi:
  ssid: !secret esphome_ssid
  password: !secret esphome_wifi_pw
  
  manual_ip:
    static_ip: 192.168.178.231 # this is the new address
    gateway: 192.168.178.1
    subnet: 255.255.255.0
  use_address: 192.168.178.232 # old address aka the actual address before flashing

EDIT:
Tom beat me to it :rofl: :rofl: :rofl:

Nice example though. :slight_smile:

This bears repeating: don’t forget to delete the use_address option after uploading.

Ask me how I know it is bad to forget this… :roll_eyes:

1 Like

Been there, done that :rofl: :rofl: As with most of the advice I can give here, I experienced it myself. :rofl: :rofl: :rofl: And with this case, it took me a while to find the cause… :rofl: :rofl:

I’ve had only problems with esphome’s built-in flasher (sometimes connects ok, sometimes it doesn’t…) So i gave up on it and i only use “tasmotizer” program for uart flashing.