Skip to content

Instantly share code, notes, and snippets.

@notmayo
Created December 10, 2023 14:45
Show Gist options
  • Save notmayo/b9a493963feac3e1c3404c9f638978a8 to your computer and use it in GitHub Desktop.
Save notmayo/b9a493963feac3e1c3404c9f638978a8 to your computer and use it in GitHub Desktop.
Sharper Image Smart Wifi Plug US Socket Model 70011 ESPHome YAML
esphome:
name: si-smartplug-model-70011
friendly_name: si-smartplug-model-70011
esp8266:
board: d1_mini
early_pin_init: false # Prevent the physical relay flipping on reboot.
api:
ota:
captive_portal:
web_server:
logger:
wifi:
ssid: !secret wifi_ssid
password: !secret wifi_password
# domain: !secret wifi_mydomain
ap:
password: !secret ap_password
binary_sensor:
- platform: gpio
pin:
number: GPIO0
mode: INPUT_PULLUP
inverted: True
name: Button
on_press:
- switch.toggle: relay
switch:
- platform: gpio
name: Relay
pin: GPIO14
id: relay
restore_mode: ALWAYS_ON
status_led:
pin:
number: GPIO13
inverted: True
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment