From: Giorgio Ravera Date: Thu, 13 Jun 2019 08:58:04 +0000 (+0200) Subject: used zone trigger for automation and create away mode automation X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=3176485e920a0c4ca0fadef9e9ac39607999a9b4;p=homeassistant.git used zone trigger for automation and create away mode automation --- diff --git a/automation/home_assistant.yaml b/automation/home_assistant.yaml index 2705382c..3536c348 100644 --- a/automation/home_assistant.yaml +++ b/automation/home_assistant.yaml @@ -56,7 +56,7 @@ # Home Assistant: Management of Day/Night Mode ###################################################################### -- alias: "Home Assistant: Modalità giorno/Notte" +- alias: "Home Assistant: Modalità Giorno/Notte" initial_state: 'on' trigger: @@ -84,6 +84,29 @@ - service: script.volume_manager +###################################################################### +# Home Assistant: Management Away Mode +###################################################################### + +- alias: "Home Assistant: Modalità Vacanza" + initial_state: 'on' + + trigger: + - platform: zone + entity_id: + - device_tracker.google_maps_115265981849847357125 + - device_tracker.google_maps_103158638433668748797 + # - device_tracker.google_maps_113099283296073047871 + zone: zone.casa + event: enter + + condition: [] + + action: + - service: input_boolean.turn_off + data: + entity_id: input_boolean.home_mode_away + ###################################################################### # Home Assistant: Management of Speech Notifications ###################################################################### diff --git a/automation/speech.yaml b/automation/speech.yaml index 829f5187..53bd522f 100644 --- a/automation/speech.yaml +++ b/automation/speech.yaml @@ -3,20 +3,19 @@ # # Operations: # - script.speech_engine -# - disable away mode ###################################################################### - alias: Saluto di benvenuto initial_state: 'on' trigger: - - platform: state - entity_id: + - platform: zone + entity_id: - device_tracker.google_maps_115265981849847357125 - device_tracker.google_maps_103158638433668748797 # - device_tracker.google_maps_113099283296073047871 - to: 'Casa' - + zone: zone.casa + event: enter # - platform: state # entity_id: # - device_tracker.s9 @@ -89,10 +88,6 @@ {{ greeting_sentence(name) }} enable_greeting: 0 - - service: input_boolean.turn_off - data: - entity_id: input_boolean.home_mode_away - ###################################################################### # Hourly message #