Adding Dog mode - For those late night bathroom breaks

This commit is contained in:
Jeffrey Stone 2020-03-25 21:55:27 -04:00
parent b03d3a6566
commit 455c95eb86
1 changed files with 21 additions and 0 deletions

View File

@ -30,6 +30,10 @@ input_boolean:
security_issue: security_issue:
name: Security Issue name: Security Issue
icon: mdi:alert-circle-outline icon: mdi:alert-circle-outline
dog_mode:
name: Dog Mode
icon: mdi:dog-side
sensor: sensor:
- platform: mqtt - platform: mqtt
@ -262,6 +266,9 @@ automation:
- condition: state - condition: state
entity_id: input_boolean.sentry_mode entity_id: input_boolean.sentry_mode
state: 'on' state: 'on'
- condition: state
entity_id: input_boolean.dog_mode
state: 'off'
action: action:
- service: script.jarvis_alert - service: script.jarvis_alert
data_template: data_template:
@ -364,6 +371,20 @@ automation:
"Guest Mode is on." "Guest Mode is on."
] | random }} ] | random }}
- id: dog_mode_deactivated
alias: Dog mode Deactivated
initial_state: true
trigger:
- platform: state
entity_id: input_boolean.dog_mode
to: 'on'
action:
- delay:
minutes: 20
- service: input_boolean.turn_off
entity_id: input_boolean.dog_mode
- id: security_alarm_on - id: security_alarm_on
alias: Security alarm On alias: Security alarm On
initial_state: true initial_state: true