esphome / issues

Issue Tracker for ESPHome
https://esphome.io/
290 stars 34 forks source link

Nextion display not working unless logger is VERY_VERBOSE on ESP8266 #3225

Open s00500 opened 2 years ago

s00500 commented 2 years ago

The problem

I am using the NodeMCU v2 devboard and trying to set text values on my nextion display. The issue is it does not work at all (no change on display), unless I set the logger to log level Verbose. If I do this it works flawlessly

I have tried pins D6/D7 and also D1/2 with baud_rate: 0 Both configs behave the same...

Touch events from the display work fine though.... but again when I try to update text from the on_press lambda it only works when I have the loglevel on VERY_VERBOSE ...

This is really strange, any ideas why this could be happening ?

Which version of ESPHome has the issue?

Version: 2022.3.2

What type of installation are you using?

pip

Which version of Home Assistant has the issue?

No response

What platform are you using?

ESP8266

Board

NodeMCUv2

Component causing the issue

nextion

Example YAML snippet

esphome:
  name: testdisplay
  platform: ESP8266
  board: nodemcu

wifi:
  ssid: "------"
  password: "------"
  fast_connect: true

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

# Example configuration entry
uart:
  id: uart_2
  rx_pin: D1
  tx_pin: D2
  baud_rate: 9600

display:
  - platform: nextion
    id: nextion1
    uart_id: uart_2
    update_interval: 2s
    lambda: |-
      it.set_component_text("g0", "ESPHOME!");
#      it.set_component_text("qr0", "ESPHOME!");
binary_sensor:
  - platform: nextion
    nextion_id: nextion1
    page_id: 0
    component_id: 2
    id: button1
    on_press:
      then:
        - lambda: |-
            ESP_LOGD("custom", "This is a custom debug message");
            id(nextion1).set_component_text("t0", "ESPHOME!");

Anything in the logs that might be useful for us?

No response

Additional information

No response

probot-esphome[bot] commented 2 years ago

Hey there @senexcrenshaw, mind taking a look at this issue as it has been labeled with an integration (nextion) you are listed as a code owner for? Thanks! (message by CodeOwnersMention)

kbx81 commented 2 years ago

would love to hear if the above-linked PR fixes this issue for you! 😄

s00500 commented 2 years ago

Cool, I can test it on the weekend I guess, thanks

s00500 commented 2 years ago

@kbx81 I can confirm this is working correctly now, thanks for the workaround =D

github-actions[bot] commented 1 year ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

s00500 commented 1 year ago

Has this been merged now ? it is otherwise NOT completed, just needs a merge