Prechádzať zdrojové kódy

Update deurbel.yaml

I removed the delayed _on. As all you need is contact, and 1 or 10 within a second doesn't matter, as it rings only one time.
Also changed the delay from 1000ms to 500ms. The doorbell I've got is quiet anoying and 1/2 a second is long enough. Ofcourse, use your own settings here ;)
zuidwijk 6 rokov pred
rodič
commit
bebec61741
1 zmenil súbory, kde vykonal 2 pridanie a 2 odobranie
  1. 2 2
      deurbel.yaml

+ 2 - 2
deurbel.yaml

@@ -31,7 +31,7 @@ binary_sensor:
     name: "Deurbel" # DOORBELL BUTTON
     #device_class: window
     filters:
-      - delayed_on: 100ms   # THIS DOES THE DEBOUNCE
+#      - delayed_on: 100ms   # THIS DOES THE DEBOUNCE <-- disabled, not needed as delayed_off prevents from...
       - delayed_off: 5000ms # THIS PREVENTS FROM MULTIPLE RANGS
     on_press:
       then:
@@ -40,7 +40,7 @@ binary_sensor:
               binary_sensor.is_off: mute # IF MUTE DONT RING
             then:
               - switch.turn_on: relay
-              - delay: 1000ms
+              - delay: 500ms
               - switch.turn_off: relay
   - platform: homeassistant
     name: "Input Boolean From Home Assistant"