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
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
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
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
- choose:
- conditions:
- - condition: template
- value_template: "{{ enable_telegram }}"
+ - condition: template
+ value_template: "{{ enable_telegram }}"
sequence:
- service: notify.telegram
data_template: