Trying to flash OTA a Sonoff POW, connection refused

Hi, trying to flash a Sonoff POW 1, which has Tasmota 6.3.0. I pressed reset on the tasmota menu, connecting to the sonoff via my smartphone (192.168.4.1) and added only my WiFi data (SSID/password).
IP is static and I can connect to the Sonoff with Tasmota.

On HASSIO now I try to do ota, but receive this error

DATA: [==== ] 39.9% (used 32660 bytes from 81920 bytes) 
PROGRAM: [==== ] 35.6% (used 364580 bytes from 1023984 bytes) ========================= [SUCCESS] Took 4.13 seconds ========================= 
INFO Successfully compiled program. 
INFO Connecting to 192.168.1.181 
ERROR Connecting to 192.168.1.181:8266 failed: [Errno 111] Connection refused

I don’t have your setup - but here is the documented way to convert from Tasmota to ESPHome:

You might have better luck with this process.

Is the Sonoff still on Tasmota then?
Does Tasmota use port 8266?
If my memory is correct, that is the port ESPHome uses.
If not, then I would say that is the problem… HASSIO is trying to use the port that ESPHome uses.
If tasmota uses a different port, then you are trying to update Tasmota with ESPHome’s port…

I hope that makes sense.

Thanks, I will check the guide.

Below my config (its a POW R1 hope is correct)

esphome:
  name: office_ac
  platform: ESP8266
  board: esp01_1m
  board_flash_mode: dout
  

wifi:
  ssid: "xxx"
  password: "xxx"
  manual_ip:
    static_ip: 192.168.1.181
    gateway: 192.168.1.239
    subnet: 255.255.255.0
    
# Enable logging
logger:
  baud_rate: 0

# Enable Home Assistant API
api:

ota:


uart:
  rx_pin: RX
  baud_rate: 4800


output:
  - platform: esp8266_pwm
    id: office_ac_pow_blue_led
    pin:
      number: GPIO15
#      inverted: True

light:
  - platform: monochromatic
    name: "Office AC POW Blue LED"
    output: office_ac_pow_blue_led
    id: led

sensor:
  - platform: wifi_signal
    name: "Office AC POW WiFi Signal"
    update_interval: 60s
  - platform: uptime
    name: "Office AC POW Uptime"
  - platform: hlw8012
    update_interval: 2s  
    sel_pin: 5
    cf_pin: 14
    cf1_pin: 13
    current:
      name: "Office AC Current"
    voltage:
      name: "Office AC Voltage"
    power:
      name: "Office AC Power"
      id: office_ac_power
      on_value_range:
        - above: 4.0
          then:
            - light.turn_on: led
        - below: 3.0
          then:
            - light.turn_off: led 

    

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    name: "Office AC Button"
    on_press:
      - switch.toggle: office_ac_fakebutton
  - platform: template
    name: "Office AC Running"
    filters:
      - delayed_off: 15s
    lambda: |-
      if (isnan(id(office_ac_power).state)) {
        return {};
      } else if (id(office_ac_power).state > 4) {
        // Running
        return true;
      } else {
        // Not running
        return false;
      }

switch:
  - platform: template
    name: "Office AC POW Relay"
    optimistic: true
    id: office_ac_fakebutton
    turn_on_action:
    - switch.turn_on: relay
    - light.turn_on: led
    turn_off_action:
    - switch.turn_off: relay
    - light.turn_off: led
  - platform: gpio
    id: relay
    pin: GPIO12




text_sensor:
  - platform: version
    name: "Office AC POW ESPHome Version"

If you have tasmota still running, you just have to compile the ESPHome firmware and download the binary.

Then just like usual go to your tasmota firmware upgrade webpage and select your ESPHOME binary file you saved somewhere and click start upgrade.

From that point your on ESPHome, then you can use the standard OTA feature remotely.

that’s the solution, thanks

yep, thanks that worked perfectly,