generated from esphome/esphome-project-template
-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathwyze-plug.yaml
67 lines (62 loc) · 1.47 KB
/
wyze-plug.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
substitutions:
name: wyze-plug
friendly_name: Wyze Plug
esphome:
name: $name
comment: "Wyze Plug"
name_add_mac_suffix: true
# This will allow for (future) project identification,
# configuration and updates.
project:
name: cpyarger.wyze-plug
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/wyze-plug.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:
web_server:
port: 80
status_led:
pin:
number: GPIO05
inverted: true
# The commented out code below is used to make the output a binary light instead of a switch
binary_sensor:
- platform: gpio
pin: 14
id: button
internal: true
on_press:
then:
- switch.toggle: switch_1
# - light.toggle: light_1
switch:
- platform: gpio
name: "$friendly_name Switch"
pin: 12
id: switch_1
#light:
# - platform: binary
# name: "$friendly_name Light"
# output: relay_1
# id: light_1
#output:
# - platform: gpio
# pin: 12
# id: relay_1