Page 1 of 2
Esp8266 + Nextion remote for Domoticz
Posted: Sunday 17 September 2017 10:07
by ledfreak3d
been tinkering around with my esp8266 and nextion display and came up with this
version 1
https://www.youtube.com/watch?v=8l1OMS5RgYA
version 2
https://www.youtube.com/watch?v=cjk7dPBZKyQ
version 3
https://www.youtube.com/watch?v=eGgEL6HHckQ
its still a work in progress but it turned out realy nice
also supports ota updates via a web interface
Re: Esp8266 + Nextion remote for Domoticz
Posted: Sunday 17 September 2017 10:57
by SweetPants
wauw looks really nice. to put on the wall instead of a 7/10 inch tablet
Re: Esp8266 + Nextion remote for Domoticz
Posted: Sunday 17 September 2017 11:08
by ledfreak3d
Yea and its not expensive to build one
Any esp will do except the esp01
You can make it bigger if needed just get a bigger nextion.
And it runs all the code on the esp and can be updated via wifi
Re: Esp8266 + Nextion remote for Domoticz
Posted: Friday 22 September 2017 12:14
by morilm
very interesting
Could you please share information about the box and the electronics used? (Bateries, charger)..
It's really a good thing to have at home for visitors or kids

Re: Esp8266 + Nextion remote for Domoticz
Posted: Friday 22 September 2017 12:19
by ledfreak3d
Sure.
Working on a standard box for everything
Currently only has a basic esp8266 battery charger and a single 18650 cell
Runs it for most of the day
Re: Esp8266 + Nextion remote for Domoticz
Posted: Friday 22 September 2017 13:23
by m.versteegh
And share the code, schematics, and all you have

Re: Esp8266 + Nextion remote for Domoticz
Posted: Friday 22 September 2017 18:44
by woody4165
Very nice job.
I was thinking about a control center made with a tablet on the wall, but this can be much better.
It can be done like a docking part on the wall where it can be charged...
Nice.
Please, if you can, share as much as you can!
Thanks
Re: Esp8266 + Nextion remote for Domoticz
Posted: Friday 22 September 2017 20:25
by ledfreak3d
yea its easy to build and you can make it charge wireless if needed
nee some people to help with programming side of things
to make it beter and get some feedback back from domotivz on the display
pm or email me if anybody is interested in helping out with the code or a beter gui design
Re: Esp8266 + Nextion remote for Domoticz
Posted: Friday 22 September 2017 20:28
by ledfreak3d
currently trying to get dimmers to work
and to get wifi manager working via the display
Re: Esp8266 + Nextion remote for Domoticz
Posted: Monday 09 October 2017 20:57
by Ierlandfan
I just found a great project for my Nextion! Can you share the code? I want to code a security panel in it and maybe a "standby" screen which displays something I not yet know. Like a weatherstation or something.
Re: Esp8266 + Nextion remote for Domoticz
Posted: Tuesday 17 October 2017 8:43
by ledfreak3d
Lots of new updates
Added New Gui
Added Ota updates
Added Dimmers
Added battery status and update to Virtual Domoticz device
gui design and code work are ongoing help is always appreciated
Re: Esp8266 + Nextion remote for Domoticz
Posted: Friday 20 October 2017 11:17
by Ierlandfan
It took some fiddling to set it up...just some, not much, I hate the pin assignment on the Wemos D1 mini
I used a Wemos D1 Mini, connected Nextion serial to to D5 and D7, 5v to 5v and ground to gnd
You need to change
to
if you want to connect the same way
You need this
https://github.com/bborncr/nextion library because it needs a few functions that are not in others. (Throws erros otherwise)
Then it's just a matter of changing idx in the code to suit your needs.
Use the log from Domoticz to see what happens and change idxnumbers accordingly.
The Editor is very easy to work with. I try to extend you code so it shows the actual state of a idx. Like light state on or off.
That means writing some small piece of code to send (live) commands from Domoticz to the ESP. Is not that hard. It's done before, we only need to adapt it to make Nextion happy.
I want to create a setup page to manually change the SSID and Password settings, Domotica server/port and maybe IDXnumbers as well.
Maybe some more info on the Info page (Taken from Domoticz like Domoticz online or something)
Just thinking out loud.
Re: Esp8266 + Nextion remote for Domoticz
Posted: Friday 20 October 2017 11:51
by ledfreak3d
yep that was my plan to realy need a settings page to change the server ip and port etc etc
and get the status of all the idx numbers on first boot or periodically
i will make a github page for this project
https://github.com/ledfreak3d/Domoticz-remote-
page added free for anybody to use
but please if any improvements are made please share them with the community
also uploaded the photoshop template file for the graphics design
Re: Esp8266 + Nextion remote for Domoticz
Posted: Thursday 26 October 2017 9:55
by jackslayter
thank you for share.
you know how to store value for restore it after a shutdown but not in enhanced version.
maybe with Numeric system variables (sys0 sys1 sys2) ?
thank you
Re: Esp8266 + Nextion remote for Domoticz
Posted: Thursday 26 October 2017 10:00
by ledfreak3d
can store the values in the esp or in the display or just get them from domoticz every time
but still have to find a way to get all the switch status in one go
Re: Esp8266 + Nextion remote for Domoticz
Posted: Thursday 26 October 2017 10:10
by jackslayter
yes I would like store in the display but save after each display reboot.
or send to esp and save for next reboot
Re: Esp8266 + Nextion remote for Domoticz
Posted: Thursday 26 October 2017 10:15
by ledfreak3d
ive double checked but the normal nextion models only have flash for images and fonts
and only ram for variables
but those wont be survive a reboot or power cycle
the enhanced version does have storage space for this
Re: Esp8266 + Nextion remote for Domoticz
Posted: Thursday 26 October 2017 10:18
by jackslayter
Re: Esp8266 + Nextion remote for Domoticz
Posted: Thursday 26 October 2017 10:24
by ledfreak3d
not sure it does not state in the specs where and if it stores those variables
but should be easy to test out
Re: Esp8266 + Nextion remote for Domoticz
Posted: Thursday 26 October 2017 11:39
by jackslayter
you know how to store display value in espeasy and restore it on reboot?