56 lines
1.1 KiB
YAML
56 lines
1.1 KiB
YAML
esphome:
|
|
name: shelly1_1
|
|
platform: ESP8266
|
|
board: esp01_1m
|
|
|
|
wifi:
|
|
ssid: "Meneely"
|
|
password: "punxsutawney1"
|
|
power_save_mode: none
|
|
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "Shelly1_1 Fallback Hotspot"
|
|
password: "QNWj7LmaNoD6"
|
|
manual_ip:
|
|
# Set this to the IP of the ESP
|
|
static_ip: 192.168.87.21
|
|
# Set this to the IP address of the router. Often ends with .1
|
|
gateway: 192.168.86.1
|
|
# The subnet of the network. 255.255.255.0 works for most home networks.
|
|
subnet: 255.255.254.0
|
|
|
|
# Enable logging
|
|
logger:
|
|
level: debug
|
|
|
|
# Enable Home Assistant API
|
|
api:
|
|
|
|
ota:
|
|
|
|
# Device Specific Config
|
|
output:
|
|
- platform: gpio
|
|
pin: GPIO4
|
|
id: shelly_1_relay
|
|
|
|
light:
|
|
- platform: binary
|
|
name: "Living Room Light (Shelly)"
|
|
output: shelly_1_relay
|
|
id: lightid
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO5
|
|
#mode: INPUT_PULLUP
|
|
#inverted: True
|
|
name: "Switch Shelly 1"
|
|
on_state:
|
|
then:
|
|
- light.toggle: lightid
|
|
internal: true
|
|
id: switchid
|