Hi, I have 2 Displays: Nexiton NX3224K024_011R with a D1 mini (ESP8266) as Dashboard. They worked well, till version 2022.5.0. Now I have updated one of the displays and it dosn’t work anymore. I’ve been trying for hours to figure out what the problem is, but can’t come up with a solution. Also I have not found a way to downgrade the D1 mini. I suspect that the error is the configuration. Maybe someone knows the problem or even better the solution.
Here is my yaml:
esphome:
name: kitboard
platform: ESP8266
board: d1_mini_lite
wifi:
ssid: "xxx"
password: "xxx"
ap:
ssid: "Kitboard Fallback Hotspot"
password: "xxx"
logger:
baud_rate: 0
api:
password: "xxx"
ota:
password: "xxx"
uart:
rx_pin: D1
tx_pin: D2
baud_rate: 115200
time:
- platform: sntp
id: sntp_time
timezone: Europe/Berlin
sensor:
- platform: homeassistant
id: temperature
entity_id: sensor.hmip_wettersensor_temperature
- platform: homeassistant
id: min_temp
entity_id: sensor.min_temp_next_24h
- platform: homeassistant
id: max_temp
entity_id: sensor.max_temp_next_24h
- platform: homeassistant
id: ton_gray
entity_id: sensor.next_waste_gray
- platform: homeassistant
id: ton_green
entity_id: sensor.next_waste_green
- platform: homeassistant
id: ton_yellow
entity_id: sensor.next_waste_yellow
- platform: homeassistant
id: weekday
entity_id: sensor.weekday
- platform: homeassistant
id: house_power
entity_id: sensor.senec_dash_house_power
- platform: homeassistant
id: solar_power
entity_id: sensor.senec_dash_solar_generated_power
- platform: homeassistant
id: solar_battery
entity_id: sensor.senec_dash_battery_charge_percent
binary_sensor:
- platform: homeassistant
id: someone_home
entity_id: binary_sensor.someone_home
- platform: homeassistant
id: night
entity_id: binary_sensor.night
- platform: homeassistant
id: washer_rup
entity_id: binary_sensor.washer_rup
- platform: homeassistant
id: dryer_rup
entity_id: binary_sensor.dryer_rup
display:
- platform: nextion
id: kitb
update_interval: 5s
lambda: |-
auto time = id(sntp_time).now();
it.set_component_text_printf("hour","%02d",time.hour);
it.set_component_text_printf("minute","%02d",time.minute);
it.set_component_text_printf("datem","%02d",time.month);
it.set_component_text_printf("dated","%02d",time.day_of_month);
it.set_component_text_printf("mintemp","%.1f",id(min_temp).state);
it.set_component_text_printf("maxtemp","%.1f",id(max_temp).state);
it.set_component_text_printf("temp","%.1f",id(temperature).state);
it.set_component_text_printf("pvhouse","%.1f",id(house_power).state);
it.set_component_text_printf("pvsolar","%.1f",id(solar_power).state);
it.set_component_text_printf("pvbattery","%.0f",id(solar_battery).state);
if (id(ton_gray).state == 0) {
it.set_component_text("grau", "Heute");
} else if (id(ton_gray).state == 1) {
it.set_component_text("grau", "Morgen");
} else {
it.set_component_text_printf("grau","%.0f Tage",id(ton_gray).state);
}
if (id(ton_green).state == 0) {
it.set_component_text("papier", "Heute");
} else if (id(ton_green).state == 1) {
it.set_component_text("papier", "Morgen");
} else {
it.set_component_text_printf("papier","%.0f Tage",id(ton_green).state);
}
if (id(ton_yellow).state == 0) {
it.set_component_text("gelb", "Heute");
} else if (id(ton_yellow).state == 1) {
it.set_component_text("gelb", "Morgen");
} else {
it.set_component_text_printf("gelb","%.0f Tage",id(ton_yellow).state);
}
if (id(washer_rup).state) {
it.send_command_printf("tm1.en=1");
} else {
it.send_command_printf("tm1.en=0");
it.send_command_printf("washer.pic=10");
}
if (id(dryer_rup).state) {
it.send_command_printf("tm0.en=1");
} else {
it.send_command_printf("tm0.en=0");
it.send_command_printf("dryer.pic=10");
}
if (id(weekday).state == 1) {
it.set_component_text("dateday", "Montag");
} else if (id(weekday).state == 2) {
it.set_component_text("dateday", "Dienstag");
} else if (id(weekday).state == 3) {
it.set_component_text("dateday", "Mittwoch");
} else if (id(weekday).state == 4) {
it.set_component_text("dateday", "Donnerstag");
} else if (id(weekday).state == 5) {
it.set_component_text("dateday", "Freitag");
} else if (id(weekday).state == 6) {
it.set_component_text("dateday", "Samstag");
} else if (id(weekday).state == 0) {
it.set_component_text("dateday", "Sonntag");
} else {
it.set_component_text("dateday", "Feiertag");
}