It sort of worked. The display did invert. But, now, my HASP is bricked.
On the display, I see the WiFi is connected, but no mention of MQTT.
Cycling the power a few times didn’t change the result.
I removed the HASP from the wall and opened it to insert the MicroSD and flashed https://raw.githubusercontent.com/HASwitchPlate/HASPone/main/Nextion_HMI/HASwitchPlate.tft
to the Nextion.
Now, HASP boots OK.
I wonder if the OTA update was the problem? I’ll try a microSD card with the inverted.tft file.
UPDATE
Hard-flashed the Nextion with the inverted.tft file → No difference. It never got past the “WiFi Connected” screen.
I hard-flashed the HASwitchPlate.tft again, and after a couple of restarts, it now boots reliably.
You’ll need to update your blueprints! That error was fixed a few versions ago, so replace the contents of <home assistant>/blueprints/automation/HASwitchPlate with the files found here.
This process is annoyingly manual - if you’d like to help out, maybe upvote the feature request here which aims to make the blueprint upgrade process a little less of a pain.
Help!
I had HASP running on a larger screen with jumpers to a wemos. Worked great. It was named “desktop”.
Since then I built a desktop version using the correct display. Works great.
I wanted to change the first desktop unit name from “desktop” to “lab” for experimenting.
This is where things got bad. When I plugged in the original Wemos, Home Assistant “discovered” a new device named “desktop”. (Yes, I should have unplugged the desktop unit before plugging in the lab unit).
When HASPone comes online, it send out a device discovery message with its device name and the “haspClientId”, which is a combination of your device name and the MAC address. If you rename the device, it should create a new device (but I don’t have any way to remove the old device). If you bring another device online with the same name, that will also create a new device because the other unit has a different MAC address which allows Home Assistant to recognize that this is, in fact, a different unit. Finally, Home Assistant will also create a new device with a new name, but because the name already exists, it will get a _2 appended.
Hoping someone can help me here. Desperate to try this project with my Nextion but i have fallen at the first step.
I have a NX3224T024_011, which I have flashed the TFT files to via SD card. I have flashed the HASPOne firmware to several different D1 mini’s (at least 4 different boards), all the D1 minis are known to work as I have previously used them for ESPHome projects successfully. I then followed the wiring and set up instructions on this page and yet I never get past the ‘HASP Initializing’ screen.
Assuming that flash went well, every time I’ve had that issue it’s been a data issue. Do you have the RX and TX swapped? Thats what it was the last time for me.
esptool.py v2.6
Serial port /dev/cu.usbserial-14320
Connecting....
Detecting chip type... ESP8266
Chip is ESP8266EX
Features: WiFi
MAC: 68:c6:3a:f4:b6:a8
Uploading stub...
Running stub...
Stub running...
Configuring flash size...
Auto-detected Flash size: 4MB
Erasing flash (this may take a while)...
Chip erase completed successfully in 8.9s
Flash params set to 0x0340
Compressed 477536 bytes to 327936...
Wrote 477536 bytes (327936 compressed) at 0x00000000 in 31.9 seconds (effective 119.9 kbit/s)...
Hash of data verified.
Leaving...
Staying in bootloader.
Firmware successfully flashed.
I have it wired as per the instructions on the link I posted:
WeMos Pin
Nextion Cable
5V
Red
GND
Black
D7
Blue
D4
Yellow
I have tried swapping the pins around too, no success there either.
Thanks for your response @luma. I’m not sure how I can grab debug output; I can’t connect it to WiFi to give it an IP as it doesn’t get to the configure screen, so Telnet isn’t an option. If I’m reading your docs right, USB debug requires going into the web admin page on the device, which again, I can’t get to as it doesn’t get that far. Genuinely stumped as to how to go forward.
USB debug will be enabled by default until you go through the process of disabling it on the web admin screen, so if you’re just now flashing the device and haven’t yet gone through the configuration, chances are good it’s spitting out some useful information via serial that would probably help us figure out what’s going wrong.
Thanks. Didn’t know it was enabled by default. I checked the logs, connected to the fallback AP to configure Wifi and MQTT and still no luck, still stuck at ‘HASP initializing’ - here’s the output:
I have three Haspone’s all have been working well up to and including 2022.2.3. Then with 2022.2.4 had issue that turned out to be a bad update involving MQTT. This affected all my MQTT devices. Core update 2022.2.5 came out quickly and fixed all the MQTT issues. But… It looks like all my Haspone’s no longer communicate with Home Assistant.
Anyone have this issue or have I screwed something up?
Thanks
Never mind… Sorry
Did a core functionality reset and all seems to be working. Need to re-select color.