Advertisement
Guest User

Untitled

a guest
Feb 21st, 2019
113
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
YAML 1.20 KB | None | 0 0
  1. # esphome config/test8266.yaml config
  2.  
  3. INFO Reading configuration...
  4. INFO Configuration is valid!
  5. esphome:
  6.   name: front_door_relay
  7.   platform: ESP8266
  8.   board: nodemcuv2
  9.   build_path: front_door_relay
  10.   arduino_version: espressif8266@1.8.0
  11.   esphome_core_version:
  12.     branch: dev
  13.     repository: https://github.com/esphome/esphome-core.git
  14.   use_custom_code: false
  15.   board_flash_mode: dout
  16. wifi:
  17.   fast_connect: true
  18.   manual_ip:
  19.     static_ip: 10.11.0.22
  20.     gateway: 10.11.0.1
  21.     subnet: 255.255.0.0
  22.     dns1: 192.168.1.72
  23.     dns2: 192.168.1.1
  24.   domain: .local
  25.   networks:
  26.   - password: basdfasdfbb
  27.     ssid: aaaasdf
  28.   use_address: 10.11.0.22
  29. logger:
  30.   baud_rate: 115200
  31.   hardware_uart: UART0
  32.   tx_buffer_size: 512
  33. api:
  34.   password: bbb
  35.   port: 6053
  36. ota:
  37.   password: bbb
  38.   safe_mode: true
  39. binary_sensor:
  40. - platform: gpio
  41.   name: Front Door switch
  42.   pin:
  43.     number: 12
  44.     mode: INPUT_PULLUP
  45.     inverted: true
  46.   on_press:
  47.   - then:
  48.     - switch.turn_on:
  49.         id: relay
  50.   on_release:
  51.   - then:
  52.     - switch.turn_off:
  53.         id: relay
  54. switch:
  55. - platform: gpio
  56.   name: Front Door Relay
  57.   pin:
  58.     number: 14
  59.     inverted: true
  60.   id: relay
  61.   restore_mode: ALWAYS_OFF
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement