Esp8266 + Nextion remote for Domoticz

Everything about esp8266 and more.

Moderator: leecollings

User avatar
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

Post 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
Unleashe the magic smoke ;)
SweetPants

Re: Esp8266 + Nextion remote for Domoticz

Post by SweetPants »

wauw looks really nice. to put on the wall instead of a 7/10 inch tablet
User avatar
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

Post 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
Unleashe the magic smoke ;)
morilm
Posts: 35
Joined: Friday 27 January 2017 12:57
Target OS: OS X
Domoticz version:
Contact:

Re: Esp8266 + Nextion remote for Domoticz

Post 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 :D :D :D
User avatar
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

Post 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
Unleashe the magic smoke ;)
m.versteegh
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

Post by m.versteegh »

And share the code, schematics, and all you have :D
woody4165
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

Post 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
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
User avatar
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

Post 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
Unleashe the magic smoke ;)
User avatar
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

Post by ledfreak3d »

currently trying to get dimmers to work
and to get wifi manager working via the display
Unleashe the magic smoke ;)
Ierlandfan
Posts: 89
Joined: Friday 09 October 2015 17:40
Target OS: Linux
Domoticz version:
Contact:

Re: Esp8266 + Nextion remote for Domoticz

Post 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.
User avatar
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

Post 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
Attachments
3.JPG
3.JPG (34.66 KiB) Viewed 6592 times
2.JPG
2.JPG (42.83 KiB) Viewed 6592 times
1.JPG
1.JPG (34.48 KiB) Viewed 6592 times
Unleashe the magic smoke ;)
Ierlandfan
Posts: 89
Joined: Friday 09 October 2015 17:40
Target OS: Linux
Domoticz version:
Contact:

Re: Esp8266 + Nextion remote for Domoticz

Post 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

Code: Select all

SoftwareSerial nextion(5, 4);
to

Code: Select all

SoftwareSerial nextion(13, 14);
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.
User avatar
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

Post 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
Unleashe the magic smoke ;)
jackslayter
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

Post 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
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
User avatar
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

Post 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
Unleashe the magic smoke ;)
jackslayter
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

Post 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
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
User avatar
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

Post 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
Unleashe the magic smoke ;)
jackslayter
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

Post by jackslayter »

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
User avatar
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

Post 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
Unleashe the magic smoke ;)
jackslayter
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

Post by jackslayter »

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
Post Reply

Who is online

Users browsing this forum: No registered users and 1 guest