How to access a Sonoff with ESPhome when the SSID changed?

Hi, its a long story but I had to change the SSID name of my WiFi (and I can’t change it now for various reason). In trhe change I forgot to update some Sonoff with ESPHOME on it, and now I can’t connect to it, to upload the new code with the updated WiFi SSID

Which are my options? Phisical access is possible but difficult, what can I do?

If you did not include AP mode in your ESPhome config your only options are:

  1. Beg borrow or steal another wifi router and set it up with the same SSID to connect to them. (or use a windows 10 laptop )
  2. Physical access.

How do you add this?

ap:

under Wifi: or with no indentation?


ap:
wifi:
  networks:
  - ssid: xxx
    password: xxx
  - ssid: xxx
    password: xxx
  manual_ip:
    static_ip: 192.168.1.162
    gateway: 192.168.1.1
    subnet: 255.255.255.0

or


wifi:
  ap:
  networks:
  - ssid: xxx
    password: xxx
  - ssid: xxx
    password: xxx
  manual_ip:
    static_ip: 192.168.1.162
    gateway: 192.168.1.1
    subnet: 255.255.255.0

great my brand new high end laptop is not supporting this


If the generated output shows  **Hosted network supported: Yes** ,

Anything for a pi3 or something? Will try to look

Under wifi:

ok many guides for creating a wireless hotspot on the pi3. But once the pi3 its a hotspot with that SSID, then how to access the Sonoff/ESPhome from there … gosh

You would have to bridge it to your local network where home assitant is running (assuming you are using the ESPHome addon).

or

You could run a command line version of ESPhome on the pi and upload from it. Pre-compiling using the hassio addon and just uploading the .bin file from the pi would be one way. Otherwise copy your config over to the pi using a USB drive and compile it there.

Wrong, just the crap OS you installed on it :wink: All Wifi adapters can be setup in AP mode (so long the underlying OS is able to manage it !).

thats the only viable solution :stuck_out_tongue:

oh gosh, install a new OS for uploading firmware to 4 sonoff …

Time to discover a real os lol :smiley: But no you can just use a live CD/USB key with Linux and voila, nothing to install on your laptop :wink:

Low level wifi drivers is the ONLY place where Linux has superior driver support. Well that and maybe SDR.

Platform Market Share
Windows 88.29%
Mac OS 9.33%
Linux 1.78%
Chrome OS 0.42%

You have to ask yourself why this is still the case after so many “this is the year Linux will take off” years.

1 Like

have you tried it?

Wherever I put it, it gives me error


wifi:
  ap:
  networks:
    ssid: yyyyy

EDIT, found


wifi:
  ap:
    ssid: xxxxx
  networks:
    ssid: yyyyyy

I don’t know the specifics of ESPHOME, but most firmwares seem to accept some form of a long-press of a button on the device, causing it to become an AP so you can connect to it with any WiFi client (phone, laptop, whatever) and using a web browser instruct it about the AP to which it should connect.

Seems pretty clear it’s not Tasmota to me.

Yes.

I know Tasmota allows to press the button 4 times to put the device in AP mode.

Not for ESPHOME, well now adding ap: perhaps is the same

No it happens automatically:

…you can specify both a “normal” station mode and AP mode at the same time. This will cause ESPHome to only enable the access point when no connection to the wifi router can be made.