devices.esphome.io

Martin Jerry US-SS01

Martin Jerry US-SS01

Device Type: switch
Electrical Standard: us
Board: esp8266

Amazon Link

Device on Martin Jerry

GPIO Pinout

PinFunction
GPIO3button
GPIO5relay
GPIO12red LED
GPIO14blue LED

Basic Configuration

esphome:
name: ${device_name}
friendly_name: ${friendly_name}
substitutions:
device_name: martin-jerry-ss01
friendly_name: Martin Jerry SS01
esp8266:
board: esp8285
# 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:
switch:
# relay output
- platform: gpio
id: relay
name: Relay
pin: GPIO05
on_turn_on:
- switch.turn_on: blue_led
- switch.turn_off: red_led
on_turn_off:
- switch.turn_on: blue_led
- switch.turn_on: red_led
- platform: gpio
pin: GPIO12
id: red_led
name: Red LED
inverted: true
- platform: gpio
pin: GPIO14
id: blue_led
name: Blue LED
inverted: true
binary_sensor:
- platform: gpio
pin:
number: GPIO03
mode: INPUT_PULLUP
inverted: true
name: Main Button
on_press:
- switch.toggle: relay
button:
- platform: restart
id: restart_button
name: Restart
entity_category: diagnostic
Edit this page on GitHub