Created
July 14, 2020 11:30
-
-
Save bessarabov/744dfa8918cd1ab4b87637d705f9c2fd to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
esphome: | |
name: sonoffbasic | |
platform: ESP8266 | |
board: esp01_1m | |
board_flash_mode: dout | |
wifi: | |
ssid: !secret wifi_ssid | |
password: !secret wifi_password | |
manual_ip: | |
static_ip: 192.168.31.61 | |
gateway: 192.168.31.1 | |
subnet: 255.255.255.0 | |
logger: | |
api: | |
password: !secret api_password | |
services: | |
- service: tradfri_bulb_pairing | |
then: | |
- switch.turn_on: relay | |
- delay: 2s | |
- switch.turn_off: relay | |
- delay: 1000ms | |
- switch.turn_on: relay | |
- delay: 250ms | |
- switch.turn_off: relay | |
- delay: 1000ms | |
- switch.turn_on: relay | |
- delay: 250ms | |
- switch.turn_off: relay | |
- delay: 1000ms | |
- switch.turn_on: relay | |
- delay: 250ms | |
- switch.turn_off: relay | |
- delay: 1000ms | |
- switch.turn_on: relay | |
- delay: 250ms | |
- switch.turn_off: relay | |
- delay: 1000ms | |
- switch.turn_on: relay | |
- delay: 250ms | |
- switch.turn_off: relay | |
- delay: 1000ms | |
- switch.turn_on: relay | |
ota: | |
password: !secret ota_password | |
binary_sensor: | |
- platform: gpio | |
pin: | |
number: GPIO0 | |
mode: INPUT_PULLUP | |
inverted: True | |
name: "Sonoff Button" | |
on_press: | |
- switch.toggle: relay | |
switch: | |
- platform: gpio | |
id: relay | |
pin: GPIO12 | |
name: "Sonoff Relay" | |
output: | |
- platform: gpio | |
id: basic_green_led | |
pin: | |
number: GPIO13 | |
inverted: True | |
light: | |
- platform: binary | |
name: "Sonoff Green LED" | |
output: basic_green_led | |
id: led | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment