Hey Guys,
After update 0.39 everytime the door opens I see the following message in the log:
17-03-05 18:16:57 WARNING (MainThread) [homeassistant.components.script] Script script.door_open already running.
I use the following automation:
#Trigger if door is opened
- alias: 'Trigger if door is closed'
hide_entity: true
trigger:
platform: state
entity_id: sensor.fibaro_system_fgk10x_door_opening_sensor_access_control_2_9
to: '23'
action:
# Cancel timer that is running
- service: script.turn_off
data:
entity_id: script.door_opened_timer
# Set input boolean to off
- service: input_boolean.turn_off
data:
entity_id: input_boolean.front_door_open
#Trigger if door is opened
- alias: 'Trigger if door is opened'
hide_entity: true
trigger:
platform: state
entity_id: sensor.fibaro_system_fgk10x_door_opening_sensor_access_control_2_9
to: '22'
action:
- service: script.turn_on
entity_id: script.door_open
And the following script:
#Script will run if door is open
#Script will cancel excisting timer
#Script will start new timer
alias: "Door open"
sequence:
# Cancel timer that is running
- service: script.turn_off
data:
entity_id: script.door_opened_timer
# Turn on boolean door_closed_check
- service: input_boolean.turn_on
data:
entity_id: input_boolean.front_door_open
# Create a new timer
- service: script.turn_on
data:
entity_id: script.door_opened_timer
And using this timer script:
# Script will run if door is closed
# Script will run 10 minutes
alias: "Door open in last 10 minutes"
sequence:
- delay:
minutes: 10
- service: input_boolean.turn_off
data:
entity_id: input_boolean.door_closed_check
Any idea why I get the message after 0.39?