forked from glmnet/esphome_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest_servo.yaml
More file actions
55 lines (44 loc) · 847 Bytes
/
Copy pathtest_servo.yaml
File metadata and controls
55 lines (44 loc) · 847 Bytes
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
esphome:
name: test_servo
platform: ESP8266
board: nodemcuv2
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
fast_connect: true
# Enable logging
# Enable logging
logger:
level: VERY_VERBOSE
# Enable Home Assistant API
api:
ota:
servo:
- id: my_servo
output: pwm_output
output:
- platform: gpio
pin: D1
inverted: False
id: gpio_d1_led
- platform: esp8266_pwm
id: pwm_output
pin: D7
frequency: 50 Hz
binary_sensor:
- platform: gpio
pin: D8
name: "Multisensor Motion"
device_class: motion
on_press:
then:
- output.turn_on: gpio_d1_led
- servo.write:
id: my_servo
level: 70.0%
on_release:
then:
- output.turn_off: gpio_d1_led
- servo.write:
id: my_servo
level: -70.0%