Making some changes to the Scripts. Shut down the garage lights only when the garage closes.^[[D

This commit is contained in:
ccostan 2021-04-22 21:23:00 -04:00
parent 7c1c35fcdc
commit 0a085502e5
2 changed files with 17 additions and 12 deletions

View File

@ -66,3 +66,5 @@ automation:
entity_id: media_player.stacey_bedroom entity_id: media_player.stacey_bedroom
media_content_id: 'hide garage camera' media_content_id: 'hide garage camera'
media_content_type: custom media_content_type: custom
- service: script.garage_lights_off

View File

@ -109,19 +109,22 @@ automation:
for: '00:02:30' for: '00:02:30'
action: action:
# - service: > - choose:
# {% set hour=states("sensor.time").split(':')[0] | int %} - conditions: "{{ is_state('cover.large_garage_door','closed') }}"
# {% if hour >= 7 and hour <= 9 and states.input_boolean.school_mode.state == 'on'%} sequence:
# input_boolean.turn_off - service: script.speech_engine
# {% else %} data:
# input_boolean.turn_on DoorClosed: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}."
# {% endif %} call_garage_check: 1
# entity_id: input_boolean.alert_mode - delay: "00:20:00"
- service: script.garage_lights_off
default:
- service: script.speech_engine
data:
DoorClosed: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}."
call_garage_check: 1
- service: script.speech_engine
data:
DoorClosed: "The {{ trigger.entity_id.split('.')[1]|replace('_', ' ') }} is now {{ (trigger.to_state.state)|replace('_', ' ') }}."
call_garage_check: 1
################################### ###################################
## Garadget Wind Door Checks - [Garadget](https://amzn.to/2jQLpVQ) ## Garadget Wind Door Checks - [Garadget](https://amzn.to/2jQLpVQ)