Skip to main content

TreatLife SS02S (Single Pole)

#f03c15 1/9/2022 - No longer ships with an ESP8266 and one must be installed in order to use Tasmota or ESPHome.

Purchase on Amazon

Single Pole Decora US switch. No special setup is required with Tasmota. The template is all that is needed to setup this device.

Tasmota Template

{"NAME":"Treatlife Single Pole","GPIO":[0,0,0,0,288,576,0,0,224,32,0,0,0,0],"FLAG":0,"BASE":18, "CMND": "SO30 1 | SO13 1"}

ESPHome YAML

substitutions:
device_name: light_switch1 #CustomizeThis
friendly_name: Light Switch1 #CustomizeThis
icon: "mdi:light-switch"

esphome:
name: ${device_name}
platform: ESP8266
board: esp01_1m

wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
ap:
ssid: ${device_name} Portal
password: !secret esphome_ap_password

web_server:

captive_portal:

logger:

api:

ota:
platform: esphome

output:
- platform: gpio
pin: GPIO12
id: switch_output

- platform: gpio
pin:
number: GPIO4
id: white_led_output

light:
- platform: binary
name: ${friendly_name}
id: ${device_name}
output: switch_output
on_turn_on:
- light.turn_on: white_led
on_turn_off:
- light.turn_off: white_led

- platform: binary
id: white_led
output: white_led_output

binary_sensor:
- platform: gpio
pin:
number: GPIO13
id: ${device_name}_button
name: ${friendly_name} Button
on_press:
- light.toggle: ${device_name}

status_led:
# Red LED
pin:
number: GPIO5
inverted: yes

GPIO Layout

GPIOComponentDescription
GPIO00None
GPIO01None
GPIO02None
GPIO03None
GPIO04LedWhite LED under button
GPIO05LedLinkiRed Status LED
GPIO09None
GPIO10None
GPIO12Relay1Actual relay to toggle on/off
GPIO13Button1Button
GPIO14None
GPIO15None
GPIO16None

Settings

SettingDescription
setoption13 1Set On/Off switch to respond instantly
setoption30 1Sets domain to a light

Rules

None are necessary

alt text