generated from esphome/esphome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathshelly-1.yaml
61 lines (52 loc) · 1.25 KB
/
shelly-1.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
substitutions:
name: shelly-1
friendly_name: Shelly 1
# Basic Config
esphome:
name: $name
name_add_mac_suffix: true
# This will allow for (future) project identification,
# configuration and updates.
project:
name: cpyarger.shelly-1
version: "1.0"
esp8266:
board: esp01_1m
# To be able to get logs from the device via serial and api.
logger:
# API is a requirement of the dashboard import.
api:
# OTA is required for Over-the-Air updating
ota:
# This should point to the public location of this yaml file.
dashboard_import:
package_import_url: github://cpyarger/esphome-templates/shelly-1.yaml@main
wifi:
# Set up a wifi access point
ap:
password: "12345678"
# Sets up the improv via serial client for Wi-Fi provisioning
improv_serial:
# In combination with the `ap` this allows the user
# to provision wifi credentials to the device.
captive_portal:
# Device Specific Config
output:
- platform: gpio
pin: GPIO4
id: relay_1
light:
- platform: binary
name: "$friendly_name Light"
output: relay_1
id: light_1
binary_sensor:
- platform: gpio
pin:
number: GPIO5
#mode: INPUT_PULLUP
#inverted: True
name: "$friendly_name Switch"
on_state:
then:
- light.toggle: light_1