ESPHome Coding practices, tips and tricks, Tutorial 1, Foundation Part 1

Published at : 23 Dec 2025

This series, "Coding Practices, Tips and Tricks", is specifically designed for intermediate ESPHome users who have already completed my tutorial on "Creating a Room Sensor from Scratch" and are looking to take their skills to the next level.
This is the intermediate version of my popular "ESPHome Basic setup for all devices"
In this tutorial, we will discuss modularising our code and the standards and conventions I use in my coding and why.
This is part A of the foundation tutorial, part b is here https://youtu.be/G9WRg6jk7xk
GitHub Page: https://github.com/homeautomatorza/esphome/tree/main/Coding_Practices_Tips_and_Tricks/1_Foundation

Support me by
▶ Buying me a tea: https://www.buymeacoffee.com/homeautomatorza
▶ On Patreon: https://www.patreon.com/homeautomatorza

▶ Timestamps ⌚:
00:00 - Series Introduction
03:29 - Housekeeping
04:14 - Intro & Requirement
09:26 - Why are we doing this?
14:39 - Code Standarization
17:52 - Defining our common components
22:35 - Intro to Substitutions
29:27 - Announcement to next video

#smarthome #homeassistant #esphome #diyelectronics #diyiot