From: Giorgio Ravera Date: Tue, 23 May 2023 22:47:49 +0000 (+0200) Subject: Fixed other yaml warning X-Git-Url: http://git.giorgioravera.it/?a=commitdiff_plain;h=612620872c0b9301f3978a592942f1b4ac8b0666;p=homeassistant.git Fixed other yaml warning --- diff --git a/packages/away_mode/away_mode_climate.yaml b/packages/away_mode/away_mode_climate.yaml index eb72cc06..048ff03a 100644 --- a/packages/away_mode/away_mode_climate.yaml +++ b/packages/away_mode/away_mode_climate.yaml @@ -20,26 +20,26 @@ automation: action: - choose: - # Switch On - - conditions: - - condition: state - entity_id: input_boolean.home_mode_away - state: "on" - sequence: - - service: script.turn_on - data: - entity_id: script.climate_away_mode_on - # Switch Off - - conditions: - - condition: and - conditions: + # Switch On + - conditions: - condition: state entity_id: input_boolean.home_mode_away - state: "off" - - condition: state - entity_id: input_boolean.central_heating - state: 'on' - sequence: - - service: script.turn_on - data: - entity_id: script.climate_away_mode_off + state: "on" + sequence: + - service: script.turn_on + data: + entity_id: script.climate_away_mode_on + # Switch Off + - conditions: + - condition: and + conditions: + - condition: state + entity_id: input_boolean.home_mode_away + state: "off" + - condition: state + entity_id: input_boolean.central_heating + state: 'on' + sequence: + - service: script.turn_on + data: + entity_id: script.climate_away_mode_off diff --git a/packages/central_heating.yaml b/packages/central_heating.yaml index 4dfa8a42..d44471b4 100644 --- a/packages/central_heating.yaml +++ b/packages/central_heating.yaml @@ -46,27 +46,27 @@ automation: action: - choose: - # Switch on - - conditions: "{{ now().month == 11 and now().day == 1 and is_state('input_boolean.central_heating', 'off') }}" - sequence: - - service: input_boolean.turn_on - data_template: - entity_id: input_boolean.central_heating - - service: script.notify_text - data_template: - title: "Home Assistant - Riscaldamento Centralizzato" - message: "Il riscaldamento centralizzato è stato acceso" + # Switch on + - conditions: "{{ now().month == 11 and now().day == 1 and is_state('input_boolean.central_heating', 'off') }}" + sequence: + - service: input_boolean.turn_on + data_template: + entity_id: input_boolean.central_heating + - service: script.notify_text + data_template: + title: "Home Assistant - Riscaldamento Centralizzato" + message: "Il riscaldamento centralizzato è stato acceso" - # Switch off - - conditions: "{{ now().month == 4 and now().day == 15 and is_state('input_boolean.central_heating', 'on')}}" - sequence: - - service: input_boolean.turn_off - data_template: - entity_id: input_boolean.central_heating - - service: script.notify_text - data_template: - title: "Home Assistant - Riscaldamento Centralizzato" - message: "Il riscaldamento centralizzato è stato spento" + # Switch off + - conditions: "{{ now().month == 4 and now().day == 15 and is_state('input_boolean.central_heating', 'on')}}" + sequence: + - service: input_boolean.turn_off + data_template: + entity_id: input_boolean.central_heating + - service: script.notify_text + data_template: + title: "Home Assistant - Riscaldamento Centralizzato" + message: "Il riscaldamento centralizzato è stato spento" ###################################################################### # Central Heating Package - Logbook diff --git a/packages/mercedes/mercedes_customizations.yaml b/packages/mercedes/mercedes_customizations.yaml index 314aad81..7c14a301 100644 --- a/packages/mercedes/mercedes_customizations.yaml +++ b/packages/mercedes/mercedes_customizations.yaml @@ -44,7 +44,8 @@ homeassistant: friendly_name: Pneumatici device_class: problem #icon: mdi:car-tire-alert - #tirepressureRearLeft, tirepressureRearRight, tirepressureFrontRight, tirepressureFrontLeft, tireMarkerFrontRight, tireMarkerFrontLeft,tireMarkerRearLeft, tireMarkerRearRight, tirewarningsrdk, tirewarningsprw, tireTemperatureRearLeft, tireTemperatureFrontRight, + #tirepressureRearLeft, tirepressureRearRight, tirepressureFrontRight, tirepressureFrontLeft, tireMarkerFrontRight, tireMarkerFrontLeft,tireMarkerRearLeft, tireMarkerRearRight, + #tirewarningsrdk, tirewarningsprw, tireTemperatureRearLeft, tireTemperatureFrontRight, #tireTemperatureRearRight, tireTemperatureFrontLeft # Finestrini - windowsClosed diff --git a/packages/netatmo/netatmo_away.yaml b/packages/netatmo/netatmo_away.yaml index 5bb1a3f3..131cca63 100644 --- a/packages/netatmo/netatmo_away.yaml +++ b/packages/netatmo/netatmo_away.yaml @@ -55,26 +55,26 @@ automation: action: - choose: - # Switch On - - conditions: - - condition: state - entity_id: input_boolean.central_heating - state: "off" - sequence: - - service: script.turn_on - data: - entity_id: script.climate_away_mode_on - # Switch Off - - conditions: - - condition: and - conditions: + # Switch On + - conditions: - condition: state entity_id: input_boolean.central_heating - state: "on" - - condition: state - entity_id: input_boolean.home_mode_away - state: 'off' - sequence: - - service: script.turn_on - data: - entity_id: script.climate_away_mode_off + state: "off" + sequence: + - service: script.turn_on + data: + entity_id: script.climate_away_mode_on + # Switch Off + - conditions: + - condition: and + conditions: + - condition: state + entity_id: input_boolean.central_heating + state: "on" + - condition: state + entity_id: input_boolean.home_mode_away + state: 'off' + sequence: + - service: script.turn_on + data: + entity_id: script.climate_away_mode_off diff --git a/scripts/notify.yaml b/scripts/notify.yaml index d3b598ff..3b298231 100644 --- a/scripts/notify.yaml +++ b/scripts/notify.yaml @@ -87,8 +87,8 @@ notify_text: - choose: - conditions: - - condition: template - value_template: "{{ enable_telegram }}" + - condition: template + value_template: "{{ enable_telegram }}" sequence: - service: notify.telegram data_template: