Advertisement
Guest User

Untitled

a guest
Oct 13th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. esphomeyaml:
  2. name: sonoff4chsalon
  3. platform: ESP8266
  4. board: esp01_1m
  5. board_flash_mode: dout
  6. # arduino_version: 2.3.0
  7. esphomelib_version:
  8. repository: https://github.com/OttoWinter/esphomelib.git
  9. tag: v1.8.1
  10.  
  11.  
  12. wifi:
  13. ssid: 'xxx'
  14. password: 'xxx'
  15. # Optional manual IP
  16. manual_ip:
  17. static_ip: 192.168.125.17
  18. gateway: 192.168.125.254
  19. subnet: 255.255.255.0
  20.  
  21. mqtt:
  22. broker: '192.168.125.28'
  23. username: 'xxx'
  24. password: 'xxx'
  25.  
  26. # Example configuration entry
  27. debug:
  28.  
  29. # Logger must be at least debug (default)
  30. logger:
  31.  
  32.  
  33. ota:
  34.  
  35. binary_sensor:
  36. - platform: gpio
  37. pin:
  38. number: GPIO0
  39. mode: INPUT_PULLUP
  40. inverted: True
  41. name: "Sonoff 4CH Button 1"
  42. - platform: gpio
  43. pin:
  44. number: GPIO9
  45. mode: INPUT_PULLUP
  46. inverted: True
  47. name: "Sonoff 4CH Button 2"
  48. - platform: gpio
  49. pin:
  50. number: GPIO10
  51. mode: INPUT_PULLUP
  52. inverted: True
  53. name: "Sonoff 4CH Button 3"
  54. - platform: gpio
  55. pin:
  56. number: GPIO14
  57. mode: INPUT_PULLUP
  58. inverted: True
  59. name: "Sonoff 4CH Button 4"
  60. - platform: status
  61. name: "Sonoff 4CH Status"
  62.  
  63. switch:
  64. - platform: gpio
  65. name: "Sonoff 4CH Relay 1"
  66. pin: GPIO12
  67. - platform: gpio
  68. name: "Sonoff 4CH Relay 2"
  69. pin: GPIO5
  70. - platform: gpio
  71. name: "Sonoff 4CH Relay 3"
  72. pin: GPIO4
  73. - platform: gpio
  74. name: "Sonoff 4CH Relay 4"
  75. pin: GPIO15
  76.  
  77. output:
  78. # Register the blue LED as a dimmable output ....
  79. - platform: esp8266_pwm
  80. id: blue_led
  81. pin: GPIO13
  82. inverted: True
  83.  
  84. light:
  85. # ... and then make a light out of it.
  86. - platform: monochromatic
  87. name: "Sonoff 4CH Blue LED"
  88. output: blue_led
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement