Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- binary_sensor:
- - platform: gpio
- pin:
- number: D1
- mode: INPUT_PULLUP
- inverted: True
- name: "Status d1"
- device_class: light
- - platform: gpio
- pin:
- number: D7
- mode: INPUT_PULLUP
- inverted: true
- name: "test 1 WL"
- on_press:
- then:
- - switch.turn_on: test1
- - delay: 400ms
- - switch.turn_off: test1
- ###################
- switch:
- - platform: gpio
- pin: D5
- name: "test 1"
- id: test1
- - platform: template
- name: "test1 template"
- icon: "mdi:lamp"
- turn_on_action:
- - switch.turn_on: test1
- - delay: 400ms
- - switch.turn_off: test1
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement