From: Giorgio Ravera Date: Mon, 11 Feb 2019 21:44:25 +0000 (+0100) Subject: Minor changes X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=78417f7e73abf54736fc0c54611f0d269ac54113;p=homeassistant.git Minor changes --- diff --git a/automation/climate.yaml b/automation/climate.yaml index b6149279..b97b124a 100644 --- a/automation/climate.yaml +++ b/automation/climate.yaml @@ -3,7 +3,9 @@ # - script.climate_daily_schedule ###################################################################### -- alias: "Termosifoni: Schedule Feriale" +- alias: "Termosifoni: Schedulazione giornaliera feriale" + initial_state: 'off' + trigger: - platform: time at: '06:30:00' @@ -15,9 +17,9 @@ at: '18:30:00' - platform: time at: '22:00:00' - - platform: state - entity_id: input_boolean.home_mode_away - to: 'off' +# - platform: state +# entity_id: input_boolean.home_mode_away +# to: 'off' condition: condition: and @@ -54,7 +56,7 @@ temp1: 19 temp2: 18 temp3: 19 - temp4: 29.5 + temp4: 19.5 temp5: 16 - service: script.climate_daily_schedule @@ -77,24 +79,50 @@ ###################################################################### # Climate: Away Mode +# - climate.set_operation_mode # - climate.set_temperature ###################################################################### -- alias: "Termosifoni: modalità vacanza" +- alias: "Termosifoni: Modalità vacanza" + initial_state: 'off' + trigger: - platform: state entity_id: input_boolean.home_mode_away to: 'on' + - platform: state + entity_id: input_boolean.home_mode_away + to: 'off' condition: [] action: + - service: climate.set_operation_mode + data_template: + entity_id: + - climate.cucina_termostato_cucina + - climate.sala_termostato_sala + - climate.bagno_termostato_bagno + - climate.studio_termostato_studio + - climate.camera_termostato_camera + operation_mode: >- + {% if trigger.to_state.state == 'on' %} + vacation + {% else %} + auto + {% endif %} + - service: climate.set_temperature - data: + data_template: entity_id: - climate.cucina_termostato_cucina - climate.sala_termostato_sala - climate.bagno_termostato_bagno - climate.studio_termostato_studio - climate.camera_termostato_camera - temperature: 16 + temperature: >- + {% if trigger.to_state.state == 'on' %} + 10 + {% else %} + 19 + {% endif %} diff --git a/automation/home_assistant.yaml b/automation/home_assistant.yaml index 5e80f21f..e7053cea 100644 --- a/automation/home_assistant.yaml +++ b/automation/home_assistant.yaml @@ -2,7 +2,7 @@ # Home Assistant: Management of the Home Mode Button ###################################################################### -- alias: "Home Assistant: Cambio Modalità On" +- alias: "Home Assistant: Cambio modalità On" trigger: platform: state entity_id: input_boolean.home_mode_day, @@ -17,7 +17,7 @@ {% set booleans = [ 'input_boolean.home_mode_day', 'input_boolean.home_mode_night', 'input_boolean.home_mode_away' ] | reject('equalto', trigger.entity_id) %} {{ booleans | list | join(', ') }} -- alias: "Home Assistant: Cambio Modalità Off" +- alias: "Home Assistant: Cambio modalità Off" trigger: platform: state entity_id: input_boolean.home_mode_day, @@ -52,7 +52,7 @@ # Home Assistant: Management of Day/Night Mode ###################################################################### -- alias: "Home Assistant: Modalità Giorno/Notte" +- alias: "Home Assistant: Modalità giorno/Notte" trigger: - platform: time at: '08:00:00' @@ -103,7 +103,7 @@ # Home Assistant: Update Available Notifications ###################################################################### -- alias: "Home Assistant: Notifica Aggiornamento" +- alias: "Home Assistant: Notifica aggiornamento" trigger: - platform: state entity_id: updater.updater @@ -120,7 +120,7 @@ # - Sync with Google Assistant ###################################################################### -- alias: "Home Assistant: startup automations" +- alias: "Home Assistant: Startup automations" trigger: - platform: homeassistant event: start diff --git a/automation/media_player.yaml b/automation/media_player.yaml index 27a88205..33721107 100644 --- a/automation/media_player.yaml +++ b/automation/media_player.yaml @@ -3,7 +3,7 @@ # - script.tv_change_channel ###################################################################### -- alias: "TV: cambia canale" +- alias: "TV: Cambia canale" trigger: - platform: state entity_id: input_text.tv_change_channel @@ -21,7 +21,7 @@ # - script.notify_voice ###################################################################### -- alias: "Google Home: pronuncia testo" +- alias: "Google Home: Pronuncia testo" trigger: - platform: state entity_id: input_text.google_home_speak diff --git a/automation/night.yaml b/automation/night.yaml index 5afa9749..f6f44f4e 100644 --- a/automation/night.yaml +++ b/automation/night.yaml @@ -3,7 +3,7 @@ # - Switch off all covers ###################################################################### -- alias: "Notte: Chiusura Tapparelle" +- alias: "Notte: Chiusura tapparelle" initial_state: 'off' trigger: diff --git a/script/climate.yaml b/script/climate.yaml index bed509e4..80c20786 100644 --- a/script/climate.yaml +++ b/script/climate.yaml @@ -9,7 +9,7 @@ # - temp5 # # Operations: -# - cover.{{modus}}_cover +# - climate.set_temperature ###################################################################### climate_daily_schedule: