view espNode/sonoff_light.yaml @ 1716:2bed2f68243c

older work
author drewp@bigasterisk.com
date Sun, 07 Aug 2022 02:25:40 -0700
parents bc3516d02762
children c480732442ec
line wrap: on
line source

esphome:
  name: sonoff_4
  platform: esp8266
  board: esp01_1m
  build_path: build

wifi:
  ssid: !secret wifi_ssid
  password: !secret wifi_password
#  use_address: 10.2.0.96
#  domain: '.bigasterisk.com'

mqtt:
  broker: '10.2.0.1'
  port: 1883
  username: ''
  password: ''
  
logger:
  baud_rate: 115200
  level: INFO
  
ota:


binary_sensor:
  - platform: gpio
    pin:
      number: GPIO0
      mode: INPUT_PULLUP
      inverted: True
    name: "Sonoff Basic Button"
    on_press:
      - switch.toggle: relay

switch:
  - platform: gpio
    name: "Sonoff Basic Relay"
    pin: GPIO12
    id: relay

status_led:
  pin:
    number: GPIO13
    inverted: yes