Hi, I’ve read all the post on this forum relating to this error but none of the suggested solutions work for me. Basically my Wemos D1, using ESP Home on one particular unit is not connecting to WiFi. I have changed the Wemos and the result is the same so I assume it’s something in my configuration but I can’t figure out what. Could someone suggest how to get around this?
The error
And the ESP Configuration:
esphome:
name: kitchen_display
platform: ESP8266
board: d1_mini_pro
wifi:
manual_ip:
static_ip: 192.168.1.20
gateway: 192.168.1.254
subnet: 255.255.255.0
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
api:
ota:
i2c:
sda: D2
scl: D1
scan: true
sensor:
- platform: homeassistant
id: outside_humidity
entity_id: sensor.outside_humidity
internal: true
- platform: homeassistant
id: outside_temp
entity_id: sensor.outside_temperature
internal: true
- platform: homeassistant
id: outside_illuminance
entity_id: sensor.outside_illuminance
internal: true
- platform: homeassistant
id: outside_max_temp
entity_id: sensor.weather_today_max_temp
internal: true
- platform: homeassistant
id: outside_min_temp
entity_id: sensor.weather_today_min_temp
internal: true
- platform: homeassistant
id: kitchen_pressure
entity_id: sensor.kitchen_pressure
internal: true
- platform: homeassistant
id: kitchen_temp
entity_id: sensor.kitchen_temperature
internal: true
- platform: bme280
temperature:
name: "Kitchen Temperature"
oversampling: 16x
filters:
- calibrate_linear:
# # Map 0.0 (from sensor) to 0.0 (true value)
- 27.5 -> 24.5
- 20.0 -> 18.6
- 18.8 -> 17.0
- 19.2 -> 17.6
pressure:
name: "Kitchen Pressure"
address: 0x76
update_interval: 20s
binary_sensor:
- platform: gpio
pin: 14
name: "PIR Sensor"
device_class: motion
on_press:
then:
- binary_sensor.template.publish:
id: backlight
state: ON
- binary_sensor.template.publish:
id: backlight
state: OFF
- platform: template
id: backlight
filters:
- delayed_off: 90s
on_press:
then:
- lambda: |-
id(my_display).backlight();
// it.print(0,19,".");
on_release:
then:
- lambda: |-
id(my_display).no_backlight();
// it.print(0,19," ");
display:
- platform: lcd_pcf8574
id: my_display
dimensions: 20x4
address: 0x27
lambda: |-
// How to use character based display: https://esphome.io/components/display/lcd_display.html
// id(my_display).no_backlight();
// Check above link to see how to manage backlight using motion sensor
it.print(0,0,"Initializing...");
// Print the current time
auto timeVar = id(homeassistant_time).now();
if (timeVar.is_valid()) {
it.strftime(0,1,"%H:%M:%S ",timeVar);
it.printf(13,1,"%4.0f lx", id(outside_illuminance).state);
it.strftime(0,0,"%a %d %b %Y", timeVar);
// Result for 10:06 on august 21st 2018 -> "It is 10:06 on 21.08.2018"
}
// Outside Measurements
// Example of how to display homeassistant data in ESPHome: https://esphome.io/cookbook/display_time_temp_oled.html
// sensor.outside_temperature
if (id(outside_temp).has_state()) {
if (id(outside_temp).state < 10) {
it.printf(0,2,"Out: %02.1f", id(outside_temp).state);
}
else {
it.printf(0,2,"Out: %02.1f", id(outside_temp).state);
}
}
if ((id(outside_min_temp).has_state()) && (id(outside_max_temp).has_state())) {
it.printf(9,2," (%0.0f to %0.0f) ", id(outside_min_temp).state,id(outside_max_temp).state);
}
if (id(kitchen_temp).has_state()) {
it.printf(0,3,"In : %02.1f", id(kitchen_temp).state);
}
if (id(outside_humidity).has_state()) {
it.printf(12,3,"Hum: %02.0f%%", id(outside_humidity).state);
//it.print(19,3,"%");
}
# (Optional) For displaying time:
time:
- platform: homeassistant
id: homeassistant_time