8000 won't connect to wifi after unplugging the power · Issue #6652 · esphome/issues · GitHub
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

won't connect to wifi after unplugging the power #6652

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
ufacek opened this issue Jan 6, 2025 · 1 comment
Open

won't connect to wifi after unplugging the power #6652

ufacek opened this issue Jan 6, 2025 · 1 comment
Labels

Comments

@ufacek
Copy link
ufacek commented Jan 6, 2025

The problem

I have this board Wemos D1 Mini Wifi ESP8266 ESP-12F, I set it up, leave it connected via wifi and everything works, as soon as I disconnect it from the power, it won't connect back to wifi.
I've tried everything, even in the settings, but it still won't connect.

Which version of ESPHome has the issue?

2024.12.2

What type of installation are you using?

Home Assistant Add-on

Which version of Home Assistant has the issue?

2024.12.5

What platform are you using?

ESP8266

Board

Wemos D1 Mini Wifi ESP8266 ESP-12F

Component causing the issue

wifi connection

YAML Config

esphome:
  name: rychlost
  friendly_name: rychlost fan

esp8266:
  board: d1_mini

# Enable logging
logger:
  level: DEBUG
   
# Enable Home Assistant API
api:
  encryption:
    key: "aYIN8Lk7lyNa+XisNKDGnfJ8bvhk+wKLOAFHANF5vMo="

ota:
  - platform: esphome

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
  manual_ip:
    static_ip: 192.168.68.122
    gateway: 192.168.68.1
    subnet: 255.255.255.0
  use_address: 192.168.68.122
  reboot_timeout: 50s
  power_save_mode: none

# Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Test Fallback Hotspot"
    password: "QiHIvvNSDb5G"

captive_portal:

# Example configuration entry
binary_sensor:
  - platform: status
    name: "rychlost fan"

# OneWire bus configuration
one_wire:
  - platform: gpio
    pin: 13  # Replace with your GPIO pin connected to the Dallas sensor

# Dallas Sensor Configuration
sensor:
  - platform: dallas_temp
    address: 0x2ee357851e64ff28  # Adresa senzoru (najdete v logu po prvním spuštění)
    name: "Fan Temperature Sensor"
    accuracy_decimals: 1
    update_interval: 5s

  - platform: wifi_signal
    name: "WiFi Signal Sensor"
    update_interval: 60s

# PWM Fan Control via MOSFET
output:
  - platform: esp8266_pwm
    id: fan_pwm
    pin: 14
    frequency: 30000 Hz  # Adjust frequency for your fan's optimal PWM control

fan:
  - platform: speed
    output: fan_pwm
    name: "Fan Speed Control"
    speed_count: 100  # 0-100% speed control

Anything in the logs that might be useful for us?

Logs test.yaml
INFO ESPHome 2024.12.2
INFO Reading configuration /config/esphome/test.yaml...
INFO Starting log output from 192.168.68.122 using esphome API
WARNING Can't connect to ESPHome API for rychlost @ 192.168.68.122: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.68.122', port=6053))]: [Errno 113] Connect call failed ('192.168.68.122', 6053) (SocketAPIError)
INFO Trying to connect to rychlost @ 192.168.68.122 in the background

Additional information

No response

Copy link
github-actions bot commented May 7, 2025

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.

@github-actions github-actions bot added the stale label May 7, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant
0