-
Notifications
You must be signed in to change notification settings - Fork 0
/
watermeter-cam.yml
92 lines (78 loc) · 1.7 KB
/
watermeter-cam.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
# ESP32-Cam for Utility Meter Digitizer for Home Assistant
# https://github.com/laurynas/hass-utility-meter-digitizer
esphome:
name: "watermeter-cam"
friendly_name: "watermeter-cam"
esp32:
board: esp32dev
framework:
type: arduino
# Enable logging
logger:
# Enable Home Assistant API
# api:
# encryption:
# key: "xxx"
# ota:
# password: "xxx"
wifi:
networks:
- ssid: !secret wifi_ssid
password: !secret wifi_password
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Watermeter-Cam Fallback"
password: "xxx"
captive_portal:
sensor:
- platform: internal_temperature
name: "Internal Temperature"
- platform: uptime
name: "Uptime"
- platform: wifi_signal
name: "Wi-Fi Signal"
update_interval: 60s
text_sensor:
- platform: wifi_info
ip_address:
name: "IP Address"
ssid:
name: "Wi-Fi SSID"
bssid:
name: "Wi-Fi BSSID"
- platform: version
name: "ESPHome Version"
hide_timestamp: false
esp32_camera:
name: "Camera"
id: 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
#max_framerate: 15 fps
#idle_framerate: 0.05 fps
idle_framerate: 0.5 fps
resolution: 640x480
jpeg_quality: 10
output:
- platform: ledc
pin: GPIO4
id: onboard_led_output
light:
- platform: monochromatic
id: onboard_led
output: onboard_led_output
name: "Flashlight"
esp32_camera_web_server:
- port: 8080
mode: stream
- port: 8081
mode: snapshot