Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- esphome:
- name: spot_menor
- platform: ESP8266
- board: esp01_1m
- wifi:
- ssid: !secret wifi
- password: !secret wifi_pw
- # Enable fallback hotspot (captive portal) in case wifi connection fails
- ap:
- ssid: "Spot Menor Hotspot"
- password: "editado"
- captive_portal:
- # Enable logging
- logger:
- # Enable Home Assistant API
- api:
- ota:
- status_led:
- pin:
- number: GPIO13
- inverted: true
- output:
- - platform: gpio
- id: relay_1
- pin: GPIO12
- light:
- - platform: binary
- id: light_1
- name: 'Spot Menor'
- output: relay_1
- binary_sensor:
- - platform: gpio
- pin: GPIO00
- id: reset
- internal: true
- filters:
- - invert:
- - delayed_off: 10ms
- on_press:
- - light.toggle:
- id: light_1
- - platform: gpio
- name: 'Spot Menor'
- pin: GPIO04
- id: switch_1
- on_press:
- then:
- # - switch.turn_on:
- - light.toggle:
- id: light_1
- on_release:
- then:
- # - switch.turn_off:
- - light.toggle:
- id: light_1
- sensor:
- - platform: wifi_signal
- name: "Spot Menor Wifi"
- update_interval: 60s
- - platform: uptime
- name: "Sport Menor Uptime"
- text_sensor:
- - platform: version
- name: "Spot Menor Versão ESPHome"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement