# Konfiguration für DEBO CAM ESP32 mit OV2640 2MP Kamera Modul,
# bestellt 2022-09 bei reichelt.de
# Konfiguration gefunden bei: 
# - https://smarthomeyourself.de/wiki/esphome/esp32-cam-mit-esphome-als-guenstige-kamera-fuer-home-assistant/
# lt. Datenblatt von Joy-IT:
# - Artikelnummer SBC-ESP32-Cam
# - EAN: 4250236818016
#
# Stromversorgung: 5V, Pins: 5V, GND (1 und 2) 

esphome:
  name: esp32pooltemp
  platform: ESP32
  board: esp32dev

# Enable logging
logger:

# Enable Home Assistant API
api:
  password: ""

ota:
  password: ""

wifi:
  ssid: "LBMerle9_EXT2ghz"
  password: "TurdusMerula"
  fast_connect: true
  manual_ip:
    static_ip: 192.168.1.17
    gateway: 192.168.1.1
    subnet: 255.255.255.0
    dns1: 192.168.1.1

  # Enable fallback hotspot (captive portal) in case wifi connection fails
  ap:
    ssid: "Esp32Cam01 Fallback Hotspot"
    password: "PiaYmWK2Uget"

captive_portal:
    
# additional config:
binary_sensor:
  - platform: status
    name: "ESP32TempPool status"

dallas:
  - pin: GPIO16
  
sensor:
  - platform: wifi_signal
    name: "ESP32TempPool WiFi Signal"
    update_interval: 60s  
    
  - platform: dallas
    name: "Temperatur Pool"
    address: 0x2200000397f98028
    force_update: True

  - platform: dallas
    name: "Temperatur Luft"
    address: 0x6e00000397ed5528
    force_update: True
    