Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: t_camv162b
- platform: ESP32
- board: esp-wrover-kit
- wifi:
- ssid: "xxxx-xxxx"
- password: "xxxxxxxx"
- manual_ip:
- static_ip: 192.168.1.221
- subnet: 255.255.255.0
- gateway: 192.168.1.1
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "T Camv162b Fallback Hotspot"
- password: "xxxxxxxx"
- captive_portal:
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- binary_sensor:
- - platform: gpio
- pin: GPIO19
- name: PIR
- id: movement
- device_class: motion
- - platform: gpio
- pin:
- number: GPIO15
- mode: INPUT_PULLUP
- inverted: True
- name: Button
- - platform: status
- name: Status
- sensor:
- - platform: wifi_signal
- name: WiFi Signal
- update_interval: 10s
- - platform: uptime
- name: Uptime
- esp32_camera:
- name: Camera
- external_clock:
- pin: GPIO4
- frequency: 20MHz
- i2c_pins:
- sda: GPIO18
- scl: GPIO23
- data_pins: [GPIO34, GPIO13, GPIO14, GPIO35, GPIO39, GPIO38, GPIO37, GPIO36]
- vsync_pin: GPIO5
- href_pin: GPIO27
- pixel_clock_pin: GPIO25
- # power_down_pin: GPIO26
- resolution: 640x480
- jpeg_quality: 10
- vertical_flip: false
- horizontal_mirror: false
- i2c:
- sda: GPIO21
- scl: GPIO22
- font:
- - file: "fonts/times-new-roman.ttf"
- id: tnr1
- size: 20
- - file: "fonts/times-new-roman.ttf"
- id: tnr2
- size: 35
- - file: "fonts/times-new-roman.ttf"
- id: tnr3
- size: 70
- time:
- - platform: homeassistant
- id: homeassistant_time
- display:
- - platform: ssd1306_i2c
- model: "SSD1306 128x64"
- address: 0x3C
- rotation: 180
- lambda: |-
- if(id(movement).state) {
- it.print(64, 54, id(tnr3), TextAlign::BASELINE_CENTER, "Boo!");
- } else {
- it.strftime(64, 0, id(tnr1), TextAlign::TOP_CENTER,"%d-%m-%Y", id(homeassistant_time).now());
- it.strftime(64, 64, id(tnr2), TextAlign::BASELINE_CENTER, "%H:%M", id(homeassistant_time).now());
- }
Add Comment
Please, Sign In to add comment