Skip to content

Commit

Permalink
Increase minimum Ring to open delay
Browse files Browse the repository at this point in the history
  • Loading branch information
AzonInc committed Aug 16, 2024
1 parent 0dda1b1 commit a62159b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firmware/base.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -337,7 +337,7 @@ binary_sensor:
then:
- switch.turn_off: doorman_ring_to_open

# If delay is 60 seconds, use random delay from 5 to 20 seconds
# If delay is 60 seconds, use random delay from 5 to 15 seconds
- if:
condition:
number.in_range:
Expand All @@ -346,7 +346,7 @@ binary_sensor:
then:
- delay: !lambda "return 5000 + (rand() % 10000);"
else:
- delay: !lambda "return id(doorman_ring_to_open_delay).state*1000;"
- delay: !lambda "return (id(doorman_ring_to_open_delay).state*1000) + 300;"

- tcs_intercom.send:
command: !lambda "return id(first_door_opener_command);"
Expand Down

0 comments on commit a62159b

Please sign in to comment.