Esp8266 + Nextion remote for Domoticz
Moderator: leecollings
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Esp8266 + Nextion remote for Domoticz
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
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
Unleashe the magic smoke ;)
Re: Esp8266 + Nextion remote for Domoticz
wauw looks really nice. to put on the wall instead of a 7/10 inch tablet
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
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
Unleashe the magic smoke ;)
Re: Esp8266 + Nextion remote for Domoticz
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

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



- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
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
Unleashe the magic smoke ;)
-
- Posts: 13
- Joined: Wednesday 22 October 2014 7:58
- Target OS: Raspberry Pi / ODroid
- Domoticz version:
- Location: Netherlands
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
And share the code, schematics, and all you have 

-
- Posts: 476
- Joined: Monday 14 March 2016 13:55
- Target OS: Linux
- Domoticz version: beta
- Location: Rome, Italy
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
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
Cubietruck - Linux cubietruck 4.13.16 (Debian GNU/Linux 8 (jessie)) + Domoticz + RFLink, Xiaomi Gateway, Owl USB, Yeelight Color and B/W, ESP8266, Broadlink RM2, Netatmo Thermostat
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
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
Unleashe the magic smoke ;)
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
currently trying to get dimmers to work
and to get wifi manager working via the display
and to get wifi manager working via the display
Unleashe the magic smoke ;)
-
- Posts: 89
- Joined: Friday 09 October 2015 17:40
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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.
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
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
- Attachments
-
- 3.JPG (34.66 KiB) Viewed 6593 times
-
- 2.JPG (42.83 KiB) Viewed 6593 times
-
- 1.JPG (34.48 KiB) Viewed 6593 times
Unleashe the magic smoke ;)
-
- Posts: 89
- Joined: Friday 09 October 2015 17:40
- Target OS: Linux
- Domoticz version:
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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.
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
Code: Select all
SoftwareSerial nextion(5, 4);
Code: Select all
SoftwareSerial nextion(13, 14);
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.
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
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
Unleashe the magic smoke ;)
-
- Posts: 59
- Joined: Tuesday 07 October 2014 11:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: France RA
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
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
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
but still have to find a way to get all the switch status in one go
Unleashe the magic smoke ;)
-
- Posts: 59
- Joined: Tuesday 07 October 2014 11:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: France RA
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
yes I would like store in the display but save after each display reboot.
or send to esp and save for next reboot
or send to esp and save for next reboot
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
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
and only ram for variables
but those wont be survive a reboot or power cycle
the enhanced version does have storage space for this
Unleashe the magic smoke ;)
-
- Posts: 59
- Joined: Tuesday 07 October 2014 11:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: France RA
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
ok but no way to use sys0 variables (https://www.itead.cc/wiki/Nextion_Instr ... ables_List) for store after reboot?
http://support.iteadstudio.com/support/ ... 1000006915
http://support.iteadstudio.com/support/ ... 1000006915
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
- ledfreak3d
- Posts: 98
- Joined: Sunday 01 November 2015 15:30
- Target OS: Linux
- Domoticz version: 3.8025
- Location: Hoorn
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
not sure it does not state in the specs where and if it stores those variables
but should be easy to test out
but should be easy to test out
Unleashe the magic smoke ;)
-
- Posts: 59
- Joined: Tuesday 07 October 2014 11:00
- Target OS: Raspberry Pi / ODroid
- Domoticz version: stable
- Location: France RA
- Contact:
Re: Esp8266 + Nextion remote for Domoticz
you know how to store display value in espeasy and restore it on reboot?
RPi2 + RFLink, Domoticz
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
Chacon - micromodule 200w, remote 3b, 2x module 1000w, remote 16b, smoke detector, door contact, 2x 3500w plug
Oregon - 3x Thgr122Nx / OWL - CM180 / TRC02_2 RGB / Cheap - PiR, door contact, Temp Hum / 4x REVOLT NC5461
Who is online
Users browsing this forum: No registered users and 1 guest