Trying tuya

This commit is contained in:
Tim Meneely
2021-01-24 21:17:23 -05:00
parent 18adfddb27
commit 3c1342eb07

63
bedroom_plug_tkm1.yaml Normal file
View File

@@ -0,0 +1,63 @@
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"