devices.esphome.io

Jeeo TF-SH330

Jeeo TF-SH330

Device Type: plug
Electrical Standard: us
Board: esp8266

Product Images

alt text

Inspired by the Tasmota template: https://templates.blakadder.com/jeeo_TF-SH330.html

GPIO Pinout

PinFunction
GPIO0Blue Status LED
GPIO13Switch Input
GPIO15Mains Relay

Basic Configuration

esphome:
name: jeeoa
esp8266:
board: esp01_1m
# OTA flashing
ota:
- platform: esphome
wifi: # Your Wifi network details
# Enable fallback hotspot in case wifi connection fails
ap:
# Enabling the logging component
logger:
# Enable Home Assistant API
api:
# Enable the captive portal
captive_portal:
binary_sensor:
- platform: gpio
id: button
internal: true
pin:
number: 13
mode: INPUT
inverted: true
on_press:
- then:
- switch.toggle:
id: socket_relay
name: button
switch:
- platform: gpio
name: Socket
id: socket_relay
pin:
number: 15
mode: OUTPUT
inverted: false
on_turn_on:
- then:
- light.turn_on:
id: status_led
state: true
on_turn_off:
- then:
- light.turn_off:
id: status_led
state: false
restore_mode: RESTORE_DEFAULT_OFF
interlock_wait_time: 0ms
output:
- platform: gpio
id: led
pin:
number: 0
inverted: true
mode: OUTPUT
light:
- platform: binary
name: Status LED
id: status_led
internal: true
output: led
restore_mode: RESTORE_DEFAULT_OFF
Edit this page on GitHub