DIY displays for Home Assistant

Ғылым және технология

You ask me a lot of questions about the displays, I think you like them. So this video is about how you can make the same Nextion displays and connect them to Home Assistant. But not only how, but also why - how to make Home Automation not only to show off but to make your life easier, more comfortable.
Then we dive right in
03:45 the Hardware (the display and connection to Sonoff Basic for example)
05:03 making HMI layout and loading it in
15:16 Sonoff Basic firmware to that updates the display in ESP Home
23:16 frame
Links:
Display: nextion.tech/
Weather Station: github.com/bruxy70/Home-Assis...
Irrigation display: github.com/bruxy70/Irrigation...
About me: / vaclavchaloupka
#HomeAssistant #DIY #Nextion #HMI #Displays #Sonoff

Пікірлер: 102

  • @julianfriedrich2149
    @julianfriedrich21493 жыл бұрын

    Hi. I've use this display with a d1 mini and a Nextion NX4832K035_011R for about 1 year. yesterday i've done an ESPhome version update form 1.18.00 to 1.20.4 and nothing is working anymore :( I've then checked the Changelog from ESPHome and read this: "The Nextion component has had a major rewrite this release bringing many more features to those that use the displays..." The display get the data from home assistant, But the nextion display doesn't show it. When it still worked, the display refreshed itself every 60 seconds (update_interval) and also refreshed all values. Now the display does not refresh anymore. Does anyone have the same problem, or maybe even a solution? There are in the version probably now "Lambda Calls". I could imagine that this could solve my problem. But unfortunately I don't understand how to trigger for example the command "id(nextion1).update_all_components();".

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    Yes, they did rewrite it. You have to change the Programs.s as described here: esphome.io/components/display/nextion.html. There is really only one think you need to do - open the screen in Nextion editor and add line bkcmd=0 before page 0 to Programs.s. I also increased the baud to 115200 by adding baud=115200, also before page 0. It took me a while to find where Programs.s is. The screen edirot has two tabs. One is called Display, the second tab is Programs.s. Then save the HMI and upload it to the display. Then, in the ESPHome script, remove the line it.set_wait_for_ack(false); as it is not supported anymore. The rest should work.

  • @julianfriedrich2149

    @julianfriedrich2149

    3 жыл бұрын

    @@bruxy70 all right! many man many thanks for your fast response. I've directly found the programs.s, change it and, like you said, it works. Have you tested the lambda calls yet? I would be interested if you can update the single "it.set_component_text_printf" values also with the "update_components_by_prefix" command, so that the display doesn't flicker every 60 seconds, but they only update the values that have actually changed.

  • @julianfriedrich2149

    @julianfriedrich2149

    3 жыл бұрын

    @@bruxy70 sorry for me spam, I've also discovered the following [nextion:115]: Brightness out of bounds, percentage range 0-1.0 was there a change for the brightness command?

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    @@julianfriedrich2149 You are right. This has to be changed to float 0.0-1.0 as well. I will update that on the GitHub page

  • @julianfriedrich2149

    @julianfriedrich2149

    2 жыл бұрын

    @@bruxy70 1.0 and 0.0 do work, but 0.5 is like 0.0

  • @aaryanpour
    @aaryanpour4 жыл бұрын

    Aha, the video that I was keenly waiting for eventually got uploaded. Many thanks. Very informative and useful.

  • @JeffreyHammerCam
    @JeffreyHammerCam4 жыл бұрын

    I believe I am going to be spending a lot of time re-watching this video - I REALLY want to get some display similar to this in my new home.... moving in 7 days! :-)

  • @MrBearfaced
    @MrBearfaced4 жыл бұрын

    Great presentation, thanks for sharing your HA projects.

  • @Ilikeridin
    @Ilikeridin3 жыл бұрын

    First time watching your video’s but as soon as I saw that double switch and the dining room light comes on and all others off......subscribed!

  • @pr19580
    @pr195804 жыл бұрын

    Excellent video, thank you Vaclav!

  • @RichardShaylor
    @RichardShaylor4 жыл бұрын

    I've been looking forward to this video thanks :)

  • @dylanwalsh1796
    @dylanwalsh17964 жыл бұрын

    Great stuff, very informative videos, subscribed!

  • @StavrosSophocleous
    @StavrosSophocleous4 жыл бұрын

    Great Video Vaclav, Thank you

  • @jeroenjaja4359
    @jeroenjaja43594 жыл бұрын

    Great video, if a little less, I will definitely try to make a display myself! I will post my photos here.

  • @curiouslycory
    @curiouslycory4 жыл бұрын

    Really well done interfaces, and I really appreciate your home automation philosophy. I have similar rules for my stuff (should have physical button/ability to easily work when the internet is out, should make things easier, etc). The one thing I kept thinking though, is unless you can really get those displays cheaper, it's probably actually less expensive to get an old phone or tablet.

  • @bruxy70

    @bruxy70

    4 жыл бұрын

    Thanks. I do not see $15 as a deal-breaker www.banggood.com/Nextion-NX3224T024-2_4-Inch-Man-machine-Interface-HMI-Screen-Kernel-In-English-p-1105052.html?p=@K220219381694201802&cur_warehouse=CN

  • @EsotericArctos
    @EsotericArctos4 жыл бұрын

    As a note on ESPHome. It is not in the Add-On store by default. You need to add the ESPHome Repository manually first. :) I love the interface you have created there. It is quite nice. I like HA Switchplate as well, but it seems quite complex now. I noticed KZread didn't break this video up based on time stamps like it tends to these days..... I am going to look through a few other videos of yours as a few of them look interesting. New subscriber :)

  • @pauloguimaraes9083
    @pauloguimaraes90834 жыл бұрын

    Great job! Congratulations from Brasil

  • @MarcBrown1
    @MarcBrown14 жыл бұрын

    Nice work, subscribed and liked. I used your GitHub and a couple others to build my own config, still have a few things to work out. So any more videos on nextion and esphome would be welcome. When getting light state from home assistant I get a 1 or 0 but would like to change that to on or off. I am pretty sure you can do that in nextion editor just don't know how 😉

  • @tomasz-nowak
    @tomasz-nowak4 жыл бұрын

    Very useful, good job

  • @nevillevanderwesthuizen5517
    @nevillevanderwesthuizen55173 жыл бұрын

    I really like your philosophy with regards to automation!! Something you might want to try to set your scenes, in esphome you can add a min and max time to toggle the light, if you exceed the max time the light does not toggle and you can use that longer time to trigger something else. I used this to switch off all my lights in the house when leaving home or when I get into bed. Thanks for the great videos!!

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    Interesting. Can you share the example? I am kind of fighting to find the right level of automation, and I sometimes hit the wall when I do something that I think will make life easier, but my wife prefers to do things more manual, but more predictable (like this switch always turns on this light...that's it :) )

  • @nevillevanderwesthuizen5517

    @nevillevanderwesthuizen5517

    3 жыл бұрын

    @@bruxy70 I sent you an email with all the details

  • @DanielSimoSk
    @DanielSimoSk4 жыл бұрын

    Vaclav good idea for next video is “how to integrate Jablotron Alarm with HomeAssistent”

  • @will16320
    @will163204 жыл бұрын

    Very interesting

  • @romankrcek6609
    @romankrcek66094 жыл бұрын

    Excellent video :) But I had hard time reading the code on my smaller monitor, it was either very small or very pixelated even at 1080p.

  • @edgar9651
    @edgar96512 жыл бұрын

    Thanks, great video, subscribed. About the display: Did you try any other brands and models? I like the Nextion and I think about the future. What happens if I want a new screen in a few years and the company does not exist anymore. Is it easy to change to other brands/models?

  • @londonbilbo
    @londonbilbo2 жыл бұрын

    HI @Vaclav Chaloupka. Thank you for the video, is very helpful!! do you ever use the "debug" feature in the Nextion Editor to test your code? I want to avoid using the physical screen during the development, but I get some errors. Seems to be due to ESPHome resquesting info from the Screen at startup (which the simulator does not provide...) Do you bypass this issue somehow? Thank you again for your work

  • @eclecticlife
    @eclecticlife4 жыл бұрын

    Very useful and well explained information. Thank you! Have you used the 1.3 inch OLED display module 12864 oled 12864 LCD 1106 driver ssd1306? Please keep making these videos.

  • @bruxy70

    @bruxy70

    4 жыл бұрын

    No, I haven't.

  • @tankarobert
    @tankarobert3 жыл бұрын

    Hello! Great job, and thanks for sharing it with explanation! I would have one question as I could not see somewhere else: when you do the explanation (for example at 1:00) in the background, on the wall there is a "tableau" with aquamarine buttons/lights. What is that?

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    www.jablotron.com/en/jablotron-products/alarms/alarms-houses/

  • @redbad
    @redbad4 жыл бұрын

    Very Nice job. Can you share the stl for the display cover please? Thank you!

  • @bruxy70

    @bruxy70

    4 жыл бұрын

    You can grab it here github.com/bruxy70/Home-Assistant-ESPHome-Weather-Station For the entrance I used to use the front of the Weather station. When I was making this video I made a new one that matches the switches. It is called ABB Time.stl

  • @user-zr7kz4vs7c
    @user-zr7kz4vs7c3 жыл бұрын

    Any cheap android tablet that you recommend for running Home assistant dashboard kiosk mode?

  • @norman2pl
    @norman2pl4 жыл бұрын

    Great video ! Weather station on the kitchen table is that what I need ! But I have a question. What kind of tracker do You use to see who is in home ? I'm using device tracker based on android application but it's very slowly. Pozdrowienia z Polski :)

  • @bruxy70

    @bruxy70

    4 жыл бұрын

    I use a combination of Android/iPhone app and nmap tracker. But for the displays, I actually use armed/disarmed notifications from the security system.

  • @jasontle
    @jasontle Жыл бұрын

    Thanks Vaclav for the video. Is the cutout size of 3d model for 2.4inch or 3.5inch nextion display?

  • @bruxy70

    @bruxy70

    Жыл бұрын

    Don't remember from the top of my head, but it is the size documented in the description in the GitHub repo.

  • @marianlipovsky593
    @marianlipovsky5933 жыл бұрын

    Hi mr. Chaloupka. I see you have a Jablotron alarm system. Did you integrate it in HA? If so...do you plan a video on alarm integration, automations, possibiliteies...etc. Sorry for my english...try to keep the comment section international. :) Thank you for answer and looking forward to see more content from you.

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    No, I did not. There is Jablotron integration in HACS, but I still keep my security system physically isolated.

  • @Frank_Mulder
    @Frank_Mulder4 жыл бұрын

    Nice job. How do you power the display inside the bezel?

  • @bruxy70

    @bruxy70

    4 жыл бұрын

    From the Sonoff, 5V, GND....

  • @oskarma1801
    @oskarma18012 жыл бұрын

    Do you have to have connection to TX and RX all the time or just when you upload firmware? Where does the TX and RX come from? Im trying to fix the 5 volt situation at home but also need to know if i need more wiring.. Thanks!

  • @bruxy70

    @bruxy70

    2 жыл бұрын

    The TX, RX sends and receives the information between the chip and the display. Without that, the display would just display a static screen, and touching the screen would do nothing.

  • @richardtepas4832
    @richardtepas48322 жыл бұрын

    hi, thanks for this usefull video. i bought a Nextion and expirimenting with it. Is it possible to trigger a automtion in HomeAssistant on a button press?i i manage to switch switches on and of, would like to start a automation. Thanks and keep up the good work!

  • @bruxy70

    @bruxy70

    2 жыл бұрын

    Yes, definitely, I use that quite often. I use nextion binary_sensor www.esphome.io/components/binary_sensor/nextion.html?highlight=nextion%20binary%20sensor and I use on_press action to call a home assistant service. But you can should be also able to use it to trigger an action in home assistant. Or you can use a switch (platform nextion) www.esphome.io/components/switch/nextion.html?highlight=switch%20nextion

  • @richardtepas4832

    @richardtepas4832

    2 жыл бұрын

    @@bruxy70 thanks for the quick reponse, can you share code with me ? now i use for example; - platform: nextion page_id: 0 name: "Stand 1" component_id: 2 on_press: then: - homeassistant.service: service: switch.turn_on data: entity_id: switch.ventilatie_stand_1_aangezet how would i trigger a automation called; automation.ventilatie_stand_2_aan

  • @bruxy70

    @bruxy70

    2 жыл бұрын

    @@richardtepas4832 I did share teh code. it is in the description - look at the irrigation diaplay

  • @richardtepas4832

    @richardtepas4832

    2 жыл бұрын

    @@bruxy70 okay, i did not see the trigger to a automation, i take another close look, thank you !

  • @richardtepas4832

    @richardtepas4832

    2 жыл бұрын

    @@bruxy70 do you also have examples for controlling the dual state button? i cannot find the lambda command to control the state on the Nextion. thanks again!

  • @h3ad369
    @h3ad3694 жыл бұрын

    Dark Sky API are no longer available :( is ist possible to get the weather data (min max Temperatur) from Openweathermap?

  • @bruxy70

    @bruxy70

    4 жыл бұрын

    I am not sure if it gives min/max. I have submitted a change to the Met weather integration that includes that and will give daily and hourly forecast. But it is in review for quite a long time now. I suppose the guyys are busy with other things and they do not see that as important.

  • @h3ad369

    @h3ad369

    4 жыл бұрын

    @@bruxy70 I've been looking for a service that offers the min/max values as a sensor for days, it seems to be almost impossible. Although the openweathermap has 5 measurements per day, you can't take them one by one (at least i don't know how to do that)

  • @h3ad369

    @h3ad369

    4 жыл бұрын

    Vaclav Chaloupka I found a way, over Openweathermap. Here as example the min Sensor: sensors: min_temp_next_36h: friendly_name: Min Temperatur in den nächsten 36h value_template: >- {% set temperature = namespace(min=99) %} {% for item in states.weather.openweathermap.attributes.forecast[:11] %} {% if ((item.temperature | float) {% set temperature.min = (item.temperature | float) %} {% endif %} {% endfor %} {{ temperature.min }}

  • @miguelrosales3631
    @miguelrosales36313 жыл бұрын

    hi, thanks for your video, if i have 20 units sonoff basic, how conect to display nextion? or i need 20 display nextion ?

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    The sonoffs do not need any Nextion displays, so you do not need any. If you want to have a display, then I assume you want to display some information on it, and for that you need a microcontroller. And I used sonoff basic. And since I already had one that I used for the light switch, I used the same one for the display - so I did not need any additional microcontroller.

  • @sodeepnext

    @sodeepnext

    3 жыл бұрын

    @@bruxy70 is the Sonoff mini r2 switch compatible with this method Thanks before and after?

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    @@sodeepnext I haven't tried Sonoff mini r2, but looking at the specs, it has all contacts you need: user-images.githubusercontent.com/3912017/66733148-dfc3d300-ee5e-11e9-8715-87c8ecb844a7.jpg

  • @sodeepnext

    @sodeepnext

    3 жыл бұрын

    @@bruxy70 Thank you I wonder if this type of kid writing tablet may be a compatible screen (since are touch screens), because in my country some old Android phones are cheaper than the basic Nextion screens. Kid Writing tablet link (I don't have its brand or model number) facebook.com/marketplace/item/753394018948947/

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    @@sodeepnext Sorry, I do not use facebook, can't see the link. Yes, you can use an Android tablet, but this is a different solution - you'd use HA dashboards or install HA app on the tablet and show HA screen. You won't need/won't be able to connect it to an external microcontroller.

  • @esbenontech
    @esbenontech3 жыл бұрын

    How do you power the screen?

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    From the sonoff. 5V....

  • @peterwilbrink718

    @peterwilbrink718

    Жыл бұрын

    @@bruxy70 be very careful with that, as the 5v is not isolated. I'd be not comfortable with a live (as in hot) touchscreen

  • @lezbriddon
    @lezbriddon4 жыл бұрын

    or install HA to an old android tablet.... if you can.... it works i have seen it on youtube, but can i get it to install on my old tablet, not a chance!

  • @mrteausaable
    @mrteausaable3 жыл бұрын

    When you turn on the lights on the wall switch, will the display show the correct status also?

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    Yes, of course. The wall switch just toggles the light state. Same way as if you would from the HA interface, or by voice through an assistant. I think Gartner calls it multi-experience :)

  • @mrteausaable

    @mrteausaable

    3 жыл бұрын

    @@bruxy70 Do you have examples yaml codes for turn lights on and off that also reflex the state on the display?

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    @@mrteausaable thatvdepends what you use in the wall switches. If you use Tasmota or original firmware, that's what they do out of the box. I use Esphome, so it is the switch.toggle line www.google.com/search?q=Esphome+binary+switch+toggle+light&oq=Esphome+binary+switch+toggle+light&ie=UTF-8

  • @mrteausaable

    @mrteausaable

    3 жыл бұрын

    @@bruxy70 I did follow all your steps but change the sensors to my home temperature sensors on HA. But nothing display on the screen except the template screen tft. I checked the PIN and is correct. What did I do wrong?

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    @@mrteausaable I suppose something does not work correctly. Could be reading the temperatures is not right. Or sending the values to the screen. I guess you'll have to experiment and find where the issue is. Try setting the value to some constant value. If that work, you know that part works. Check the ESPHome logs to see if it reads the values. Could be a typo. Or using a wrong value. Hard to say in general.

  • @lebeyes
    @lebeyes4 жыл бұрын

    You probably mean DIY (Do It Yourself), not DYI?

  • @bruxy70

    @bruxy70

    4 жыл бұрын

    Thanks

  • @LuigiZotti
    @LuigiZotti2 жыл бұрын

    Hi, i want connect n: 20 display on 1 home assistant (raspberry pi4), is possibile? and i want assign for each display a different interface, is possibile? you have a group of telegram?

  • @bruxy70

    @bruxy70

    2 жыл бұрын

    Yes, you can connect 20 different displays to 1 home assistant, each can be different. No, i do not use telegram anymore.

  • @LuigiZotti

    @LuigiZotti

    2 жыл бұрын

    @@bruxy70 you can tell me how doing it? and which display i can use?

  • @bruxy70

    @bruxy70

    2 жыл бұрын

    @@LuigiZotti i show in the video how to do one display. You can do the same multiple times. Or there is the Sonoff NS panel, that you can use I guess. Or you can use tablets with Home Assistant do dashboard. So technically, this is doable. The question is whether the price and effort are worth it and whether you have the skills to pull it off. That i do not know.

  • @Freestila
    @Freestila3 жыл бұрын

    Interesting, but the displays are more expensive than regular cheap displays

  • @n.r.2258
    @n.r.22583 жыл бұрын

    NEXTION …. for PC windows only.

  • @bruxy70

    @bruxy70

    3 жыл бұрын

    unofficialnextion.com/t/nextion-editor-0-58-on-mac-linux/290

  • @n.r.2258

    @n.r.2258

    3 жыл бұрын

    @@bruxy70 Doesn’t work on Catalina … But the whole solution is „for NERDS only“.

  • @peterwilbrink718
    @peterwilbrink718 Жыл бұрын

    WARNING: Be careful with the sonoffs, as they do not always offer isolated 5v power. This couses the display to be at live voltages, which makes it dangerous to touch ⚡

  • @TheFlyingKiwiNZ
    @TheFlyingKiwiNZ4 жыл бұрын

    Dis place? Ohhh displays lol

Келесі