Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ota:
- binary_sensor:
- - platform: gpio
- pin:
- number: GPIO0
- mode: INPUT_PULLUP
- inverted: True
- name: "Garasje 4CH Button 1"
- - platform: gpio
- pin:
- number: GPIO9
- mode: INPUT_PULLUP
- inverted: True
- name: "Garasje 4CH Button 2"
- # - platform: gpio
- # pin:
- # number: GPIO10
- # mode: INPUT_PULLUP
- # inverted: True
- # name: "Garasje 4CH Button 3"
- - platform: gpio
- pin:
- number: GPIO14
- mode: INPUT_PULLUP
- inverted: True
- name: "Garasje 4CH Button 4"
- - platform: status
- name: "Garasje 4CH Status"
- switch:
- - platform: gpio
- name: "Garasje 4CH Relay 1"
- pin: GPIO12
- id: relay_1
- - platform: gpio
- name: "Garasje 4CH Relay 2"
- pin: GPIO5
- id: relay_2
- - platform: gpio
- name: "Garasje 4CH Relay 3"
- pin: GPIO4
- id: relay_left
- - platform: gpio
- name: "Garasje 4CH Relay 4"
- pin: GPIO15
- id: relay_right
- #
- - platform: template
- icon: "mdi:arrow-up-down-bold-outline"
- name: "Garasjeport venstre"
- turn_on_action:
- - switch.turn_on: relay_left
- - delay: 500ms
- - switch.turn_off: relay_left
- - platform: template
- icon: "mdi:arrow-up-down-bold-outline"
- name: "Garasjeport høyre"
- turn_on_action:
- - switch.turn_on: relay_right
- - delay: 500ms
- - switch.turn_off: relay_right
- - platform: template
- icon: "mdi:garage"
- name: "Begge porter"
- turn_on_action:
- - switch.turn_on: relay_2
- - delay: 500ms
- - switch.turn_off: relay_2
- sensor:
- - platform: uptime
- name: "Garasje 4ch Uptime"
- - platform: wifi_signal
- name: "Garasje 4ch WiFi Signal"
- update_interval: 60s
- - platform: dht
- pin: GPIO10
- model: DHT11
- temperature:
- name: "Garasje temperatur"
- humidity:
- name: "Garasje fuktighet"
- update_interval: 60s
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement