Thanks. A pretty long video (with a fair amount of repetition), but I figure most folks will be looking for one particular type of display or another and will skip ahead to those sections and not necessarily watch the entire thing from start to finish. Therefore I wanted each display to sort of stand on its own for those only interested in one or two different options. Thanks for watching and thanks for the comment!
What a great video! Lots of good information on the displays and use. I have a dozen temp and humidity sensors around the house and can see adding a display to the case would be a cool project . Thanks for the information and adding another project to my project list. Keep up the great work! Excellent t-shirt by the way!
Thanks Dave! While most the stuff we do can always be displayed on a Home Assistant dashboard, have a local display can be nice for many things as well. Oh... and thanks for noticing the t-shirt!
Well presented with a lot of info. I've built projects with 7 seg and oled for GPS displays and 8x8 MAX7219 for scrolling text with bluetooth ....all using arduino but hope to try other controllers if I get the time.
Most of my projects that use a display of some sort are Arduino-based as well, but I have a few that use ESPHome. ESPHome is nice when you need something with native integration into Home Assistant, but Arduino generally give you more advanced features. Thanks for watching!
Very nice guide. I was doing a project previously and was trying to add static text after a home assistant value and could not figure out the syntax. I could get test before the value, but not after. I even tried using a seperate print statement, but that created layout issues. Is this possible?
Thanks. You can certainly add static text after the value. In fact, if you go back and watch the section where I am using the temperature from the DHT22 sensor, you'll see that I added a static °C after the value from the sensor. The formatting can be a bit tricky, especially if you aren't familiar with using printf in Arduino. But you can add static text before or after a format string (or both). For example, again using temperature as an example, I could do something like: printf(.... , "The basement temperature is %.1f °C", id(sensor).state); The value (or state) of the sensor would be dropped into the format string that begins with "%" and the output to the display would be: The basement temperature is 21.9 °C Just make sure you leave a space after the format string and before any trailing text. Otherwise, your static text will be seen as part of the format structure... and this will likely cause a syntax or other error. Hope that info helps!
Have you checked out the CYD, the Cheap Yellow Display with an ESP32 built in? I got some of the example code to work, but could not get my own code working using display, touch, sound, and SD card working at the same time.
I did run across those in my research of some of these other displays, but I haven't tried one. I've received a number of "offers" from various sellers that have a display with an ESP32 integrated, but I rarely do product reviews on my channel, so despite the offer of a "free" board or display in exchange for a review, I turn those down. If I had a particular need for one and I felt like it would fit with my channel, I would possibly consider it. But if I ever come up with a use case for my home, I would definitely consider picking one up and giving it a try. Thanks for the comment!
Got everything to work except the last part, using platform of homeassistant. When you say sensor.temperature_sensor, I assume "temperature_sensor" is the sensor name in the sensor definition (in the other esp32device) , but is the first part, "sensor" the device name, friendly name, or the word sensor? I have tried them all. I haven't found anything but very brief documentation online. Thanks.
I'm happy to try to help you out, but I need just a bit more info in terms of what you are referring to. Which display and which particular part of the video are you referencing? "sensor" as used in ESPHome is the integration type. So, you would have entities like: sensor._some_name_, light._some_name_, switch._some_name_. So I'm not 100% sure what you referring to when you say you are using a platform of homeassistant. But if I am following you, then yes "temperature_sensor" would be the entity name. If you can just give me some more details about what you are attempting to do and any other info you think might be helpful, I'm glad to try to answer your questions.
@@ResinChemTech Thanks, I thought I was in business after finding how the entity_id was formed in the ESPHOME documentation, but still getting a nan. I have a temp sensor in the kitchen: (relevant part of the yaml) esphome: name: espkitchentemp friendly_name: ESPKitchenTemp and sensor: - platform: dht pin: GPIO26 temperature: name: "Temperature" humidity: name: "Humidity" update_interval: 60s for the sensor. I have another ESP32 with a sensor, and wanted to see if I could do as you did. Get data from another ESP32. in the bedroom: sensor: - platform: homeassistant name: "Kitchen_Temp" entity_id: sensor.espkitchentemp_temperature id: tempk forming the entity_id as I thought it wanted, with a printf of tempk, but I get a nan. Using a 20 by 4 LCD display, which seems to be working as it should.
Finally. I had done many searches online, and the thing that was missing was to include each (I did both) ESPHome devices, making them available to Home Assistant. That check box back in Integrations that I did not give much thought to before. Thanks for your help, and I will be checking out your other videos.
If you use a GPIO pin, you must define this pin as an output component and then include that output in a light component in ESPHome. This allows you to set the brightness of the backlight using PWM. Or you can just set the pin to high for always-on full brightness. In effect, this provides the 3.3V that the backlight needs. I didn't show that here as I only include basic snippets of code. But it covered in the full ESPHome documentation. For Arduino, you can just set the GPIO pin to output/high or define PWM as well. Sorry for any confusion. Time simply did not permit me to fully cover either the ESPHome or Arduino code for each display, but the links I provide in the written guide do contain complete examples. But as you found, you can also just use 3.3V for the LED backlight if desired... there just won't be a way to turn the backlight off as opposed to using a GPIO pin.
Very nice guide, superb 👍
Thanks so much! I greatly appreciate the comment.
Very nice guide, was looking for one for displays 👍
Thanks. A pretty long video (with a fair amount of repetition), but I figure most folks will be looking for one particular type of display or another and will skip ahead to those sections and not necessarily watch the entire thing from start to finish. Therefore I wanted each display to sort of stand on its own for those only interested in one or two different options.
Thanks for watching and thanks for the comment!
Long is not a problem for me 👍
Like your style, right to the point. Keep it up!
Thanks... I appreciate the kind words!
What a great video! Lots of good information on the displays and use. I have a dozen temp and humidity sensors around the house and can see adding a display to the case would be a cool project . Thanks for the information and adding another project to my project list. Keep up the great work! Excellent t-shirt by the way!
Thanks Dave! While most the stuff we do can always be displayed on a Home Assistant dashboard, have a local display can be nice for many things as well.
Oh... and thanks for noticing the t-shirt!
Very good video. Well explained and straightforward. I have subscribed.
Thanks! I appreciate it... and welcome to the channel!
OMG I love your shirt. It’s exactly what I said when I was having issues with my LED’s flashing and added a resistor lol.
Thanks! Sometimes it's amazing what a difference a little resistors can make.
Thanks for watching!
Thanks!
Thanks so much! It is greatly appreciated!
Well presented with a lot of info. I've built projects with 7 seg and oled for GPS displays and 8x8 MAX7219 for scrolling text with bluetooth ....all using arduino but hope to try other controllers if I get the time.
Most of my projects that use a display of some sort are Arduino-based as well, but I have a few that use ESPHome. ESPHome is nice when you need something with native integration into Home Assistant, but Arduino generally give you more advanced features.
Thanks for watching!
Very nice guide. I was doing a project previously and was trying to add static text after a home assistant value and could not figure out the syntax. I could get test before the value, but not after. I even tried using a seperate print statement, but that created layout issues.
Is this possible?
Thanks. You can certainly add static text after the value. In fact, if you go back and watch the section where I am using the temperature from the DHT22 sensor, you'll see that I added a static °C after the value from the sensor.
The formatting can be a bit tricky, especially if you aren't familiar with using printf in Arduino. But you can add static text before or after a format string (or both). For example, again using temperature as an example, I could do something like: printf(.... , "The basement temperature is %.1f °C", id(sensor).state);
The value (or state) of the sensor would be dropped into the format string that begins with "%" and the output to the display would be: The basement temperature is 21.9 °C
Just make sure you leave a space after the format string and before any trailing text. Otherwise, your static text will be seen as part of the format structure... and this will likely cause a syntax or other error. Hope that info helps!
Very Very nice tutorial, great job
Thanks! I appreciate the comment.
Have you checked out the CYD, the Cheap Yellow Display with an ESP32 built in? I got some of the example code to work, but could not get my own code working using display, touch, sound, and SD card working at the same time.
I did run across those in my research of some of these other displays, but I haven't tried one. I've received a number of "offers" from various sellers that have a display with an ESP32 integrated, but I rarely do product reviews on my channel, so despite the offer of a "free" board or display in exchange for a review, I turn those down. If I had a particular need for one and I felt like it would fit with my channel, I would possibly consider it. But if I ever come up with a use case for my home, I would definitely consider picking one up and giving it a try.
Thanks for the comment!
Got everything to work except the last part, using platform of homeassistant. When you say sensor.temperature_sensor, I assume "temperature_sensor" is the sensor name in the sensor definition (in the other esp32device) , but is the first part, "sensor" the device name, friendly name, or the word sensor? I have tried them all. I haven't found anything but very brief documentation online. Thanks.
I'm happy to try to help you out, but I need just a bit more info in terms of what you are referring to. Which display and which particular part of the video are you referencing? "sensor" as used in ESPHome is the integration type. So, you would have entities like: sensor._some_name_, light._some_name_, switch._some_name_. So I'm not 100% sure what you referring to when you say you are using a platform of homeassistant. But if I am following you, then yes "temperature_sensor" would be the entity name.
If you can just give me some more details about what you are attempting to do and any other info you think might be helpful, I'm glad to try to answer your questions.
@@ResinChemTech Thanks, I thought I was in business after finding how the entity_id was formed in the ESPHOME documentation, but still getting a nan.
I have a temp sensor in the kitchen: (relevant part of the yaml)
esphome:
name: espkitchentemp
friendly_name: ESPKitchenTemp
and
sensor:
- platform: dht
pin: GPIO26
temperature:
name: "Temperature"
humidity:
name: "Humidity"
update_interval: 60s
for the sensor. I have another ESP32 with a sensor, and wanted to see if I could do as you did. Get data from another ESP32.
in the bedroom:
sensor:
- platform: homeassistant
name: "Kitchen_Temp"
entity_id: sensor.espkitchentemp_temperature
id: tempk
forming the entity_id as I thought it wanted, with a printf of tempk, but I get a nan. Using a 20 by 4 LCD display, which seems to be working as it should.
Finally. I had done many searches online, and the thing that was missing was to include each (I did both) ESPHome devices, making them available to Home Assistant. That check box back in Integrations that I did not give much thought to before. Thanks for your help, and I will be checking out your other videos.
Yay! Glad you got it working! Congrats!
I followed your video to make weather display using ili9341 screen, had to conect led pin to 3.3 v to make work , wount work on pin gpio21.
If you use a GPIO pin, you must define this pin as an output component and then include that output in a light component in ESPHome. This allows you to set the brightness of the backlight using PWM. Or you can just set the pin to high for always-on full brightness. In effect, this provides the 3.3V that the backlight needs. I didn't show that here as I only include basic snippets of code. But it covered in the full ESPHome documentation. For Arduino, you can just set the GPIO pin to output/high or define PWM as well.
Sorry for any confusion. Time simply did not permit me to fully cover either the ESPHome or Arduino code for each display, but the links I provide in the written guide do contain complete examples. But as you found, you can also just use 3.3V for the LED backlight if desired... there just won't be a way to turn the backlight off as opposed to using a GPIO pin.
@@ResinChemTech just got it working this way, thanks for your help
thinking of adding motion sensor to turm back lifgt on and off