bellad17
(Bellad17)
October 3, 2023, 5:49pm
1
hello , how to use power_down_pin: GPIO32
?
esp32_camera:
external_clock:
pin: GPIO0
frequency: 20MHz
i2c_pins:
sda: GPIO26
scl: GPIO27
data_pins: [GPIO5, GPIO18, GPIO19, GPIO21, GPIO36, GPIO39, GPIO34, GPIO35]
vsync_pin: GPIO25
href_pin: GPIO23
pixel_clock_pin: GPIO22
power_down_pin: GPIO32
name: "Doorbell camera"
thank you
2 Likes
icftmp
(icftmp)
March 4, 2024, 7:10pm
2
Hi bellad17, did you have any luck? I tried with a GPIO switch, but it gets instantly reverted to off every time I turn it on in the Home Assistant GUI:
switch:
- platform: gpio
pin: GPIO32
name: "Camera stream"
It sais “while its inactive” but the only way i was able to start it back up was to make a button that toggles the reset_pin
try this. It will just give you 1 button that will power down or reset depending on the state of the camera.
switch:
- platform: gpio
name: 'Power Down Kitchen Cam'
id: power_down
internal: true
pin:
number: GPIO32
allow_other_uses: true
inverted: false
button:
- platform: restart
name: "kitchen Cam Restart"
internal: true
id: restart_cam
- platform: template
name: "Power Down/Reset"
id: power_down_reset
on_press:
then:
- if:
condition:
switch.is_off: power_down
then:
switch.turn_on: power_down
else:
- if:
condition:
switch.is_on: power_down
then:
button.press: restart_cam
gohakn
(Gohakn)
December 31, 2024, 12:39am
5
@bellad17
I’m struggling with the same idea and when I try the upper code I’m getting the this error in ESPHome
Does this no longer work since ESPHome 2024.xx??