esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

on the lastest ESPhome version with HA, SonOff Basic R1 lost connectivity #4701

Closed drumstick77 closed 9 months ago

drumstick77 commented 1 year ago

The problem

All sonoff basic R1 lost connectivity from the 2nd last update. flashing via USB does not resolve the issue.

Which version of ESPHome has the issue?

2023.6.5

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2023.7.2

What platform are you using?

ESP8266

Board

Sonoff basic R1

Component causing the issue

No response

Example YAML snippet

esphome:
  name: sonoff-basic1
  friendly_name: SonOff Basic1

esp8266:
  board: esp01_1m

# Enable logging
logger:

# Enable Home Assistant API
api:
  encryption:
    key: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

ota:
  password: "XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX"

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Sonoff-Basic1 Fallback Hotspot"
    password: "nK3q2d6pMHAS"

captive_portal:

binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode:
        input: true
        pullup: true
      inverted: true
    name: "Sonoff Basic Button"
    on_press:
      - switch.toggle: relay

switch:
  - platform: gpio
    name: "Sonoff Basic Relay"
    pin: GPIO12
    id: relay

status_led:
  pin:
    number: GPIO13
    inverted: yes    

web_server:

Anything in the logs that might be useful for us?

No response

Additional information

No response

MaxRei-dev commented 1 year ago

the same on Veriosn 6.7

bigmoby commented 1 year ago

The same on Version: 2023.6.2

drumstick77 commented 1 year ago

So, no solution then? I kinda given up and started to migrate my stuff away from ESPHOME............

bigmoby commented 1 year ago

I've "fixed" downgrading to Esphome Version: 2023.5.5 ...a temporary solution :-(

drumstick77 commented 1 year ago

Sorry to digress slightly, but I got some localbytes plugs that I've converted to ESPHOME and ESPHOME is now complaining that the yml needs to be updated from restore_state to restore-mode, but the yml is from jamesswift github which means that he will need update his codes. I don't know what ESPHOME has been doing, it is so annoying that has caused this issue on my devices!

bigmoby commented 1 year ago

[...] the yml needs to be updated from restore_state to restore-mode, but the yml is from jamesswift github which means that he will need update his codes. [...]

Have you updated Esphome to version 2023.7? Have a look at breaking change list.

https://github.com/esphome/esphome/pull/5106

drumstick77 commented 1 year ago

I am on 2023.7

bigmoby commented 1 year ago

I am on 2023.7

Ok...so have a look at the pr link I posted And please you should edit the issue properly:

Which version of ESPHome has the issue?
2023.6.5
bkaufx commented 1 year ago

Do you see anything in the logs when connected by USB?

bigmoby commented 1 year ago

Sure, this reason is logged:

reason='probe request unsuccessful'
github-actions[bot] commented 10 months ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.