Skip to content

Instantly share code, notes, and snippets.

substitutions:
devicename: sonoff-s31-auto
upper_devicename: Sonoff S31-1
comment: Sonoff S31 Auto Reboot
esphome:
name: $devicename
comment: $comment
libraries:
- akajes/AsyncPing(esp8266)
platformio_options:
@patrick3399
patrick3399 / S31-Ultimate.yaml
Last active July 20, 2025 14:44
S31-Ultimate
#Feature:
#Adjustable Overload Protect, Custom Current and Timing.
#Auto Overload Recovery, Adjustable Timing
#All Time 16A Safety Overload Protect
#Changeable Relay Initial State
#Overload Warning With LED Effect
#Detachment Relay Mode Support
#Press the Buttom more then 10s to Return the Factory Setting (AP Mode)
#Web and OTA, mDNS Available
#Github https://gist.github.com/patrick3399/23297c6ca4b37dfc87ca8593183a9a17
# This is PZIOT-E02 ESPHome Yaml
# File at https://gist.github.com/patrick3399/bfc15074b6985d7c50fe8c06f6585b38
# wifi_ssid,wifi_password,api_key,ota_password,captive_portal_password setup at secret.yaml
substitutions:
devicename: "pziot-e02"
upper_devicename: PZIOT-E02
esphome:
name: $devicename
project:
name: "patrick3399.PZIOT-E02"