-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathcat_feeder.yaml
69 lines (59 loc) · 1.11 KB
/
cat_feeder.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
esphome:
name: cat-feeder
esp8266:
board: d1_mini_pro
restore_from_flash: yes
# Enable logging
logger:
# Enable Home Assistant API
api:
password: ""
ota:
password: ""
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
power_save_mode: none
fast_connect: true
i2c:
sda: D5
scl: D6
sensor:
- platform: vl53l0x
name: "Food Left"
filters:
- calibrate_linear:
- 0.05 -> 100
- 0.3 -> 0
unit_of_measurement: "%"
stepper:
- platform: uln2003
id: feeder_stepper
pin_a: D1
pin_b: D3
pin_c: D2
pin_d: D4
max_speed: 250 steps/s
sleep_when_done: yes
acceleration: inf
deceleration: inf
button:
- platform: template
id: feeder_button
name: "Activate Cat Feeder"
icon: mdi:rotate-left
on_press:
- stepper.report_position:
id: feeder_stepper
position: 0
- stepper.set_target:
id: feeder_stepper
target: 40
time:
- platform: homeassistant
on_time:
- seconds: 0
minutes: 0
hours: /6
then:
- button.press: feeder_button