Hallo zusammen,
ich versuche mein erstes Projekt mit der ESP32-Cam. Ich möchte mir hier eine Hausüberwachung bauen die nur an ist, wenn ich nicht zuhause bin. Sprich, ich brauch nur noch ein Button von der Kamera in HASS der die Kamera z.B. aus dem Standby holt und wieder dorthin schickt wenn ich zuhause bin.
Weiß einer wie ich im ESP-Home unter Homeassistant mir in die ESP32 config einen Button(switch) erstelle, der mir die Kamera den Standby Aktiviert/Deaktiviert so dass ich diesen im Homeassistant habe?
müsste doch gehen oder muss ich extra ne Smarte Steckdose dafür besorgen? xD
meine aktuelle config:
esphome:
name: camera-flur
friendly_name: camera_flur
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
api:
encryption:
key: "xxxxx"
ota:
password: "axxxx"
wifi:
ssid: "xxx"
password: "xxxx"
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Camera-Flur Fallback Hotspot"
password: "xxxx"
captive_portal:
esp32_camera:
name: esp32_cam
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
output:
- platform: gpio
pin: GPIO4
id: gpio_4 # dieser ausgang steuer licht
binary_sensor:
- platform: status
name: "ESP32Cam YT status"
sensor:
- platform: wifi_signal
name: "ESP32Cam YT WiFi Signal"
update_interval: 60s
light:
- platform: binary
output: gpio_4
name: "ESP32Cam light"
tippe oder füge den Code hier ein
vielen lieben dank
LG Robin