I’ve finally managed to make a custom design for my NSPanel. For now it only has thermostat and lights control, but I’m going to add blinds as well. Took me much longer then I expected, since I’ve never dealt with ESPHome or nextion before and last time I wrote any C++ code was probably close to 25 years ago, but I’m happy with how it turned out (at least visually).
I used your code and modified one light (salon)…Holy F it actually worked. Thank you and @DeanoX
I now need to figure out where I am going to put it and what I want it to do. I did have one question on the salon light when I go into it I have 2 slider bars. One dims the other does nothing. how do I get rid of the extra one.
I’ve not found a way to disable the Colour Temp bar. Ideally there would be a widget that was Brightness only - but I dont think there is. I asked for one on my Sonoff kickstarter feedback - but suspect thats a long shot!
I am trying to make an alarm panel with the customer ui and esphome.
I have made the buttons for the keypad and found some code that when you enter the correct pin it goes back to the main screen.
Did anyone manage to get this pincode from a keypad to arm and disarm the alarm system in HA?
Hey,
I would like to share my NSPanel project.
TLDR:
NSPanel Firmware for EU Version with the look of lovelace (at least as good as it it possibe with nextion)
Works with Tasmota
Controlled though custom serial commands (based on comma seperated values)
Currently controlled though hacky NodeRed Script which pulls stuff from homeassistant and sends it the panel. (example export from my nodered is in the repo)
Forgive me if this is the wrong thread but hopefully someone can help answer my questions, so I can proceed to buy the nspanel. Is it possible to use the nspanel alongside a shelly 2 dimmer module in order to control 4 dimmable ‘dumb’ gu10 LED’S lights? If one of the physical switches on the nspanel can control the on/off function, is it possible to hold the switch down continuously to increase the brightness, then let go, and hold the same button to decrease the brightness? Or would the physical switch only be capable of turning the lights, via the shelly2 on or off, and the brightness level would have to be controlled via the touchscreen (a slider)?
Not with the std Sonoff firmware…but if you were to flash to ESPHome , absolutely yes. I have a number of ESPHome based switches with momentary buttons that I have programmed to control both local and remote (via HA) brightness. I aim to have the behaviour consistent…single click to toggle. Press and hold …brighten to max, dim to min and repeat. If you release and hold again, change direction of the dim/brighten loop. (This is the behaviour of the old X10 LD11 dimmers and works very well).in some cases I also have double click do something in some case e…g Straight to max brightness.
Once you have ESPHome controlling the buttons on the NSPanel you have all the flexibility you could wish for to create this behaviour. I have an nspanel and dimmer on my test setup currently. I’ll try and create a quick example.
Brilliant, that’s what I wanted to hear I had thought about just using a plain old centre-off retractable switch, using the Shelly 2 dimmer module to give me the smart control, but as I’ll probably have a few smart devices in the intended room, I’m thinking of going for the nspanel instead.
Mashed my NSPanel and Dimmer control switch ESPHome code together…Left hand button controlling external HA connected dimmer. Press to toggle. Hold to Dim/brighten. Demo Here
You need to have the camera set to manual control to be able to get dimming on video.
Otherwise the camera will compensate to maintain a good exposure all the time.
Thanks for sharing that video Dean, it looks like it will do exactly what I have planned in that case. In terms of connections to the dimmer module you are using, that all looks straightforward. That’s convinced me to go for the nspanel and flash it with ESPHome. Not used ESPHome yet, but I have a smart plug with tasmota on that I will practice flashing on while waiting on the nspanel to arrive!
I had the same problem when I powered up for the first time after flashing. After flashing, I changed the weather location to my location. The default in the Blakadder release is set to the North Pole. Use the ‘set_weather (your location)’ command to fix this.
Ribbon cable?? what ribbon cable?? Sadly I was “playing” with my NSPanel and it wasn´t properly seated and now as you said the screen doesn´t come off soooooo I was over the moon when I read your post but I don´t know what cable to fix or how Can you please send a pic?? thanks in advance… obvs if it´s fixed after that I do owe you a beer in Madrid!!! what the hell… if it´s not fixed I owe you a beer too