-
Notifications
You must be signed in to change notification settings - Fork 7
/
catfeeder.yaml
74 lines (67 loc) · 1.48 KB
/
catfeeder.yaml
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
esphome:
name: catfeeder
platform: ESP8266
board: nodemcuv2
wifi:
ssid: "[Insert SSID Here]"
password: "[Insert password Here]"
# Use manual_ip if you want a static ip for better reliability, otherwise just use ssid and password
manual_ip:
static_ip:
gateway:
subnet:
# Enable fallback hotspot (captive portal) in case wifi connection fails
ap:
ssid: "Catfeeder Fallback Hotspot"
password: "[Insert password Here]"
captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
password: "[Insert password Here]"
services:
- service: control_servo
variables:
level: float
then:
- servo.write:
id: catfeeder_tilt
level: !lambda 'return level / 100.0;'
ota:
password: ""
output:
- platform: esp8266_pwm
id: 'catfeeder'
frequency: 50Hz
pin: D1
servo:
- output: 'catfeeder'
id: catfeeder_tilt
sensor:
- platform: dht
pin: D6
model: DHT11
temperature:
name: "CatFeeder Temperature"
humidity:
name: "CatFeeder Humidity"
update_interval: 300s
- platform: wifi_signal
name: "CatFeeder RSSI"
update_interval: 300s
- platform: uptime
name: "CatFeeder Uptime"
- platform: ultrasonic
trigger_pin: D8
echo_pin: D7
name: "Cat Food Remaining"
update_interval: 60s
binary_sensor:
- platform: gpio
pin: D3
name: "Cat Motion"
device_class: motion
switch:
- platform: restart
name: "Restart CatFeeder"