ESPHome Guide for Advanced and Intermediate Users
ฝัง
- เผยแพร่เมื่อ 28 พ.ค. 2024
- ESPHome along with Home Assistant is really powerful for creating your own smart home sensors. This video builds on the Beginners Guide video I did and provides information about more aspects of ESPHome.
We take a look at analog inputs, light components, FSR force sensors, Lambdas and more.
In my opinion the most useful bit is creating discipline around your YAML configuration files.
Here are some links which reference the areas of ESPHome I use in this video:
ESPHome YAML Template - ESP8266: gist.github.com/letsautomaten...
ESPHome YAML Template - ESP32: gist.github.com/letsautomaten...
ESPHome Config for this sensor: gist.github.com/letsautomaten...
ESPHome Playlist: • ESPHome
Sensor Filters - esphome.io/components/sensor/...
GPIO Binary Sensor: esphome.io/components/binary_...
Info about FSRs from Adafruit: learn.adafruit.com/force-sens...
Pin setup, e.g. pull-up mode: esphome.io/guides/configurati...
Output Component: esphome.io/components/output/...
ADC Component: esphome.io/components/sensor/adc
Automations and Lambdas: esphome.io/guides/automations...
Automation Triggers: esphome.io/components/sensor/...
Restart Button: esphome.io/components/button/...
Sonoff TX Ultimate Repo: github.com/SmartHome-yourself...
00:00 Intro
01:14 YAML Configuration Template File
02:26 Defining Substitution constants in YAML
02:58 Adding Restart Button / Entity to Home Assistant
03:33 Arduino versus ESP-IDF Framework
03:49 Connected Status LEDs to a DIY Sensor
04:44 Adding an FSR Force Sensor to your sensor / ADC Component
07:13 Update Interval, Internal Parameter and Filters
08:03 Lambdas
09:14 ESPHome Automations
10:10 Adding a push button to your sensor
11:13 ESPHome Scripts
12:13 Compile Errors / Clean Build Files
12:52 Outro
#esphome #homeassistant #sensor - วิทยาศาสตร์และเทคโนโลยี
A video that has been needed for FOREVER.
PLEASE MAKE MORE.
Excellent! I needed this a year ago 😂 I like that you highlighted the option to run the logic on the board rather than in HA, that's a key benefit of esphome and mostly overlooked.
Agreed - It is probably the number one feature of ESPHome. It allows the controller to take action locally without relying on HA being available.
Thank you for your instructive videos. very helpful
this is wat i so desperatly need more of . great video .would love to see more guides on eps home
This is a great overview and really brings a lot of clarity. Thank you so much
It's a fantastic video and hitting a real gap in YT. Excited to see what you release next
One clarification - you mention that with lambda functions, a lot of the work can be done on the esphome device, but changes will require new firmware. You are able to pass along value from HA into esphome for some customization. For instance, I needed to offset a sensor value to calibrate it and I was able to use a helper in HA to make the adjustment and pass it to esphome without the need for a firmware change.
Yeah, for sure linking them up to HA entities is the best way of keeping flexibility of settings.
How's the brewery endeavour going?
Very helpful
Really good educational video thanks!
if I could wish for something, it would be an ESP home project with a load cell, scale, hx711, ESP32 with integration to Home Assistant with calibration and tare and zero function.
@lets-automate How is it possible to use instead of wifi a usb connection for data and stuff? Can you please explain How to get usb running in esphome?
Thanks for this. i've done a deep dive into ESPhome this past month or so and have learned a lot. I'm looking to automate a small commercial brewery and it appears ESPhome tied to Home Assistant is up to the task.
That's really cool. Sounds like a nice practical use for using HA and ESPHome.
Let me know what you end up automating!
nice video.I want to ask, how do I do it if I want to share my IoT project with my family, so that the remaining family connects to the internet, then my esphome device directly connects to my family's new network. Thank you.
Do your family members already have Home Assistant?
Thanks for the comment!
When you say family, do mean in a separate household presumably?
What sort of sensor is it, as in what data do you expect your family to get access to from your sensor?
Also, as mentioned by @sugnaangus, would be good to know if they use Home Assistant too and if any of your systems are accessible externally, e.g. have a public address.
If they do not, then you could send your sensor data to a cloud service via http or mqtt then they (and you) could access the sensor data from there.
For stuff like wifi ssid and password you should use secrets rather than substitutions
Yeah, agreed and I should have mentioned that really. I do in my beginners video I believe.
You will see that I do use the secrets for the house WIFI SSIS and Password, just not for the on-device AP.
Some people might be happy to use the same AP details for each device, in which case using the secrets is perfect.
If using different creds per device for increased security then I would say it is personal preference. You might not want to bother with entries per device in the secrets file. But of course you could.