I currently have a couple of plugs with Tasmota running on them which I would like to move to ESPHome, they are running this https://templates.blakadder.com/teckin_sp27.html template.
I have created my first attempt at a config for them (copied from a template for another teckin plug and edited), before I trash one of the plugs please could someone sanity check my code.
esphome:
name: bedroom-power-switch
friendly_name: Bedroom Power Switch
# Enable Home Assistant API
api:
encryption:
key: "hkwwaNhpmQBVUZtMRAZKYFlyzk9NNFtkx2XosaUfFnw="
ota:
password: "2ad9724b3a3cdb1b1bb2ad49a637638a"
esp8266:
board: esp01_1m
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
logger:
# Disable UART logging (pins GPIO1/3 are used for button/led)
baud_rate: 0
binary_sensor:
- platform: gpio
name: "Teckin Button"
pin:
number: GPI13
mode:
input: true
pullup: true
inverted: true
on_press:
- switch.toggle: relay
switch:
- platform: gpio
id: blue_led
pin:
number: GPIO00
inverted: true
- platform: gpio
name: "Teckin Relay"
pin: GPIO15
id: relay
on_turn_on:
- switch.turn_on: blue_led
on_turn_off:
- switch.turn_off: blue_led
# Use red LED for connectivity status indicator
status_led:
pin:
number: GPIO00
inverted: true
Thanks