I am having an issue with my Wemos D1 mini’s failing to connect on reboot.
I have removed everything bar the 5V and G, incase it didn’t like the PIN I was using, however the issue still continues.
The only way I can get it to connect is by pushing the RST button.
Any ideas on this one?
Thanks
The error output is
INFO ESPHome 2024.3.1
INFO Reading configuration /config/esphome/playbulb-candle-1.yaml...
INFO Starting log output from 192.168.1.100 using esphome API
WARNING Can't connect to ESPHome API for playbulb-candle-1 @ 192.168.1.100: Error connecting to [AddrInfo(family=<AddressFamily.AF_INET: 2>, type=<SocketKind.SOCK_STREAM: 1>, proto=6, sockaddr=IPv4Sockaddr(address='192.168.1.100', port=6053))]: [Errno 113] Connect call failed ('192.168.1.100', 6053) (SocketAPIError)
INFO Trying to connect to playbulb-candle-1 @ 192.168.1.100 in the background
Full YAML
esphome:
name: playbulb-candle-1
friendly_name: playbulb-candle-1
platform: ESP8266
board: d1_mini
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: ""
ota:
password: ""
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
bssid:
fast_connect: true
# Optional manual IP
manual_ip:
static_ip: 192.168.1.100
gateway: 192.168.1.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Playbulb-Candle-1"
password: ""
captive_portal:
globals:
- id: actual_effect
type: int
restore_value: yes
initial_value: '0'
light:
- platform: neopixelbus
id: light_1
type: GRB
variant: WS2811
pin: GPIO0
num_leds: 60
name: "Entity Status Indicator"
effects:
# Use default parameters:
- random:
# Customize parameters
- random:
name: "My Slow Random Effect"
transition_length: 30s
update_interval: 30s
- random:
name: "My Fast Random Effect"
transition_length: 4s
update_interval: 5s
- random:
name: Random Effect With Custom Values
transition_length: 5s
update_interval: 7s
- pulse:
name: "Fast Pulse"
transition_length: 0.5s
update_interval: 0.5s
min_brightness: 0%
max_brightness: 100%
- pulse:
name: "Slow Pulse"
# transition_length: 1s # defaults to 1s
update_interval: 2s
- strobe:
name: Strobe Effect With Custom Values
colors:
- state: true
brightness: 100%
red: 100%
green: 90%
blue: 0%
duration: 500ms
- state: false
duration: 250ms
- state: true
brightness: 100%
red: 0%
green: 100%
blue: 0%
duration: 500ms
- flicker:
name: Flicker Effect With Custom Values
alpha: 95%
intensity: 1.5%
- addressable_rainbow:
name: Rainbow Effect With Custom Values
speed: 10
width: 50
- addressable_color_wipe:
name: Color Wipe Effect With Custom Values
colors:
- red: 100%
green: 100%
blue: 100%
num_leds: 1
- red: 0%
green: 0%
blue: 0%
num_leds: 1
add_led_interval: 100ms
reverse: false
- addressable_scan:
name: Scan Effect With Custom Values
move_interval: 100ms
scan_width: 1
- addressable_twinkle:
name: Twinkle Effect With Custom Values
twinkle_probability: 5%
progress_interval: 4ms
- addressable_random_twinkle:
name: Random Twinkle Effect With Custom Values
twinkle_probability: 5%
progress_interval: 32ms
- addressable_fireworks:
name: Fireworks Effect With Custom Values
update_interval: 32ms
spark_probability: 10%
use_random_color: false
fade_out_rate: 120
- addressable_lambda:
name: "Wipe In"
update_interval: 50ms
lambda: |-
static int x = 40;
static int y = 0;
if (initial_run) {
x = 40;
y = 0;
it.all() = ESPColor::BLACK;
}
if (x < it.size(), (y < it.size())) {
it[x, y] = current_color;
y += 1;
x += 1;
}
- addressable_lambda:
name: "Expo Light"
update_interval: 16ms
lambda: |-
static int x = -400;
float y = 0.35+0.65*exp(-pow(x, 2)/49000);
int8_t r = ceil(current_color.r * y);
int8_t g = ceil(current_color.g * y);
int8_t b = ceil(current_color.b * y);
it.all() = ESPColor(r,g,b);
x += 1;
if (x == 400)
x = -400;
- addressable_lambda:
name: "Wipe Out"
update_interval: 12ms
lambda: |-
static int x = 0;
if (initial_run) {
x = it.size();
}
if (x > 0) {
x -= 1;
it[x] = ESPColor::BLACK;
}