Whenever I add one more sensor, even with logger switched off, my esp32 crashes. This is my yaml:
esphome:
name: temperature
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
#logger:
# Enable Home Assistant API
api:
encryption:
key: "6YzTu7YvbPeV/lAk+DrrUFzY6eqez2xrxEKVlvjDbas="
ota:
password: "f63ba4eda519c5f46a751c8b5261c8ed"
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
manual_ip:
static_ip: 192.168.10.14
gateway: 192.168.10.1
subnet: 255.255.255.0
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Temperature Fallback Hotspot"
password: "zNc8vHrQeawq"
captive_portal:
time:
- platform: homeassistant
id: ha_time
font:
- file: "fonts/AcuminPro-Medium.ttf"
id: tm24
size: 24
- file: "fonts/AcuminPro-Medium.ttf"
id: tm35
size: 35
- file: "fonts/AcuminPro-Medium.ttf"
id: tm60
size: 60
glyphs: [' ', '°', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'C', '.']
- file: "fonts/AcuminPro-Medium.ttf"
id: tm90
size: 90
glyphs: [' ', '°', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'C', '.']
- file: "fonts/AcuminPro-Light.ttf"
id: tl24
size: 24
glyphs: [' ', '°', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'C', '.', 'm', 'i', 'n', 'a', 'x', ':', '/', '%', 'r']
- file: "fonts/AcuminPro-Light.ttf"
id: tl30
size: 30
glyphs: [' ', '°', '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'C', '.']
- file: 'fonts/materialdesignicons-webfont.ttf'
id: im90
size: 90
glyphs: &mdi-weather-glyphs
- "\U000F0590" # mdi-weather-cloudy
- "\U000F0F2F" # mdi-weather-cloudy-alert
- "\U000F0E6E" # mdi-weather-cloudy-arrow-right
- "\U000F0591" # mdi-weather-fog
- "\U000F0592" # mdi-weather-hail
- "\U000F0F30" # mdi-weather-hazy
- "\U000F0898" # mdi-weather-hurricane
- "\U000F0593" # mdi-weather-lightning
- "\U000F067E" # mdi-weather-lightning-rainy
- "\U000F0594" # mdi-weather-night
- "\U000F0F31" # mdi-weather-night-partly-cloudy
- "\U000F0595" # mdi-weather-partly-cloudy
- "\U000F0F32" # mdi-weather-partly-lightning
- "\U000F0F33" # mdi-weather-partly-rainy
- "\U000F0F34" # mdi-weather-partly-snowy
- "\U000F0F35" # mdi-weather-partly-snowy-rainy
- "\U000F0596" # mdi-weather-pouring
- "\U000F0597" # mdi-weather-rainy
- "\U000F0598" # mdi-weather-snowy
- "\U000F0F36" # mdi-weather-snowy-heavy
- "\U000F067F" # mdi-weather-snowy-rainy
- "\U000F0599" # mdi-weather-sunny
- "\U000F0F37" # mdi-weather-sunny-alert
- "\U000F14E4" # mdi-weather-sunny-off
- "\U000F059A" # mdi-weather-sunset
- "\U000F059B" # mdi-weather-sunset-down
- "\U000F059C" # mdi-weather-sunset-up
- "\U000F0F38" # mdi-weather-tornado
- "\U000F059D" # mdi-weather-windy
- "\U000F059E" # mdi-weather-windy-variant
- "\U000F10C2" # mdi-thermometer-high
- "\U000F10C3" # mdi-thermometer-low
- "\U000F0E01" # mdi-thermometer-alert
- "\U000F054B" # mdi-umbrella-outline
- "\U000F0F29" # mdi-snowflake-alert
- file: 'fonts/materialdesignicons-webfont.ttf'
id: im20
size: 20
glyphs: *mdi-weather-glyphs
- file: 'fonts/materialdesignicons-webfont.ttf'
id: im40
size: 40
glyphs: *mdi-weather-glyphs
- file: 'fonts/materialdesignicons-webfont.ttf'
id: im24
size: 24
glyphs: *mdi-weather-glyphs
color:
- id: color_white
red: 0%
green: 0%
blue: 0%
white: 0%
text_sensor:
- platform: homeassistant
id: conditiontoday
entity_id: sensor.WeatherPredictions
filters:
- map:
- clear-night -> Clear night
- cloudy -> Many clouds
- exceptional -> Exceptional
- fog -> Fog
- hail -> Hail
- lightning -> Lightning / thunderstorms
- lightning-rainy -> Lightning / thunderstorms and rain
- partlycloudy -> A few clouds
- pouring -> Pouring rain
- rainy -> Rain
- snowy -> Snow
- snowy-rainy -> Snow and Rain
- sunny -> Sunshine
- windy -> Wind
- windy-variant -> Wind and clouds
- platform: homeassistant
id: condtom
entity_id: sensor.WeatherPredictions
attribute: condition1
- platform: homeassistant
id: time1
entity_id: sensor.WeatherpredictionsHourly
attribute: time1
- platform: homeassistant
id: condition1
entity_id: sensor.WeatherpredictionsHourly
attribute: condition1
- platform: homeassistant
id: time2
entity_id: sensor.WeatherpredictionsHourly
attribute: time2
- platform: homeassistant
id: condition2
entity_id: sensor.WeatherpredictionsHourly
attribute: condition2
- platform: homeassistant
id: time3
entity_id: sensor.WeatherpredictionsHourly
attribute: time3
- platform: homeassistant
id: condition3
entity_id: sensor.WeatherpredictionsHourly
attribute: condition3
- platform: homeassistant
id: time4
entity_id: sensor.WeatherpredictionsHourly
attribute: time4
- platform: homeassistant
id: condition4
entity_id: sensor.WeatherpredictionsHourly
attribute: condition4
- platform: homeassistant
id: day1
entity_id: sensor.WeatherPredictions
attribute: day1
filters:
- to_upper
- platform: homeassistant
id: month1
entity_id: sensor.WeatherPredictions
attribute: month1
sensor:
- platform: homeassistant
id: tempnow
entity_id: sensor.outdoor_module_temperature
unit_of_measurement: "°C"
- platform: homeassistant
id: precipitationtoday
entity_id: sensor.WeatherPredictions
attribute: precipitationnow
unit_of_measurement: "%"
- platform: homeassistant
id: mintemptoday
entity_id: sensor.WeatherPredictions
attribute: lowtempnow
unit_of_measurement: "°C"
- platform: homeassistant
id: maxtemptoday
entity_id: sensor.WeatherPredictions
attribute: hightempnow
unit_of_measurement: "°C"
- platform: homeassistant
id: mintemptom
entity_id: sensor.WeatherPredictions
attribute: lowtemp1
- platform: homeassistant
id: temp1
entity_id: sensor.WeatherpredictionsHourly
attribute: temp1
unit_of_measurement: "°C"
- platform: homeassistant
id: temp2
entity_id: sensor.WeatherpredictionsHourly
attribute: temp2
unit_of_measurement: "°C"
- platform: homeassistant
id: temp3
entity_id: sensor.WeatherpredictionsHourly
attribute: temp3
unit_of_measurement: "°C"
- platform: homeassistant
id: temp4
entity_id: sensor.WeatherpredictionsHourly
attribute: temp4
unit_of_measurement: "°C"
- platform: homeassistant
id: rain1
entity_id: sensor.WeatherpredictionsHourly
attribute: rain1
unit_of_measurement: "%"
- platform: homeassistant
id: rain2
entity_id: sensor.WeatherpredictionsHourly
attribute: rain2
unit_of_measurement: "%"
- platform: homeassistant
id: rain3
entity_id: sensor.WeatherpredictionsHourly
attribute: rain3
unit_of_measurement: "%"
- platform: homeassistant
id: rain4
entity_id: sensor.WeatherpredictionsHourly
attribute: rain4
unit_of_measurement: "%"
- platform: homeassistant
id: tomorrowdate1
entity_id: sensor.WeatherPredictions
attribute: date1
- platform: homeassistant
id: tomhightemp
entity_id: sensor.WeatherPredictions
attribute: precipitation1
spi:
clk_pin: 5
mosi_pin: 18
display:
- platform: waveshare_epaper
cs_pin: 22
dc_pin: 23
busy_pin: 32
reset_pin: 21
model: 7.50in-hd-b
update_interval: 30sec
reset_duration: 2ms
rotation: 90°
lambda: |-
// Map weather states to MDI characters.
std::map<std::string, std::string> weather_icon_map
{
{"cloudy", "\U000F0590"},
{"cloudy-alert", "\U000F0F2F"},
{"cloudy-arrow-right", "\U000F0E6E"},
{"fog", "\U000F0591"},
{"hail", "\U000F0592"},
{"hazy", "\U000F0F30"},
{"hurricane", "\U000F0898"},
{"lightning", "\U000F0593"},
{"lightning-rainy", "\U000F067E"},
{"night", "\U000F0594"},
{"clear-night", "\U000F0594"},
{"night-partly-cloudy", "\U000F0F31"},
{"partlycloudy", "\U000F0595"},
{"partly-lightning", "\U000F0F32"},
{"partly-rainy", "\U000F0F33"},
{"partly-snowy", "\U000F0F34"},
{"partly-snowy-rainy", "\U000F0F35"},
{"pouring", "\U000F0596"},
{"rainy", "\U000F0597"},
{"snowy", "\U000F0598"},
{"snowy-heavy", "\U000F0F36"},
{"snowy-rainy", "\U000F067F"},
{"sunny", "\U000F0599"},
{"sunny-alert", "\U000F0F37"},
{"sunny-off", "\U000F14E4"},
{"sunset", "\U000F059A"},
{"sunset-down", "\U000F059B"},
{"sunset-up", "\U000F059C"},
{"tornado", "\U000F0F38"},
{"windy", "\U000F059D"},
{"windy-variant", "\U000F059E"},
{"low-temperature", "\U000F10C3"},
{"high-temperature", "\U000F10C2"},
{"alert-temperature", "\U000F0E01"},
{"umbrella", "\U000F054B"},
{"alert-low-temperature", "\U000F0F29"},
};
it.filled_rectangle(0, 0, 150, 212);
it.print(75, 75, id(tm24), color_white, TextAlign::TOP_CENTER, "TODAY");
float dayofmonth = id(ha_time).now().day_of_month;
it.printf(75, 145, id(tm90), color_white, TextAlign::CENTER, "%.0f", dayofmonth);
it.strftime(75, 180, id(tm24), color_white, TextAlign::TOP_CENTER, "%B", id(ha_time).now());
it.printf(276.75, 145, id(im90), TextAlign::CENTER_RIGHT, "%s", weather_icon_map[id(conditiontoday).raw_state.c_str()].c_str());
it.printf(276.75, 145, id(tm90), TextAlign::CENTER_LEFT, "%.1f°", id(tempnow).state);
it.printf(319, 180, id(tm24), TextAlign::TOP_CENTER, "%s", id(conditiontoday).state.c_str());
it.printf(244.50, 225, id(tm24), TextAlign::TOP_RIGHT, "%.0f%%", id(precipitationtoday).state);
it.printf(244.50, 222, id(im24), TextAlign::TOP_LEFT, "%s", weather_icon_map["umbrella"].c_str());
it.printf(329, 225, id(tl24), TextAlign::TOP_RIGHT, "%.1f°", id(mintemptoday).state);
if(id(mintemptoday).state < -5 ) {
it.printf(329, 222, id(im24), TextAlign::TOP_LEFT, "%s", weather_icon_map["alert-low-temperature"].c_str());
} else {
it.printf(329, 222, id(im24), TextAlign::TOP_LEFT, "%s", weather_icon_map["low-temperature"].c_str());
}
it.printf(413.50, 225, id(tm24), TextAlign::TOP_RIGHT, "%.1f°", id(maxtemptoday).state);
if(id(maxtemptoday).state > 34) {
it.printf(413.50, 222, id(im24), TextAlign::TOP_LEFT, "%s", weather_icon_map["alert-temperature"].c_str());
} else {
it.printf(413.50, 222, id(im24), TextAlign::TOP_LEFT, "%s", weather_icon_map["high-temperature"].c_str());
}
it.printf(61, 290, id(tm24), TextAlign::TOP_CENTER, "%s", id(time1).state.c_str());
it.printf(56, 315, id(im40), TextAlign::TOP_RIGHT, "%s", weather_icon_map[id(condition1).state.c_str()].c_str());
it.printf(56, 335, id(tm24), TextAlign::CENTER_LEFT, "%.1f°", id(temp1).state);
it.printf(46, 355, id(im20), TextAlign::TOP_RIGHT, "%s", weather_icon_map["umbrella"].c_str());
it.printf(46, 368, id(tm24), TextAlign::CENTER_LEFT, "%.0f%%", id(rain1).state);
it.printf(183, 290, id(tm24), TextAlign::TOP_CENTER, "%s", id(time2).state.c_str());
it.printf(178, 315, id(im40), TextAlign::TOP_RIGHT, "%s", weather_icon_map[id(condition2).state.c_str()].c_str());
it.printf(178, 335, id(tm24), TextAlign::CENTER_LEFT, "%.1f°", id(temp2).state);
it.printf(168, 355, id(im20), TextAlign::TOP_RIGHT, "%s", weather_icon_map["umbrella"].c_str());
it.printf(168, 368, id(tm24), TextAlign::CENTER_LEFT, "%.0f%%", id(rain2).state);
it.printf(305, 290, id(tm24), TextAlign::TOP_CENTER, "%s", id(time3).state.c_str());
it.printf(300, 315, id(im40), TextAlign::TOP_RIGHT, "%s", weather_icon_map[id(condition3).state.c_str()].c_str());
it.printf(300, 335, id(tm24), TextAlign::CENTER_LEFT, "%.1f°", id(temp3).state);
it.printf(290, 355, id(im20), TextAlign::TOP_RIGHT, "%s", weather_icon_map["umbrella"].c_str());
it.printf(290, 368, id(tm24), TextAlign::CENTER_LEFT, "%.0f%%", id(rain3).state);
it.printf(427, 290, id(tm24), TextAlign::TOP_CENTER, "%s", id(time4).state.c_str());
it.printf(422, 315, id(im40), TextAlign::TOP_RIGHT, "%s", weather_icon_map[id(condition4).state.c_str()].c_str());
it.printf(422, 335, id(tm24), TextAlign::CENTER_LEFT, "%.1f°", id(temp4).state);
it.printf(412, 355, id(im20), TextAlign::TOP_RIGHT, "%s", weather_icon_map["umbrella"].c_str());
it.printf(412, 368, id(tm24), TextAlign::CENTER_LEFT, "%.0f%%", id(rain4).state);
it.filled_rectangle(0,400,150,150);
it.printf(75, 413, id(tm24), color_white, TextAlign::TOP_CENTER, "%s", id(day1).state.c_str());
it.printf(75, 483, id(tm90), color_white, TextAlign::CENTER, "%.0f", id(tomorrowdate1).state);
it.printf(75, 518, id(tm24), color_white, TextAlign::TOP_CENTER, "%s", id(month1).state.c_str());
it.printf(276.75, 483, id(im90), TextAlign::CENTER_RIGHT, "%s", weather_icon_map[id(condtom).state.c_str()].c_str());
it.printf(276.75, 463, id(tm60), TextAlign::CENTER_LEFT, "%.1f°", id(mintemptom).state);
This is the crahs log:
ets Jul 29 2019 12:21:46
rst:0x1 (POWERON_RESET),boot:0x12 (SPI_FAST_FLASH_BOOT)
configsip: 0, SPIWP:0xee
clk_drv:0x00,q_drv:0x00,d_drv:0x00,cs0_drv:0x00,hd_drv:0x00,wp_drv:0x00
mode:DIO, clock div:2
load:0x3fff0018,len:4
load:0x3fff001c,len:1044
load:0x40078000,len:10124
load:0x40080400,len:5828
entry 0x400806a8
Guru Meditation Error: Core 1 panic'ed (Unhandled debug exception)
Debug exception reason: Stack canary watchpoint triggered (loopTask)
Core 1 register dump:
PC : 0x4008d06d PS : 0x00060836 A0 : 0x8008d13e A1 : 0x3ffb0060
A2 : 0x3ffded80 A3 : 0xbaad5678 A4 : 0x3ffded74 A5 : 0x3ff00000
A6 : 0x3ffb01a0 A7 : 0x3ffb01a4 A8 : 0x3ffdee04 A9 : 0x3ffded78
A10 : 0x00000001 A11 : 0x3ffded74 A12 : 0x0000123c A13 : 0x00000050
A14 : 0x3ffdfff8 A15 : 0x3ffdee08 SAR : 0x0000000c EXCCAUSE: 0x00000001
EXCVADDR: 0x00000000 LBEG : 0x400014fd LEND : 0x4000150d LCOUNT : 0xffffffff
ELF file SHA256: 0000000000000000
Backtrace: 0x4008d06d:0x3ffb0060 0x4008d13b:0x3ffb0090 0x40081bd9:0x3ffb00b0 0x40081c0a:0x3ffb00d0 0x40086915:0x3ffb00f0 0x4000beaf:0x3ffb0110 0x40086953:0x3ffb0130 0x4011281f:0x3ffb0150 0x40112e75:0x3ffb0170 0x40111629:0x3ffb01a0 0x4010c85d:0x3ffb0230 0x4011130e:0x3ffb0540 0x4011134a:0x3ffb05d0 0x400d6bb1:0x3ffb0610 0x400d6c0e:0x3ffb0760 0x400df81d:0x3ffb07a0 0x400e0195:0x3ffb1060 0x400d6caf:0x3ffb1080 0x400d6cd6:0x3ffb10a0 0x400d9b46:0x3ffb10c0 0x40170aed:0x3ffb10e0 0x400decb6:0x3ffb1100 0x400dda9f:0x3ffb1140 0x400e29f1:0x3ffb1190 0x400eedea:0x3ffb1fb0 0x40089ab6:0x3ffb1fd0
Rebooting...
I doesn’t seem to be a brownout. But I am absolutely at a loss what is wrong here.