Advertisement
Guest User

Config Spot Menor

a guest
Apr 5th, 2020
310
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.30 KB | None | 0 0
  1. esphome:
  2.   name: spot_menor
  3.   platform: ESP8266
  4.   board: esp01_1m
  5.  
  6. wifi:
  7.   ssid: !secret wifi
  8.   password: !secret wifi_pw
  9.  
  10.   # Enable fallback hotspot (captive portal) in case wifi connection fails
  11.   ap:
  12.     ssid: "Spot Menor Hotspot"
  13.     password: "editado"
  14.  
  15. captive_portal:
  16. # Enable logging
  17. logger:
  18. # Enable Home Assistant API
  19. api:
  20. ota:
  21. status_led:
  22.   pin:
  23.     number: GPIO13
  24.     inverted: true
  25.  
  26. output:
  27.   - platform: gpio
  28.     id: relay_1
  29.     pin: GPIO12
  30.  
  31. light:
  32.   - platform: binary
  33.     id: light_1
  34.     name: 'Spot Menor'
  35.     output: relay_1    
  36.  
  37. binary_sensor:
  38.   - platform: gpio
  39.     pin: GPIO00
  40.     id: reset
  41.     internal: true
  42.     filters:
  43.       - invert:
  44.       - delayed_off: 10ms
  45.     on_press:
  46.       - light.toggle:
  47.           id: light_1
  48.  
  49.   - platform: gpio
  50.     name: 'Spot Menor'
  51.     pin: GPIO04
  52.     id: switch_1
  53.     on_press:
  54.       then:
  55. #        - switch.turn_on:
  56.         - light.toggle:
  57.             id: light_1
  58.     on_release:
  59.       then:
  60. #        - switch.turn_off:
  61.         - light.toggle:
  62.             id: light_1
  63.  
  64. sensor:
  65.   - platform: wifi_signal
  66.     name: "Spot Menor Wifi"
  67.     update_interval: 60s
  68.  
  69.   - platform: uptime
  70.     name: "Sport Menor Uptime"
  71.  
  72. text_sensor:
  73.   - platform: version
  74.     name: "Spot Menor Versão ESPHome"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement