Mods, feel free to move this if there is a better place for it.
I was curious how, if any, ChatGPT had progressed in building a working software/hardware project. I have recently gotten interested in Home Assistant and building ESPHome devices to work with it.
I installed HA on a Raspberry Pi 5 that wasn't doing anything useful and played around with it and its integration with Apple Home. It works as expected even if the UI is not particularly slick. There may be a fix for that.
Since I know basically nothing about how to set up an ESPHome device using YAML I decided that would be a good test for ChatGPT to help out a rank newbie. I gave it this prompt:
First I gave it some background info:
Me:
I have programmed and enabled the Home Assistant app on a Raspberry Pi 5. I successfully added two commercially available Matter devices.
ChatGPT:
Excellent — you’re well on your way! Setting up Home Assistant with Matter devices on a Raspberry Pi 5 is a strong foundation.Can you tell me what you’d like to do next? For example:
• Are you having trouble pairing additional Matter devices?
• Do you want to integrate non-Matter devices (e.g., Zigbee, Z-Wave, Wi-Fi plugs, etc.)?
• Are you interested in controlling your Matter devices through Apple Home / Google Home / Alexa bridges?
• Or would you like to optimize your Home Assistant setup on the Pi 5 (performance, backups, dashboards, etc.)?
Once I know your next goal, I can walk you through the exact steps or configuration details.
Me:
I would like to make my own devices. I can start with something simple that flashes an onboard LED for example just to demonstrate success. I have an ESP32-c3 dev kit, an ESP32-s3 dev kit and a Raspberry Pi Pico 2W module that I can use for the project. I also Use Apple Home and if the new devices were usable with that it would be a bonus but my initial goal is to get something working with Home assistant. I have programmed the ESP devices with Arduino IDE and the Pico 2W in microPython using Thonny REPL. I also have the Raspberry Pi C++ SDK available to use. I'm looking for a pre-made project for one of those devices that just works and that I can study and modify.
ChatGPT gave me several suggestions about how I could use each of my Hardware platforms that I won't go into here unless someone is interested. It gave extensive code samples for each which I may test later. I picked one using the ESP32-C3 dev kit board.
I asked this question before starting, maybe giving away that I'm not a complete idiot:
Me:
One question before I try the ESP32-c3 example. My ESP has been programmed with an Arduino app. Do I need to return it to some initial condition before trying the example?
ChatGPT:
Good question — and an important one before you flash ESPHome.The short answer is: no special “factory reset” is needed, but there are a few practical steps to make sure the transition from Arduino to ESPHome goes smoothly.
It proceeded to go into quite some detail about special cases that I won't reproduce here. I decided to just go ahead.
Then it provided the YAML.
esphome:
name: c3-blinker
friendly_name: C3 Blinker
esp32:
board: esp32-c3-devkitm-1
variant: ESP32C3
wifi:
ssid: "YOUR_SSID"
password: "YOUR_PASSWORD"
api:
ota:
logger:
output:
- platform: gpio
pin: GPIO8
id: led_out
light:
- platform: binary
name: "C3 Onboard LED"
output: led_out
id: c3_led
interval:
- interval: 1s
then:
- light.toggle: c3_led
which I loaded into the ESP32-C3 from the ESPHome Builder function in HA.
I got a couple of errors. I fed ChatGPT the errors and it gave me the corrections. That allowed HA to build the app and flash the board. I purposely left out configuring SSID and PASSWORD like a newbie might have done and told ChatGPT that the installation had been successful but the board remained offline. It correctly suggested that I might have left out SSID and PASSWORD.
Long story short, the board flashed the onboard LED on and off at a 1 second interval as promised. It appeared as a device in HA and allowed me to install it and put it in the dashboard.


