bruxy70 / Home-Assistant-ESPHome-Weather-Station

Nextion display with ESP8266 microcontroller (Wemos D1 mini) showing Home Assistant temperature sensors and weather forecast
MIT License
171 stars 30 forks source link

Waiting for ACK timed out! #1

Closed gijsje closed 5 years ago

gijsje commented 5 years ago

Thank you for the creating this. I have been playing with my nextion for a long time but am not able to get it to work with any programming. The only thing i do get is:

[14:26:02][W][nextion:036]: Waiting for ACK timed out!
[14:26:02][W][nextion:083]: Sending command 'outside.txt="21.6"' failed because no ACK was received

I did change the pins around in the software and physical but nothing works

I am using a 5" display but that should not really care i guess I also did try with another 2.4 display with the same thing

`# This is ESPHome configuration file. This goes to the esphome folder

You need to provide your WiFi ssis/password and passwords for API and OTA (or put them in your esphome/secrets.yaml)

esphome: name: display_weather platform: ESP8266 board: d1_mini_pro

wifi: ssid: SSID password: PASS fast_connect: true

api: password: PASS

ota: password: PASS

logger: baud_rate: 0 # Disable UART logging (pins GPIO1/3 are used for Nextion communication)

uart: rx_pin: D1 tx_pin: D6 baud_rate: 9600

time:

sensor:

binary_sensor:

globals:

display:

bruxy70 commented 5 years ago

Sorry, I missed your message.

I was getting the error as well, but the display worked. I made a change to the code not to wait for the ack.

it.set_wait_for_ack(false);

But that won't fix your issue I think. What do you mean by "nothing works". Is the display on? Try replacing the lambda by something simple first, such as:

lambda: |- it.set_wait_for_ack(false); it.set_component_text("inside","test")

What does the display show?

bruxy70 commented 5 years ago

@gijsje , BTW, you are saying that you tried with 5" display - did the Nextion Editor allow you to upload the screen I designed for 2.4" to the 5" screen?