Thanks, did that. Are there automations within the YAML files that are kept that are no longer required once the device is set up?
Basically, from what I read here somewhere, all automations triggers are checked every seconds to see if they should be triggered and if so, their conditions are then evaluated. With all the automations that HASP is adding per device, this can add up pretty fast. I want to keep the system as lean as possible
If you have pages you arenāt using, you can delete those pages. There two hasp_plate01_00_*.yaml packages are automations which apply to more than one page, so you might want to keep those. If you can live without theme support etc youāre welcome to go slicing and dicing individual features from the project in those files.
Looks like itās centered aligned by default (although not mentioned and no xcen line in the p1 file). I added ,"p[1].b[4].xcen=0","p[1].b[5].xcen=0","p[1].b[6].xcen=0","p[1].b[7].xcen=0" to payload_template
I bought a 3.5" display but was struggling to get my own HMI file working. Just as you mention, HASP would stop responding when I used a file with six pages.
I figured out that somehow HASP needs a certain amount of pages. When I added some empty pages so the total would be 11, it started working perfectly.
Hope that can help someone who tries to make their own HMI file.
Thanks for the info. I had a feeling it might have something to do with the number of pages. Just havenāt had the time lately to play around with it.
.
Easy problem that Iām just completely missing out on:
Iām having issues setting the button state on the HASP via MQTT
Iād think it would be
topic: hasp/plate01/state/p[1].b[6]
payload: OFF
but that does not seem to change anything. Otherwise Iāve got this thing working exactly how I hoped to control a few pages of things leveraging only Node-RED. I would recommend this device to anyone!
The state of the button object can only be controlled by the user on the screen. The buttons in use are momentary contact, meaning they are always off unless a finger is smooshed onto the screen. Nextion does offer ātoggleā buttons, but that creates other problems for most situations.
Soā¦ you want toggle behavior that indicates if a device is on/off, but you want to do that with normal momentary button objects. The way we can do that is to toggle the foreground/background color used on that button, so that when you want to change on/off state on the button you simply swap foreground and background color sets.
Itās simpler than that, well I was i hoping It was anyways. I just want the buttons to always display as āoffā. Everything I have so far doesnāt need indication that itās āonā. Functionality wise i have the switch plate doing exactly what I was hoping for: just a way to physically kick off various MQTT commands. I was using a Zooz double switch before (piped through Hubitat and an add on for the MQTT output) and it was complicated to explain āsingle tap for thisā āhold for thatā etc etc.
Iāll check out that yaml file to see if i can make what I need happen, thanks again for the help!
Love this project! Finally got my first one installed and configured.
Is there anyway to flip the display in the software? The screen looks great when looking straight at it, but looking down on it from above becomes washed out and dark. It doesnāt seem to have this issue looking up at it from below. Unfortunately it is already in the wall so other than flipping the unit there is no way for me to mount it higher. Is there a software solution?
Ugh, off-axis viewing on these isnāt always great and I 100% understand the use case here. Iāve tried a couple approaches to flip the UI without much success but am asking around to see if thereās some trick to making that happen.
Hey @kyleteal I think I might have a workable solution for you.
From the HASP web page, select āupdate firmwareā. Under Update Nextion LCD from URL enter the following URL: http://haswitchplate.com/update/HASwitchPlate-Inverted.tft (you can just add the -Inverted bit to whatās already there).
The process will take a few minutes, after which the HASP should reboot with an inverted display configuration. It works here on my bench but thatās the extent to which Iāve tested, so Iād be interested to hear how it goes
I have one question, can the HA switch plate replace a traditional light switch in the sense it can control that specific light? (both control light it is in place for, and control other devices in HASSIO). Lastly can you use POE to power the switch plate?