Files
ESPHome/bedroom_plug_tkm1.yaml
Tim Meneely 3c1342eb07 Trying tuya
2021-01-24 21:17:23 -05:00

63 lines
1.2 KiB
YAML

esphome:
name: bedroom_plug_tkm1
platform: ESP8266
board: esp01_1m
wifi:
ssid: "Meneely"
password: "punxsutawney1"
# Enable fallback hotspot (captive portal) in case wifi connection fails
# ap:
# ssid: "BigBlue1 Fallback Hotspot"
# password: "QNWj7LmaNoD6"
manual_ip:
# Set this to the IP of the ESP
static_ip: 192.168.87.41
# Set this to the IP address of the router. Often ends with .1
gateway: 192.168.86.1
# The subnet of the network. 255.255.255.0 works for most home networks.
subnet: 255.255.254.0
fast_connect: True
# captive_portal:
# Enable logging
logger:
# Enable Home Assistant API
api:
ota:
binary_sensor:
- platform: gpio
pin:
number: GPIO4
mode: INPUT_PULLUP
inverted: True
name: "BR_Plug_TKM1 button"
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: "BR_Plug_TKM1 relay"
pin: GPIO14
id: relay
status_led:
pin:
number: GPIO12
inverted: yes
sensor:
- platform: wifi_signal
name: "BR_Plug_TKM1 WiFi signal"
update_interval: 60s
- platform: uptime
name: "BR_Plug_TKM1 uptime"
text_sensor:
- platform: version
name: "BR_Plug_TKM1 ESPHome version"