Automated chicken coop door using an ESP32 chip and a cheap battery powered door.

I don't have either set up, so this will be my first time setting them up. I plan to install it on a PC that's running as a NAS and Immich server.

Ok, cool. So it sounds like you know what you are doing, then.

I'm not sure how you have that PC configured, but FYI if you have Home Assistant installed via docker, you can't install add-ons, because those are actually using docker within Home Assistant. I run Proxmox on my server and then run Home Assistant within a virtual machine, and it works fine that way.

You also need at least 4 gigs of ram for Home Assistant. It will run with less just fine, but once you add on the ESPHome Addons, and then you try to compile the ESPHome code for the ESP32 chip, it will run out of memory and crash. I found that one out the hard way and had to order more memory for my server before I could keep working on my project.
 
Ok, cool. So it sounds like you know what you are doing, then.

I'm not sure how you have that PC configured, but FYI if you have Home Assistant installed via docker, you can't install add-ons, because those are actually using docker within Home Assistant. I run Proxmox on my server and then run Home Assistant within a virtual machine, and it works fine that way.

You also need at least 4 gigs of ram for Home Assistant. It will run with less just fine, but once you add on the ESPHome Addons, and then you try to compile the ESPHome code for the ESP32 chip, it will run out of memory and crash. I found that one out the hard way and had to order more memory for my server before I could keep working on my project.
I've got some extra DDR3 sticks for it. It has 5GB right now but I may just chuck some extra in there considering Immich eats 2GB on its own.

I'm probably going to run it as "supervised" under the Debian that's already on there.
 
Should work just fine.
I got the parts, but I can't seem to get the ESPHome code onto it.
This is the code:
esphome:
name: esphome-web-a8b0d8
friendly_name: Chicken Coop Door
min_version: 2024.11.0
name_add_mac_suffix: false
esp32:
board: esp32dev
framework:
type: esp-idf
# Enable logging
logger:
# Enable Home Assistant API
api:
# Allow Over-The-Air updates
ota:
- platform: esphome
wifi:
ssid: WiFIName
password: Wifipassword
captive_portal:
output:
- platform: ledc
id: motor_1_a
pin: GPIO2 # Pin to IN1
- platform: ledc
id: motor_1_b
pin: GPIO4 # Pin to IN2
- platform: ledc
pin: GPIO5 # Pin to EAN
id: motor_enable
frequency: 1000Hz
fan:
- platform: hbridge
id: Door_Motor
name: "Door Motor"
pin_a: motor_1_a
pin_b: motor_1_b
decay_mode: SLOW
enable_pin: motor_enable
speed_count: 100

button:
- platform: template
name: "Door Up"
on_press:
then:
- fan.turn_on:
id: Door_Motor
direction: Forward
- delay: 5s
- fan.turn_off: Door_Motor
- platform: template
name: "Door Down"
on_press:
then:
- fan.turn_on:
id: Door_Motor
direction: REVERSE
- delay: 5s
- fan.turn_off: Door_Motor
But all it does is give me this error:
1737249573721.png


Am I doing something wrong here?
 

New posts New threads Active threads

Back
Top Bottom