joBr99 / nspanel-lovelace-ui

Custom Firmware for NsPanel with the design of HomeAssistant's lovelace UI in mind, works with Tasmota.
GNU General Public License v3.0
870 stars 189 forks source link

No Touch Responsiveness from my NSPanel #201

Closed Astogems closed 2 years ago

Astogems commented 2 years ago

Hello,

I have configured everything properly. The dashboard is showing up on my NSPanel and the states are reflecting. This means that my AppDaemon and my MQTT Set-Up was done correctly.

However, it seems that I am not able to use the touchscreen function at all. I couldn't swipe to another page, nor toggle any lights. When it is in sleep mode, touching does not even turn on the display. I have only downloaded the berry autoexec.be.

Is there something that I might be missing?

joBr99 commented 2 years ago

There was somebody in the HomeAssistant Forum being unable to exit screensaver with a non working touch, which was solved after reseating the panel.

https://community.home-assistant.io/t/sonoff-nspanel-smart-scene-wall-switch-by-itead-coming-soon-on-kickstarter/332962/723?u=jobraun

Also if you are using the US portrait version, please udpate to the current development firmware, to fix an bug on the entities page preventing to use the buttons.

Astogems commented 2 years ago

Thank you for the speedy reply, I will give it a try. I am currently trying to use my own webserver to upload nspanel.tft

Astogems commented 2 years ago

Update: I have just tried both.

Checked my pins, they were all sitting right. I am using the EU Version.

joBr99 commented 2 years ago

then please check the appdaemon log for errors

Astogems commented 2 years ago

image

Im not seeing anything weird except for that my Tasmota Driver Version is None

Astogems commented 2 years ago

image There are also instances where my Tasmota Driver is 4

joBr99 commented 2 years ago

Both fine, I would use the log in the Add-Ons instead and also what do you see in your log after touching the screen?

For example touching the screensaver should create messages containing screensaver,bExit

image

Astogems commented 2 years ago

I have checked the logs, I am not getting any feedback on the logs whatsoever when I tap the screen on the NSPanel.

One mistake that I made while booting up with FTDI was I accidentally flipped 5v and neutral pins (the 8pins at the back). Flipped it back and tasmota was launched. Could that have damaged the board in anyway?

I am tapping repeatedly and no feedback on the logs and on Tasmota Console

joBr99 commented 2 years ago

do you see CustomRecv lines like this in your tasmota log after touching the screen?

22:03:17.195 MQT: tele/tasmota_nspkueche/RESULT = {"CustomRecv":"event,buttonPress2,screensaver,bExit,2"}

Astogems commented 2 years ago

I have never ever seen anything like that on my Tasmota Log from the start.

Astogems commented 2 years ago

image I do get feedback by clicking one of the 2 buttons below the screen. I never ever gotten feedbacks from tapping the screen.

Astogems commented 2 years ago

image Here is a screenshot of my apps.yaml

joBr99 commented 2 years ago

The two buttons are directly connected to the esp32. The display is connected via serial to the esp32 over that flex cable, sounds like you are not receiving any serial data from the panel to the esp32. Maybe try to reseat the cable within the panel.

joBr99 commented 2 years ago

I also have a small test firmware that I've used during development of the flashing command in tasmota, it contains some buttons to change the display color and to send serial messages. So if you want to test the touch itself you could do this with it. But if there is only one-way communication between esp and nextion panel, flashing also shouldn't work.

FlashNextion http://nspanel.pky.eu/test.tft

Astogems commented 2 years ago

I have tried reseating the cables multiple times. To no avail...

Astogems commented 2 years ago

Testing with the test.tft does not work as well. Could I possibly be looking at a defective unit somehow?

Astogems commented 2 years ago

Perhaps one consideration if it matters is that I am testing this using a power cord directly to my Socket. Live + Neutral at the back

joBr99 commented 2 years ago

were you able to flash the test.tft? this would indicate that your serial is working in both directions

Astogems commented 2 years ago

WIN_20220522_05_33_34_Pro

Yes I was able to flash the test.tft

Astogems commented 2 years ago

But none of the buttons work

joBr99 commented 2 years ago

also not the red/green/blue ones?

they are only changing the background color, there is no serial communication involved, if they are not working most likely the touch on your panel is defective

Astogems commented 2 years ago

I see... ah shutss

joBr99 commented 2 years ago

just flash the stock firmware back to the display and shoot the sonoff support an mail with an video

Astogems commented 2 years ago

Im trying to reseat the thin film for the LCD Panel to the ESP Board. If all fails, i will reorder a new set. I currently do not have the stock firmware as I did not make a backup...

Astogems commented 2 years ago

You have been so helpful thus far, I am truly thankful.

joBr99 commented 2 years ago

you cannot simply make a backup of the tft file, get it from here

you will need to put it on a webserver which supports http (https doesn't work)

https://github.com/masto/NSPanel-Demo-Files/issues/4

Astogems commented 2 years ago

Awesome, I will use my homeassistant to do that. Thank you thus far!

joBr99 commented 2 years ago

yes, homeassistant www folder is fine

Astogems commented 2 years ago

image

Just to check, these reds are okay right?

joBr99 commented 2 years ago

mine looks like this

image

Astogems commented 2 years ago

Ah yes. Same as mine, I guess I am an unlucky batch that got a defective unit. Currently flashing back the stock firmware. Hope to get a replacement set. Once everything is working well. I will definitely buy you a pizza!