Advertisement
Guest User

Untitled

a guest
Jan 23rd, 2020
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1.  
  2. ota:
  3. binary_sensor:
  4. - platform: gpio
  5. pin:
  6. number: GPIO0
  7. mode: INPUT_PULLUP
  8. inverted: True
  9. name: "Garasje 4CH Button 1"
  10. - platform: gpio
  11. pin:
  12. number: GPIO9
  13. mode: INPUT_PULLUP
  14. inverted: True
  15. name: "Garasje 4CH Button 2"
  16. # - platform: gpio
  17. # pin:
  18. # number: GPIO10
  19. # mode: INPUT_PULLUP
  20. # inverted: True
  21. # name: "Garasje 4CH Button 3"
  22. - platform: gpio
  23. pin:
  24. number: GPIO14
  25. mode: INPUT_PULLUP
  26. inverted: True
  27. name: "Garasje 4CH Button 4"
  28. - platform: status
  29. name: "Garasje 4CH Status"
  30.  
  31. switch:
  32. - platform: gpio
  33. name: "Garasje 4CH Relay 1"
  34. pin: GPIO12
  35. id: relay_1
  36. - platform: gpio
  37. name: "Garasje 4CH Relay 2"
  38. pin: GPIO5
  39. id: relay_2
  40. - platform: gpio
  41. name: "Garasje 4CH Relay 3"
  42. pin: GPIO4
  43. id: relay_left
  44. - platform: gpio
  45. name: "Garasje 4CH Relay 4"
  46. pin: GPIO15
  47. id: relay_right
  48. #
  49. - platform: template
  50. icon: "mdi:arrow-up-down-bold-outline"
  51. name: "Garasjeport venstre"
  52. turn_on_action:
  53. - switch.turn_on: relay_left
  54. - delay: 500ms
  55. - switch.turn_off: relay_left
  56. - platform: template
  57. icon: "mdi:arrow-up-down-bold-outline"
  58. name: "Garasjeport høyre"
  59. turn_on_action:
  60. - switch.turn_on: relay_right
  61. - delay: 500ms
  62. - switch.turn_off: relay_right
  63. - platform: template
  64. icon: "mdi:garage"
  65. name: "Begge porter"
  66. turn_on_action:
  67. - switch.turn_on: relay_2
  68. - delay: 500ms
  69. - switch.turn_off: relay_2
  70.  
  71. sensor:
  72. - platform: uptime
  73. name: "Garasje 4ch Uptime"
  74.  
  75. - platform: wifi_signal
  76. name: "Garasje 4ch WiFi Signal"
  77. update_interval: 60s
  78. - platform: dht
  79. pin: GPIO10
  80. model: DHT11
  81. temperature:
  82. name: "Garasje temperatur"
  83. humidity:
  84. name: "Garasje fuktighet"
  85. update_interval: 60s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement