DIY displays for Home Assistant

Поділитися
Вставка
  • Опубліковано 6 сер 2024
  • 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
    @julianfriedrich2149 3 роки тому +2

    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 роки тому +1

      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 роки тому +1

      @@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 3 роки тому

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

  • @aaryanpour
    @aaryanpour 4 роки тому

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

  • @JeffreyHammerCam
    @JeffreyHammerCam 4 роки тому +2

    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
    @MrBearfaced 4 роки тому +1

    Great presentation, thanks for sharing your HA projects.

  • @pr19580
    @pr19580 4 роки тому

    Excellent video, thank you Vaclav!

  • @dylanwalsh1796
    @dylanwalsh1796 4 роки тому +1

    Great stuff, very informative videos, subscribed!

  • @RichardShaylor
    @RichardShaylor 4 роки тому +1

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

  • @jeroenjaja4359
    @jeroenjaja4359 4 роки тому +1

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

  • @StavrosSophocleous
    @StavrosSophocleous 4 роки тому

    Great Video Vaclav, Thank you

  • @Ilikeridin
    @Ilikeridin 3 роки тому +2

    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!

  • @curiouslycory
    @curiouslycory 4 роки тому +1

    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

  • @MarcBrown1
    @MarcBrown1 4 роки тому

    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 😉

  • @pauloguimaraes9083
    @pauloguimaraes9083 4 роки тому

    Great job! Congratulations from Brasil

  • @tomasz-nowak
    @tomasz-nowak 4 роки тому

    Very useful, good job

  • @EsotericArctos
    @EsotericArctos 4 роки тому +1

    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 UA-cam 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 :)

  • @nevillevanderwesthuizen5517
    @nevillevanderwesthuizen5517 3 роки тому

    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

  • @will16320
    @will16320 4 роки тому

    Very interesting

  • @edgar9651
    @edgar9651 2 роки тому

    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
    @londonbilbo 2 роки тому

    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

  • @romankrcek6609
    @romankrcek6609 4 роки тому

    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.

  • @DanielSimoSk
    @DanielSimoSk 4 роки тому +1

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

  • @eclecticlife
    @eclecticlife 4 роки тому

    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
    @tankarobert 3 роки тому

    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 роки тому +1

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

  • @user-zr7kz4vs7c
    @user-zr7kz4vs7c 3 роки тому

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

  • @redbad
    @redbad 4 роки тому +2

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

    • @bruxy70
      @bruxy70  4 роки тому +1

      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

  • @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.

  • @norman2pl
    @norman2pl 4 роки тому

    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 роки тому +1

      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.

  • @oskarma1801
    @oskarma1801 2 роки тому

    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.

  • @marianlipovsky593
    @marianlipovsky593 3 роки тому

    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 роки тому +1

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

  • @Frank_Mulder
    @Frank_Mulder 4 роки тому +1

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

    • @bruxy70
      @bruxy70  4 роки тому

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

  • @richardtepas4832
    @richardtepas4832 3 роки тому

    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  3 роки тому

      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 3 роки тому

      @@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  3 роки тому

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

    • @richardtepas4832
      @richardtepas4832 3 роки тому

      @@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
    @h3ad369 4 роки тому

    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) < temperature.min) %}
      {% set temperature.min = (item.temperature | float) %}
      {% endif %}
      {% endfor %}
      {{ temperature.min }}

  • @miguelrosales3631
    @miguelrosales3631 3 роки тому

    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 роки тому +1

      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 роки тому +1

      @@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 роки тому +1

      @@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.

  • @lezbriddon
    @lezbriddon 4 роки тому

    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!

  • @esbenontech
    @esbenontech 3 роки тому

    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

  • @mrteausaable
    @mrteausaable 3 роки тому

    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.

  • @LuigiZotti
    @LuigiZotti 2 роки тому

    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.

  • @lebeyes
    @lebeyes 4 роки тому +2

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

  • @n.r.2258
    @n.r.2258 3 роки тому

    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“.

  • @Freestila
    @Freestila 3 роки тому

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

  • @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
    @TheFlyingKiwiNZ 4 роки тому

    Dis place? Ohhh displays lol