Since this post gained some traction again, I’m just letting people know that I still have some boards available at production price + shipping.
Contact me privately to arrange shipping.
Is it possible to add a new line \ carriage return into a payload?
I use NCID to record incoming calls to a MySQL database on another Pi and have used that for sometime now. Part of the trigger to record the data to the database, I include an SMTP call, so it would be straight forward enough to publish an MQTT message in the same trigger.
I’ve installed paho.mqtt on to my pi running NCID, created a small python script that sends “Call From: 1234567890 at: 18:55” to a topic called ncid/data.
That displays on Page 11 of my HASP when there is an incoming call, but it’s all in one line with word wrap it fits on the screen. I can add spaces to the original message so that it has “Call From:” on one line the telephone on another, "at: " and the next and so on. But is there a method of adding a new line using \r or \r or something so that I don’t need to fill the message with spaces?
By default, button interactions (buttons, hotspot, etc) don’t send out commands via serial unless you tell them to. Select the hotspot object in the editor, select “Touch Press Event”, and check “Send Component ID”. Do the same for Touch Release event.
I’ve used Arduino to copy the code across after downloading the 3 libraries and adding the custom URL. I’ve copied the TFT file from the MicroSD card to the Nextion. Can access the D1 Mini via IP address and it has successfully connected to MQTT and my Network. The issue is the LCD just keeps saying ‘HASP initializing’. I’ve done a continuity check on everything with a Multimeter and all checks out, connected leads directly to the D1 mini and also through the HASP PCB itself. I have Red - 5V, Black - G, Blue - D7 and Yellow - D4. I have reflashed the D1 mini and Nextion again to no avail. I have added everything into HA and can see in the serial output, messages are being received and the LCD on the D1 mini is blinking in sync with every action.
I have read all the posts with ‘HASP Initializing’ in this forum and it all seemed to be leads incorrect/reversed or cold solders, both of which i’ve triple checked…
Your research is correct, in that the display never actually showing anything strongly suggests a problem with TX from the WeMos getting to RX on the Nextion. Can you post a serial debug log of the startup process?
Question:
I’m always trying to learn about this code and automations for making the rgb wheel…actually i’m trying to modify the page p6, but why if i leave the blank page and only the code for toggle 1 light the plate is not able to connect anymore?
All this is really telling us is that nothing is being received from the Nextion LCD. That may very well be because nothing is getting TO the LCD. My best advice here will be to track down the TX from the WeMos on D4 to RX on the Nextion via the yellow cable. Continuity testing might help you there.
Can you explain a little more about what’s going on there? I’m not clear from your description exactly what the sequence of events are and what problem they’ve lead to.
I would like to also update the tft to the standard one (I tryied another one in the past and it not working well). I should first update to 0.40, right?
Thanks.
Can someone give me some tip how to solve this?
I did it. Ok.
I also updated TFT. It took about 5 min but it returned “Successful” and rebooted.
The MQTT settings were lost, so I inserted again and save. It reboots and loses it again…
I don’t know if this is by design but I don’t remember it happening previously:
every 30 seconds or so the display’s screen ‘rewrites’ even if nothing has changed, it’s really obvious and distracting. @luma is this to be expected, or am I experiencing a bug? I can take a quick vid if it helps.
ok, so i’m trying to make my rgb wheel page…but still not confident with the code at all.
For test, I’ve tried a blank page (yaml) at P6, with only the code for toggling one light. Mqtt works fine, it receives the button pressed on the touchscreen, but nothing happens on HA.
The more, my P6 blank page with only the code for toggle 1 light, seems to get the plate stuck…does it make sense to you?
If it’s a page w/ icons overlaid, and something happens that sends new info to that writes to that page, there will be a lot of stuff going on which might be visible. What page exactly are you seeing this on? If it’s the default automations w/ page 2 scenes, you’d expect things to happen every minute when the time updates.