69 lines
1.2 KiB
YAML
69 lines
1.2 KiB
YAML
substitutions:
|
|
device_name: shelly_i3_87_61
|
|
device_ip: 192.168.87.61
|
|
|
|
esphome:
|
|
name: ${device_name}
|
|
platform: ESP8266
|
|
board: esp01_1m
|
|
board_flash_mode: dout
|
|
platformio_options:
|
|
upload_speed: 115200
|
|
|
|
wifi:
|
|
ssid: "Meneely"
|
|
password: "punxsutawney1"
|
|
manual_ip:
|
|
static_ip: ${device_ip}
|
|
gateway: 192.168.86.1
|
|
subnet: 255.255.255.0
|
|
# Enable fallback hotspot (captive portal) in case wifi connection fails
|
|
ap:
|
|
ssid: "ESPHOME"
|
|
password: "12345678"
|
|
|
|
logger:
|
|
|
|
api:
|
|
reboot_timeout: 15min
|
|
|
|
ota:
|
|
|
|
# the web_server & sensor components can be removed without affecting core functionaility.
|
|
|
|
web_server:
|
|
port: 80
|
|
|
|
sensor:
|
|
- platform: wifi_signal
|
|
name: ${device_name} Wifi Signal Strength
|
|
update_interval: 60s
|
|
- platform: uptime
|
|
name: ${device_name} Uptime
|
|
|
|
binary_sensor:
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO12
|
|
mode: INPUT
|
|
name: 'Switch Middle'
|
|
id: sensoridM
|
|
filters:
|
|
- delayed_on_off: 50ms
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO13
|
|
mode: INPUT
|
|
name: 'Switch L'
|
|
id: sensoridL
|
|
filters:
|
|
- delayed_on_off: 50ms
|
|
- platform: gpio
|
|
pin:
|
|
number: GPIO14
|
|
mode: INPUT
|
|
name: 'Switch T'
|
|
id: sensoridT
|
|
filters:
|
|
- delayed_on_off: 50ms
|