Hey!
I’ve automated my garage door with an input boolean to see if it is open or locked.
When it is “on”, the door is locked, and open when “off”. In HA, the garagedoor is operated by a switch, where i can’t tell if it is open or not, therefore i must use the input boolean.
The problem is when the input boolean is toggled when the garage door is still opening. I suspect my SO press the button twice sometimes, making the input boolean value “flip”, so that HA thinks it is locked, while it’s open. That causes the door to open when both leave the house for example.
Can i disable changes to the input boolean while the script runs or something to solve this problem?
This is my configuration for the garage door:
input_boolean:
garageport:
name: Garageport
icon: mdi:garage
automation:
- id: Garageport
alias: 'Garageport'
trigger:
platform: state
entity_id: input_boolean.garageport
action:
- service: homeassistant.turn_on
entity_id: script.garagescript
script:
garagescript:
alias: garagescript
sequence:
- service: switch.turn_on
entity_id: switch.Garage
- delay:
seconds: 18
- service: switch.turn_off
entity_id: switch.Garage
Thanks!