forked from glmnet/esphome_devices
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtest.binary_sensor.yaml
More file actions
55 lines (46 loc) · 853 Bytes
/
Copy pathtest.binary_sensor.yaml
File metadata and controls
55 lines (46 loc) · 853 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
54
55
esphome:
name: test_local2
platform: ESP8266
board: nodemcuv2
platformio_options:
upload_speed: 921600
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_pass
# Enable logging
logger:
level: VERBOSE
# Example configuration entry
sensor:
- platform: wifi_signal
name: "WiFi Signal Sensor"
update_interval: 60s
# Enable Home Assistant API
api:
ota:
binary_sensor:
- platform: gpio
pin:
number: D0
inverted: true
mode: INPUT
name: "D0 Binary sensor"
on_press:
then:
- script.execute: timer1
output:
- platform: gpio
pin: D4
inverted: true
id: gpio_d4
light:
- platform: binary
id: esp_led
output: gpio_d4
script:
- id: timer1
then:
- script.stop: timer1
- light.turn_on: esp_led
- delay: 5s
- light.turn_off: esp_led