J’apporte également ma pierre a l’édifice:
1 seul automatisation pour tout mes volets:
declancheur:
- Soleil levée
- Soleil Couché
- Alert Meteo france (canicule)
- temps /1 minutes
4 Mode:
- Normal (lève et ferme les volets après levée soleil)
- Auto froid (tien compte de la canicule également)
- Auto chauf (si volet isolant alors les volets reste fermé au levée du soleil)
- Manuel
Package:
cover:
############################################################
## COVERS GROUPS ##
############################################################
- platform: group
name: Volets orientés sud
entities:
- cover.module_volet_salon
#- cover.module_volet_salon
- platform: group
name: Volets orientés ouest
entities:
- cover.module_volet_sejour
#- cover.module_volet_sejour
Group (spécial Cover)
group:
############################################################
## ALL COVERS GROUPS ##
############################################################
all_covers_sud:
name: Volets orientés sud
entities:
- cover.module_volet_salon
all_covers_ouest:
name: Volets orientés ouest
entities:
- cover.module_volet_sejour
automatisation:
############################################################
## COVER COUNT UPDATE ##
############################################################
- alias: 'Mise a jour all_covers_sud'
mode: single
max_exceeded: silent
initial_state: 'on'
trigger:
- platform: state
entity_id:
- cover.module_volet_salon
action:
- service: homeassistant.update_entity
data_template:
entity_id: sensor.all_covers_sud
#######################
AUTOMATISATION
#######################
alias: Volet
description: ''
trigger:
- platform: sun
event: sunrise
- platform: sun
event: sunset
- platform: state
entity_id:
- sensor.xx_weather_alert
attribute: Canicule
- platform: time_pattern
minutes: /1
condition: []
action:
- choose:
- conditions:
- condition: sun
after: sunset
after_offset: 00:15:00
sequence:
- service: cover.close_cover
data: {}
target:
entity_id:
- cover.volets_orientes_sud
- cover.volets_orientes_ouest
- conditions:
- condition: sun
after: sunrise
after_offset: 00:30:00
before: sunset
- condition: not
conditions:
- condition: state
entity_id: binary_sensor.soleil_volets_ouest
state: 'on'
- condition: state
entity_id: cover.volets_orientes_ouest
state: open
- condition: state
entity_id: input_select.modevoletouest
state: Auto froid
- condition: state
entity_id: sensor.xx_weather_alert
attribute: Canicule
state: Vert
sequence:
- service: cover.set_cover_position
data:
position: 100
target:
entity_id: cover.volets_orientes_ouest
- conditions:
- condition: sun
before: sunset
after: sunrise
- condition: not
conditions:
- condition: state
entity_id: binary_sensor.soleil_volets_sud
state: 'on'
- condition: state
state: open
entity_id: group.all_covers_sud
- condition: and
conditions:
- condition: state
entity_id: input_select.modevoletsud
state: Auto froid
- condition: state
entity_id: sensor.xx_weather_alert
attribute: Canicule
state: Vert
sequence:
- service: cover.set_cover_position
data:
position: 100
target:
entity_id: cover.volets_orientes_sud
- conditions:
- condition: state
entity_id: binary_sensor.soleil_volets_sud
state: 'on'
- condition: and
conditions:
- condition: state
entity_id: input_select.modevoletsud
state: Auto froid
- condition: device
device_id: 012fbd33f6b7cc0f9b5237f2a376a5a8
domain: cover
entity_id: cover.module_volet_salon
type: is_position
above: 50
sequence:
- service: cover.set_cover_position
data:
position: 0
target:
entity_id: cover.volets_orientes_sud
- conditions:
- condition: state
entity_id: binary_sensor.soleil_volets_ouest
state: 'on'
- condition: and
conditions:
- condition: state
entity_id: input_select.modevoletouest
state: Auto froid
- condition: state
state: open
entity_id: group.all_covers_ouest
sequence:
- service: cover.set_cover_position
data:
position: 0
target:
entity_id: cover.volets_orientes_ouest
- conditions:
- condition: state
entity_id: input_select.modevoletsud
state: Normal
- condition: sun
before: sunset
after: sunrise
- condition: device
device_id: 012fbd33f6b7cc0f9b5237f2a376a5a8
domain: cover
entity_id: cover.module_volet_salon
type: is_position
below: 20
sequence:
- service: cover.set_cover_position
data:
position: 100
target:
entity_id: cover.volets_orientes_sud
- conditions:
- condition: state
entity_id: input_select.modevoletouest
state: Normal
- condition: sun
before: sunset
after: sunrise
- condition: device
device_id: be052f85354620b14a75e06914a6140d
domain: cover
entity_id: cover.module_volet_sejour
type: is_position
below: 20
sequence:
- service: cover.set_cover_position
data:
position: 100
target:
entity_id: cover.volets_orientes_ouest
- conditions:
- condition: sun
before: sunset
after: sunrise
- condition: state
entity_id: input_select.modevoletsud
state: Auto chauf
- condition: state
entity_id: group.volets_sud
state: open
sequence:
- service: cover.set_cover_position
data:
position: 0
target:
entity_id: cover.volets_orientes_sud
- conditions:
- condition: sun
before: sunset
after: sunrise
- condition: state
entity_id: input_select.modevoletouest
state: Auto chauf
- condition: state
entity_id: group.volets_ouest
state: open
sequence:
- service: cover.set_cover_position
data:
position: 0
target:
entity_id: cover.volets_orientes_ouest
default: []
mode: single
Bonne lecture