File: /volume1/docker/homeassistant2025/automations.yaml
- id: '1731234972009'
alias: Déshumidificateur - Départ SdB
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.lumi_weather_v1_e5da_relative_humidity
above: 70
- trigger: state
entity_id:
- sensor.lumi_weather_v1_e5da_relative_humidity
to: '70'
conditions: []
actions:
- type: turn_on
device_id: f977e0f44f3cd31c651bc980c77c1fc4
entity_id: 2a4e595701e1c2c05f5cef896d9bd5c1
domain: switch
mode: restart
- id: '1731363465010'
alias: Déshumidificateur - Arrêt SdB
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.lumi_weather_v1_e5da_relative_humidity
below: 75
conditions: []
actions:
- type: turn_off
device_id: f977e0f44f3cd31c651bc980c77c1fc4
entity_id: 2a4e595701e1c2c05f5cef896d9bd5c1
domain: switch
mode: restart
- id: '1731670408670'
alias: Sauvegarde automatique
description: Tous les jours à minuit, rétention sur 7 jours.
triggers:
- trigger: time
at: 00:00:00
conditions: []
actions:
- action: auto_backup.backup_full
metadata: {}
data:
compressed: true
keep_days: 7
mode: single
- id: '1731753971230'
alias: Reaper Stop Recording - lampe verte
description: ''
triggers:
- type: turned_off
device_id: f650b34349feb9a74d9cff89dd73dbae
entity_id: edcbe42ba3c4e8211a2eb760b17c7364
domain: switch
trigger: device
conditions: []
actions:
- action: script.lumiere_verte
metadata: {}
data: {}
- type: turn_off
device_id: 3576f02e9c714ef9cddf32c66fc9bc4a
entity_id: 57c59125622ca71172fb99e3bc866db2
domain: switch
- delay:
hours: 0
minutes: 1
seconds: 0
milliseconds: 0
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2704
transition: 10
target:
device_id: 71e1e7dbdccfa980b437f28c441a6c7c
mode: restart
- id: '1731939540502'
alias: Prise - Eteindre Bureau Emilie
description: Conso <100W
triggers:
- trigger: numeric_state
entity_id:
- sensor.pc_emilie_puissance
below: 35
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.pc_emilie_prise_1
mode: single
- id: '1731940325537'
alias: Prise - Eteindre Prise TV/Console
description: Conso >50W
triggers:
- trigger: numeric_state
entity_id:
- sensor.prise_tv_ampli_console_puissance
below: 80
enabled: true
conditions:
- condition: device
device_id: 138fc053e4d8a80d84389c282a5711ce
domain: media_player
entity_id: 9427bee65f2186cf9a6677ad68d23e80
type: is_off
enabled: true
- condition: state
entity_id: device_tracker.tv
state: not_home
actions:
- type: turn_off
device_id: 540e72c475410d9922323902d6120b60
entity_id: d449060a83e6313bdef4d29105b1de85
domain: switch
mode: single
- id: '1731940667710'
alias: Rouvrir les volets si température redescend sous 20°C
description: Rouvre les volets si la température descend sous 20°C après avoir dépassé
25°C
triggers:
- entity_id:
- sensor.chalonnes_sur_loire_temperature
below: 21
trigger: numeric_state
conditions:
- condition: state
entity_id: sun.sun
state: above_horizon
- condition: or
conditions:
- condition: state
entity_id: input_select.etat_des_volets
state: ferme
- condition: state
entity_id: input_select.etat_des_volets
state: mi-ferme
actions:
- action: cover.open_cover
data: {}
target:
entity_id: cover.volets
- action: input_select.select_option
target:
entity_id: input_select.etat_volets
data:
option: ouvert
mode: single
- id: '1731940979647'
alias: Volets - Fermer au-dessus de 30°
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.chalonnes_sur_loire_temperature
above: 30
conditions: []
actions:
- sequence:
- action: cover.close_cover
metadata: {}
data: {}
target:
entity_id: cover.volets
- action: input_select.select_option
target:
entity_id: input_select.etat_volets
data:
option: ferme
mode: single
- id: '1731941848645'
alias: Volets - Fermer au-dessus de 23°
description: Fermeture à moitié au-dessus de 23°
triggers:
- trigger: numeric_state
entity_id:
- sensor.chalonnes_sur_loire_temperature
above: 23
conditions: []
actions:
- sequence:
- action: cover.close_cover
data: {}
target:
entity_id: cover.volets
- delay: 00:00:12
- action: cover.stop_cover
data: {}
target:
entity_id: cover.volets
- action: input_select.select_option
target:
entity_id: input_select.etat_des_volets
data:
option: mi-ferme
mode: single
- id: '1731942674375'
alias: Ouvrir les volets au lever du soleil ou à 7h
description: Ouvre les volets au lever du soleil ou à 7h00
triggers:
- event: sunrise
offset: 00:00:00
trigger: sun
- at: 07:00:00
trigger: time
conditions:
- condition: or
conditions:
- condition: state
entity_id: device_tracker.pixel_8
state: home
- condition: state
entity_id: device_tracker.pixel_6_pro
state: home
- condition: state
entity_id: person.lilou
state: home
- condition: state
entity_id: person.solal
state: home
actions:
- target:
device_id:
- e7c8fc992276d92480b5d1852906b774
- 381376a796a1ad4f8f07aa03ecc46e0b
- a048e118214ae6ea65119d7dbba597b3
- 050ecd150724525392a4e5b19e620117
- 8c56cd8dff5d2d4cb51033e9c9828b7f
action: cover.open_cover
data: {}
- action: input_select.select_option
target:
entity_id: input_select.etat_des_volets
data:
option: ouvert
mode: single
- id: '1731943052556'
alias: Volets - Fermeture soir
description: Ferme les volets 45mn après le coucher du soleil
triggers:
- event: sunset
offset: 00:45:00
trigger: sun
conditions: []
actions:
- action: cover.close_cover
target:
entity_id: cover.volets
data: {}
- action: input_select.select_option
target:
entity_id: input_select.etat_des_volets
data:
option: ferme
mode: single
- id: '1732124891814'
alias: Reaper - Start Recording
description: ''
triggers:
- type: turned_on
device_id: f650b34349feb9a74d9cff89dd73dbae
entity_id: edcbe42ba3c4e8211a2eb760b17c7364
domain: switch
trigger: device
conditions: []
actions:
- action: script.lumiere_rouge
metadata: {}
data: {}
- type: turn_on
device_id: 3576f02e9c714ef9cddf32c66fc9bc4a
entity_id: 57c59125622ca71172fb99e3bc866db2
domain: switch
mode: restart
- id: '1732467451994'
alias: Éteindre Prise Studio
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.prise_pc_home_studio_puissance
below: 50
for:
hours: 0
minutes: 5
seconds: 0
conditions:
- condition: state
entity_id: device_tracker.pierre_edouard
state: not_home
- condition: state
entity_id: switch.prise_pc_home_studio_prise_1
state:
- 'on'
actions:
- type: turn_off
device_id: 820badbab1afd9d770f81bcf14677475
entity_id: a033abfd72aa75bb6d071af437d649c5
domain: switch
- action: climate.set_temperature
metadata: {}
data:
hvac_mode: heat
temperature: 15
target:
device_id: 1eacdce7b26423932c9ec784e2ac767c
- action: light.turn_off
metadata: {}
data: {}
target:
device_id: 71e1e7dbdccfa980b437f28c441a6c7c
mode: single
- id: '1732811467795'
alias: Éclairage aquarium
description: Gère l'éclairage de l'aquarium selon le type de jour Tempo avec durée
fixe
triggers:
- trigger: sun
event: sunrise
offset: 0
conditions: []
actions:
- type: turn_on
device_id: 39979447df8e2f4ee1caf0747c21b77e
entity_id: c61c13d33b1cb823fd97e04543bd521e
domain: switch
- delay: '10:00:00'
- type: turn_off
device_id: 39979447df8e2f4ee1caf0747c21b77e
entity_id: c61c13d33b1cb823fd97e04543bd521e
domain: switch
mode: single
- id: '1733035937483'
alias: Prise - Extinction Aquarium
description: ''
triggers:
- trigger: sun
event: sunset
offset: 0
conditions: []
actions:
- type: turn_off
device_id: 39979447df8e2f4ee1caf0747c21b77e
entity_id: c61c13d33b1cb823fd97e04543bd521e
domain: switch
mode: single
- id: '1733149806815'
alias: Eteindre toutes les prises connectées si personne n'est à la maison.
description: ''
triggers:
- trigger: state
entity_id:
- zone.home
to: '0'
for:
hours: 1
minutes: 0
seconds: 0
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id:
- switch.interrupteur_bibliotheque_switch_1
- switch.pc_emilie_prise_1
- switch.prise_pc_home_studio_prise_1
- switch.prise_tv_ampli_console_prise_1
mode: single
- id: '1733236383167'
alias: Lumières - Lecture Media
triggers:
- device_id: 138fc053e4d8a80d84389c282a5711ce
domain: media_player
entity_id: 9427bee65f2186cf9a6677ad68d23e80
type: playing
trigger: device
for:
hours: 0
minutes: 0
seconds: 3
conditions:
- condition: or
conditions:
- condition: not
conditions:
- condition: state
entity_id: media_player.tv_salon_2
attribute: source
state: Spotify - Musique et podcasts
- condition: or
conditions:
- condition: not
conditions:
- condition: state
entity_id: media_player.tv_salon_2
attribute: source
state: YouTube
- condition: or
conditions:
- condition: not
conditions:
- condition: state
entity_id: media_player.tv_salon_2
attribute: source
state: LG Channels
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: -01:00
- condition: sun
before: sunrise
before_offset: 01:00
- condition: state
entity_id: input_select.etat_des_volets
state: ferme
actions:
- action: scene.turn_on
metadata: {}
target:
entity_id: scene.salon_movie
data: {}
enabled: false
- action: light.turn_off
metadata: {}
data: {}
target:
device_id:
- 26235ad2b0cbd7a2dbe31261cfec124d
- fb517a93e0c4f8bd62d076b3213b1d96
- 3221684383cc628744fe140d2c6c8101
- action: light.turn_on
metadata: {}
data:
rgb_color:
- 128
- 0
- 128
brightness_pct: 5
target:
device_id: ca8d725a0daf494d876d926b8f9ad6b2
- action: switch.turn_off
metadata: {}
data: {}
target:
entity_id: switch.interrupteur_bibliotheque_switch_1
mode: single
- id: '1733245357271'
alias: Lumières Salon Soir
description: ''
triggers:
- trigger: sun
event: sunset
offset: -01:00:00
- trigger: state
entity_id:
- input_select.etat_des_volets
to: ferme
conditions: []
actions:
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2000
brightness_pct: 100
target:
entity_id: light.salon_tv
device_id:
- b80e228f0ce119086680952704e14d6f
- action: switch.turn_on
metadata: {}
data: {}
target:
device_id: db9c2f93022dddd296838bbd98aec19c
mode: single
- id: '1733246155227'
alias: Lumière TV Pause
description: ''
triggers:
- device_id: 138fc053e4d8a80d84389c282a5711ce
domain: media_player
entity_id: 9427bee65f2186cf9a6677ad68d23e80
type: paused
trigger: device
for:
hours: 0
minutes: 0
seconds: 2
conditions:
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: -01:00
- condition: sun
before: sunrise
before_offset: 01:00
- condition: state
entity_id: input_select.etat_des_volets
state: ferme
actions:
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2000
brightness_pct: 50
target:
device_id:
- ca8d725a0daf494d876d926b8f9ad6b2
- 26235ad2b0cbd7a2dbe31261cfec124d
- fb517a93e0c4f8bd62d076b3213b1d96
- 3221684383cc628744fe140d2c6c8101
mode: single
- id: '1733257415929'
alias: Lumière Xbox et Spotify
description: ''
triggers:
- trigger: state
entity_id:
- media_player.tv_salon_2
attribute: source
to: XBOX Console de jeu
for:
hours: 0
minutes: 0
seconds: 5
- trigger: state
entity_id:
- media_player.tv_salon_2
attribute: source
to: Spotify - Musique et podcasts
for:
hours: 0
minutes: 0
seconds: 5
conditions:
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: -01:00
- condition: sun
before: sunrise
before_offset: 01:00
- condition: state
entity_id: input_select.etat_des_volets
state: ferme
actions:
- action: light.turn_on
metadata: {}
data:
brightness_pct: 10
color_temp_kelvin: 2000
target:
entity_id: light.salon_tv
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2704
brightness_pct: 1
target:
entity_id: light.lampe_piano
mode: single
- id: '1733262750758'
alias: 'Lumière extinction TV '
description: ''
triggers:
- device_id: 138fc053e4d8a80d84389c282a5711ce
domain: media_player
entity_id: 9427bee65f2186cf9a6677ad68d23e80
type: turned_off
trigger: device
conditions: []
actions:
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2000
brightness_pct: 100
target:
entity_id: light.salon_tv
mode: single
- id: '1733380605006'
alias: Nettoyage Aspirateurs
description: Tous les jours travaillés à 10h
triggers:
- trigger: time
at: '10:00:00'
conditions:
- condition: state
entity_id: binary_sensor.workday_sensor
state: 'on'
actions:
- action: vacuum.start
metadata: {}
data: {}
target:
device_id:
- 6db73f9d4a553a8977bbd628b05512c7
- e9149ed319748732d3362e5e7fa8e8f2
mode: single
- id: '1733478540799'
alias: Alerte porte ouverte
description: Alerte si la porte du grenier reste ouverte plus de 5 minutes.
triggers:
- entity_id:
- binary_sensor.porte_grenier_porte
to: 'on'
for:
hours: 0
minutes: 10
seconds: 0
trigger: state
conditions: []
actions:
- data:
title: Porte Ouverte !
message: La porte du grenier est restée ouverte.
action: notify.mobile_app_pixel_10
- data:
title: Porte Ouverte !
message: La porte du grenier est restée ouverte.
action: notify.mobile_app_telephone_emilie
- data:
title: Porte Ouverte !
message: La porte du grenier est restée ouverte.
action: notify.mobile_app_telephone_solal
- data:
title: Porte Ouverte !
message: La porte du grenier est restée ouverte.
action: notify.tv_salon
mode: single
- id: '1733495522917'
alias: Alerte - Porte Cave
description: Alerte si la porte de la cave reste ouverte plus de 5 minutes.
triggers:
- entity_id:
- binary_sensor.porte_cave_porte
to: 'on'
for:
hours: 0
minutes: 10
seconds: 0
trigger: state
conditions: []
actions:
- data:
title: Porte Ouverte !
message: La porte de la cave est restée ouverte.
action: notify.mobile_app_pixel_10
- data:
title: Porte Ouverte !
message: La porte de la cave est restée ouverte.
action: notify.mobile_app_telephone_emilie
- data:
title: Porte Ouverte !
message: La porte de la cave est restée ouverte.
action: notify.tv_salon
mode: single
- id: '1733728966827'
alias: Extinction lumière Piano sur extinction Lum. Salon
description: ''
triggers:
- trigger: state
entity_id:
- light.salon_tv
to: 'off'
conditions: []
actions:
- action: light.turn_off
metadata: {}
data: {}
target:
entity_id:
- light.yeelink_color1_ab84_light
mode: single
- id: '1733760540290'
alias: Allumage lumière Grenier
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.porte_grenier_porte
to: 'on'
conditions: []
actions:
- type: turn_on
device_id: d094e8495a72d940d94ebaacd32c021e
entity_id: 66d68ec8e72a408745c9fc198d808f65
domain: light
- type: turn_on
device_id: cda3c9f5a0e63ca780524b84f3395841
entity_id: 3bf0015b69fdfce86df748a95c14b5d7
domain: light
mode: single
- id: '1733760577152'
alias: Lumière Grenier Extinction
description: ''
triggers:
- trigger: state
entity_id:
- binary_sensor.porte_grenier_porte
to: 'off'
conditions: []
actions:
- type: turn_off
device_id: d094e8495a72d940d94ebaacd32c021e
entity_id: 66d68ec8e72a408745c9fc198d808f65
domain: light
- type: turn_off
device_id: cda3c9f5a0e63ca780524b84f3395841
entity_id: 3bf0015b69fdfce86df748a95c14b5d7
domain: light
mode: single
- id: '1733846420283'
alias: Pluie - Alerte fenêtre ouverte
description: ''
triggers:
- trigger: numeric_state
entity_id:
- sensor.chalonnes_sur_loire_next_rain
below: 30
- trigger: numeric_state
entity_id:
- sensor.chalonnes_sur_loire_rain_chance
above: 5
conditions:
- type: is_open
condition: device
device_id: 5cd2ca7e36bb74d99d6edd98b60c8ce1
entity_id: 45e358f9af2fcbadd5f5bccda0034552
domain: binary_sensor
actions:
- action: notify.mobile_app_pixel_10
metadata: {}
data:
message: Le Velux de Solal est ouvert
- action: notify.mobile_app_telephone_emilie
metadata: {}
data:
message: Le Velux de Solal est ouvert
- action: notify.tv_salon
metadata: {}
data:
message: Le Velux de Solal est ouvert
mode: single
- id: '1734561574900'
alias: Alerte chauffage Lilou
description: ''
triggers:
- trigger: numeric_state
entity_id:
- climate.radiateur_lilou
attribute: temperature
above: 22
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 17
hvac_mode: heat
target:
device_id: fb5fcdf124c3185b521b92267faa67c7
- action: notify.mobile_app_pixel_10
metadata: {}
data:
message: Lilou a monté son radiateur !
title: CHAUFFAGE
- action: notify.mobile_app_telephone_emilie
metadata: {}
data:
message: Lilou a monté son radiateur !
title: CHAUFFAGE
mode: single
- id: '1735467083383'
alias: Lumières Spotify
description: ''
triggers:
- trigger: state
entity_id:
- media_player.tv_salon_2
attribute: source
to: Spotify - Musique et podcasts
conditions:
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: -01:00
- condition: sun
before: sunrise
before_offset: 01:00
- condition: state
entity_id: input_select.etat_des_volets
state: ferme
actions:
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2000
brightness_pct: 1
target:
device_id: b80e228f0ce119086680952704e14d6f
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2000
brightness_pct: 20
target:
device_id:
- ca8d725a0daf494d876d926b8f9ad6b2
- 26235ad2b0cbd7a2dbe31261cfec124d
- fb517a93e0c4f8bd62d076b3213b1d96
mode: single
- id: '1735891845653'
alias: Volets - ouverture bureau Emilie
description: ''
triggers:
- trigger: time
at: '12:00:00'
conditions:
- condition: state
entity_id: person.emilie
state: home
enabled: false
actions:
- condition: numeric_state
entity_id: sensor.chalonnes_sur_loire_temperature
below: 23
- device_id: d59a5ec5fdb99e8d9ddaf45ca3fa7300
domain: cover
entity_id: 25271797a3fd1028327324a1074411ac
type: open
mode: single
- id: '1740520984398'
alias: Prise TV - Extinction
description: ''
triggers:
- trigger: state
entity_id:
- media_player.tv_salon_2
to: 'off'
for:
hours: 0
minutes: 0
seconds: 30
conditions:
- condition: state
entity_id: media_player.xbox_pirouets
state: 'off'
- condition: state
entity_id: media_player.ampli
state: idle
enabled: false
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
device_id:
- 540e72c475410d9922323902d6120b60
mode: single
- id: '1744134991460'
alias: Tondeuse - Notif erreur
description: ''
triggers:
- trigger: state
entity_id:
- lawn_mower.gaston
to: error
for:
hours: 0
minutes: 1
seconds: 0
conditions: []
actions:
- action: notify.tv_salon
metadata: {}
data:
message: "\U0001F6A8 Gaston : Venez m'aider ! Je suis bloqué !! \U0001F6A8"
title: Erreur Gaston
- action: notify.mobile_app_pixel_10
metadata: {}
data:
message: "\U0001F6A8 Gaston : Venez m'aider ! Je suis bloqué !! \U0001F6A8"
title: 'Erreur Gaston '
- action: notify.mobile_app_telephone_emilie
metadata: {}
data:
message: "\U0001F6A8 Gaston : Venez m'aider ! Je suis bloqué !! \U0001F6A8"
title: 'Erreur Gaston '
- action: notify.mobile_app_telephone_solal
metadata: {}
data:
message: "\U0001F6A8 Gaston : Venez m'aider ! Je suis bloqué !! \U0001F6A8"
title: 'Erreur Gaston '
mode: single
- id: '1748367843597'
alias: Allumage lumière piano avec tv
description: ''
triggers:
- trigger: state
entity_id:
- light.salon_tv
to: 'on'
conditions: []
actions:
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2000
brightness_pct: 20
target:
entity_id: light.lampe_piano
- action: switch.turn_on
metadata: {}
data: {}
target:
device_id: db9c2f93022dddd296838bbd98aec19c
mode: single
- id: '1754482227555'
alias: Alerte Mégane Chargée
description: ''
triggers:
- trigger: numeric_state
entity_id: sensor.megane_batterie
above: 99.5
conditions:
- condition: state
entity_id: binary_sensor.megane_en_charge
state: 'on'
actions:
- action: notify.mobile_app_pixel_10
data:
message: "\U0001F697 La Mégane est chargée à {{ states('sensor.megane_batterie')
}}% \U0001F697"
- action: notify.mobile_app_telephone_emilie
metadata: {}
data:
message: "\U0001F697 La Mégane est chargée à {{ states('sensor.megane_batterie')
}}% \U0001F697"
mode: single
- id: '1757332214440'
alias: Erreur AspiStudio
description: Envoie une notification quand l'aspirateur rencontre une erreur
triggers:
- value_template: '{% set s = states(''vacuum.rockrobo_v1_ea34_robot_cleaner'')
%} {% set a = state_attr(''vacuum.rockrobo_v1_ea34_robot_cleaner'', ''status'')
%} {{ s == ''error'' or a == ''error'' }}
'
trigger: template
conditions: []
actions:
- data:
title: Erreur Aspirateur
message: ⚠️ L'AspiStudio a rencontré une erreur !
data:
priority: high
channel: roborock_alerts
action: notify.mobile_app_pixel_10
mode: single
- id: '1757332279292'
alias: Erreur AspiRdC
description: Envoie une notification quand l'aspirateur rencontre une erreur
triggers:
- value_template: '{% set s = states(''sensor.roborock_a15_2a0e_status'') %} {%
set a = state_attr(''sensor.roborock_a15_2a0e_status'', ''status'') %} {{ s
== ''error'' or a == ''error'' }}
'
trigger: template
conditions: []
actions:
- data:
title: Erreur Aspirateur
message: ⚠️ L'AspiRdC a rencontré une erreur !
data:
priority: high
channel: roborock_alerts
action: notify.mobile_app_pixel_10
- action: notify.mobile_app_telephone_emilie
data:
message: ⚠️ L'AspiRdC a rencontré une erreur !
title: Erreur Aspirateur
data:
priority: high
channel: roborock_alerts
mode: single
- id: '1757350308056'
alias: Alerte Mégane débranchée
description: ''
triggers:
- trigger: state
entity_id:
- device_tracker.pixel_10_2
to: home
for:
hours: 0
minutes: 10
seconds: 0
- trigger: state
entity_id:
- device_tracker.telephone_emilie
to: home
for:
hours: 0
minutes: 10
seconds: 0
conditions:
- condition: state
entity_id: sensor.megane_etat_du_branchement
state: unplugged
actions:
- action: notify.mobile_app_pixel_10
metadata: {}
data:
message: "\U0001F6A8 La Mégane est débranchée ! \U0001F6A8"
- action: notify.mobile_app_telephone_emilie
metadata: {}
data:
message: "\U0001F6A8 La Mégane est débranchée ! \U0001F6A8"
- action: notify.tv_salon
metadata: {}
data:
message: "\U0001F6A8 La Mégane est débranchée ! \U0001F6A8"
mode: single
- id: '1757354771569'
alias: Track Mégane Bluetooth
description: Suit l'état de connexion Bluetooth de la Mégane
triggers:
- trigger: state
entity_id:
- sensor.pixel_10_bluetooth_connection
- sensor.telephone_emilie_bluetooth_connection
- trigger: homeassistant
event: start
conditions: []
actions:
- if:
- condition: template
value_template: '{{ is_megane_connected }}'
then:
- action: input_boolean.turn_on
target:
entity_id: input_boolean.megane_bluetooth_connected
data: {}
else:
- action: input_boolean.turn_off
target:
entity_id: input_boolean.megane_bluetooth_connected
data: {}
variables:
pierre_bt: '{{ state_attr(''sensor.pixel_8_bluetooth_connection'', ''connected_paired_devices'')
or [] }}'
emilie_bt: '{{ state_attr(''sensor.telephone_emilie_bluetooth_connection'', ''connected_paired_devices'')
or [] }}'
megane_mac: BC:42:8C:EB:E1:D1
is_megane_connected: '{{ megane_mac in pierre_bt or megane_mac in emilie_bt }}'
mode: restart
- id: '1757354894900'
alias: Gestion actions alerte Mégane
description: Gère les réponses aux notifications d'alerte
triggers:
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: MEGANE_WILL_CHARGE
- trigger: event
event_type: mobile_app_notification_action
event_data:
action: MEGANE_IGNORE_TONIGHT
conditions: []
actions:
- choose:
- conditions:
- condition: template
value_template: '{{ trigger.event.data.action == ''MEGANE_WILL_CHARGE'' }}'
sequence:
- action: automation.turn_off
target:
entity_id: automation.alerte_megane_debranchee
data:
stop_actions: true
- action: timer.start
target:
entity_id: timer.megane_charge_reminder
data:
duration: 02:00:00
- action: notify.mobile_app_{{ trigger.event.data.device_id }}
data:
message: ✅ Alerte Mégane désactivée pour 2h
- conditions:
- condition: template
value_template: '{{ trigger.event.data.action == ''MEGANE_IGNORE_TONIGHT''
}}'
sequence:
- action: automation.turn_off
target:
entity_id: automation.alerte_megane_debranchee
data:
stop_actions: true
- action: automation.turn_on
target:
entity_id: automation.alerte_megane_debranchee
data:
variables:
ignore_until: '{{ now().replace(hour=8, minute=0, second=0) + timedelta(days=1)
}}'
- action: notify.mobile_app_{{ trigger.event.data.device_id }}
data:
message: ✅ Alerte Mégane ignorée jusqu'à 8h demain
mode: parallel
- id: '1758348787570'
alias: Notification bac déshumidificateur plein
description: Avertit tous les périphériques lorsque le bac est plein
triggers:
- entity_id: binary_sensor.deshumidificateur_tank_full
to: 'on'
trigger: state
actions:
- repeat:
while:
- condition: state
entity_id: binary_sensor.deshumidificateur_tank_full
state: 'on'
sequence:
- action: notify.mobile_app_pixel_10
data:
message: "\U0001F4A6 Le bac du déshumidificateur est plein \U0001F4A6"
- action: notify.mobile_app_telephone_emilie
data:
message: "\U0001F4A6 Le bac du déshumidificateur est plein \U0001F4A6"
- action: notify.tv_salon
data:
message: "\U0001F4A6 Le bac du déshumidificateur est plein \U0001F4A6"
- delay: '24:00:00'
mode: restart
- id: '1758350474172'
alias: Alerte Choupette débranchée
description: ''
triggers:
- trigger: state
entity_id:
- device_tracker.la_choupette
to: home
for:
hours: 0
minutes: 10
seconds: 0
conditions:
- condition: state
entity_id: binary_sensor.fiat_la_choupette_ev_charger
state: 'off'
- condition: numeric_state
entity_id: sensor.fiat_la_choupette_hvbattery_charge
below: 30
actions:
- action: notify.mobile_app_pixel_10
metadata: {}
data:
message: "\U0001F6A8 La Choupette a soif ! \U0001F6A8"
- action: notify.mobile_app_telephone_emilie
metadata: {}
data:
message: "\U0001F6A8 La Choupette a soif ! \U0001F6A8"
- action: notify.tv_salon
metadata: {}
data:
message: "\U0001F6A8 La Choupette a soif ! \U0001F6A8"
mode: single
- id: '1758434073739'
alias: Rafraîchir les données de la Choupette
description: ''
triggers:
- trigger: time_pattern
hours: /1
conditions: []
actions:
- action: button.press
metadata: {}
data: {}
target:
entity_id: button.fiat_la_choupette_deep_refresh
mode: single
- id: '1758451872914'
alias: 'Alerte fn de lessive '
description: ''
triggers:
- trigger: state
entity_id:
- sensor.washing_machine_mode
to: '7'
from: '2'
conditions: []
actions:
- action: notify.mobile_app_pixel_10
metadata: {}
data:
message: "\U0001F9FC La lessive est terminée \U0001F9FC"
- action: notify.mobile_app_telephone_emilie
metadata: {}
data:
message: "\U0001F9FC La lessive est terminée \U0001F9FC"
- action: notify.tv_salon
metadata: {}
data:
message: "\U0001F9FC La lessive est terminée \U0001F9FC"
mode: single
- id: '1761641211958'
alias: Chauffage Studio sur Allumage PC
description: ''
triggers:
- trigger: state
entity_id:
- switch.prise_pc_home_studio_prise_1
to: 'on'
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19
hvac_mode: heat
target:
device_id: 1eacdce7b26423932c9ec784e2ac767c
mode: single
- id: '1761648855637'
alias: Extinction Chauffage Studio à l'Extinction du PC Studio
description: ''
triggers:
- trigger: state
entity_id:
- switch.prise_pc_home_studio_prise_1
to: 'off'
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 15
hvac_mode: heat
target:
device_id: 1eacdce7b26423932c9ec784e2ac767c
mode: single
- id: '1761648926973'
alias: Extinction Chauffage Bureau sur Extinction PC Bureau
description: ''
triggers:
- trigger: state
entity_id:
- switch.pc_emilie_prise_1
to: 'off'
from:
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 15
hvac_mode: heat
target:
device_id: 7e8a9dbefad362415dcda11c7587e663
mode: single
- id: '1761719158097'
alias: Chauffage Bureau Emilie
description: ''
triggers:
- trigger: state
entity_id:
- switch.pc_emilie_prise_1
to: 'on'
conditions:
- condition: state
entity_id: person.emilie
state: home
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19
hvac_mode: heat
target:
device_id: 7e8a9dbefad362415dcda11c7587e663
mode: single
- id: '1761719762186'
alias: Chauffage Chambre Lilou
description: ''
triggers:
- trigger: state
entity_id:
- schedule.chauffage_confort_lilou
to:
- 'on'
conditions:
- condition: state
entity_id: person.lilou
state: home
enabled: false
actions:
- action: climate.set_temperature
metadata: {}
data:
hvac_mode: heat
temperature: 21
target:
device_id: fb5fcdf124c3185b521b92267faa67c7
mode: single
- id: '1761721469686'
alias: 'Extinction Chauffage Lilou '
description: ''
triggers:
- trigger: state
entity_id:
- schedule.chauffage_confort_lilou
to:
- 'off'
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 15
hvac_mode: heat
target:
device_id: fb5fcdf124c3185b521b92267faa67c7
mode: single
- id: '1761721871857'
alias: Chauffage Salle de bains
triggers:
- entity_id: schedule.confort_sdb
to: 'on'
trigger: state
conditions: []
actions:
- choose:
- conditions:
- condition: or
conditions:
- condition: state
entity_id: person.emilie
state: home
- condition: state
entity_id: person.papa
state: home
sequence:
- target:
device_id: 10e6b93527829e89c26a5a38f5c4329c
data:
temperature: 19
hvac_mode: heat
action: climate.set_temperature
default:
- target:
device_id: 10e6b93527829e89c26a5a38f5c4329c
data:
temperature: 15
hvac_mode: heat
action: climate.set_temperature
mode: single
- id: '1761721953291'
alias: 'Extinction Chauffage Salle de bains '
description: ''
triggers:
- trigger: state
entity_id:
- schedule.confort_sdb
to: 'off'
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 15
hvac_mode: heat
target:
device_id: 10e6b93527829e89c26a5a38f5c4329c
mode: single
- id: '1761722228965'
alias: 'Allumage Chauffage Parents '
description: ''
triggers:
- trigger: state
entity_id:
- schedule.chauffage_confort
to: 'on'
conditions:
- condition: or
conditions:
- condition: state
entity_id: person.emilie
state: home
- condition: state
entity_id: person.papa
state: home
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19
hvac_mode: heat
target:
device_id: a5ba96ba7326d7e5a13da4504d7efc5a
mode: single
- id: '1761722292043'
alias: 'Extinction Chauffage Parents '
description: ''
triggers:
- trigger: state
entity_id:
- schedule.chauffage_confort
to: 'off'
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 15
hvac_mode: heat
target:
device_id: a5ba96ba7326d7e5a13da4504d7efc5a
mode: single
- id: '1761838267591'
alias: Allumage Chauffage Lilou sur Arrivée Lilou
description: ''
triggers:
- trigger: state
entity_id:
- person.lilou
to: home
conditions:
- condition: state
entity_id: schedule.chauffage_confort_lilou
state:
- 'on'
actions:
- action: climate.set_temperature
metadata: {}
data:
hvac_mode: heat
temperature: 21
target:
device_id: fb5fcdf124c3185b521b92267faa67c7
mode: single
- id: '1761838355621'
alias: Extinction Chauffage Lilou sur Départ Lilou
description: ''
triggers:
- trigger: state
entity_id:
- person.lilou
to: not_home
for:
hours: 0
minutes: 30
seconds: 0
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
hvac_mode: heat
temperature: 15
target:
device_id: fb5fcdf124c3185b521b92267faa67c7
mode: single
- id: '1761840440858'
alias: Allumage Lampe Cocon sur Allumage PC Studio
description: ''
triggers:
- type: turned_on
device_id: 820badbab1afd9d770f81bcf14677475
entity_id: a033abfd72aa75bb6d071af437d649c5
domain: switch
trigger: device
conditions: []
actions:
- action: light.turn_on
metadata: {}
data:
color_temp_kelvin: 2000
target:
device_id: 71e1e7dbdccfa980b437f28c441a6c7c
mode: single
- id: '1762078020167'
alias: Allumage TV sur Allumage Prise Salon
description: ''
triggers:
- type: turned_on
device_id: 540e72c475410d9922323902d6120b60
entity_id: d449060a83e6313bdef4d29105b1de85
domain: switch
trigger: device
for:
hours: 0
minutes: 0
seconds: 15
conditions: []
actions:
- action: button.press
metadata: {}
data: {}
target:
device_id: deb4bf041498e8307c72d8cb1c6fe223
mode: single
- id: '1762078083462'
alias: Allumage PC sur Allumage Prise Studio
description: ''
triggers:
- type: turned_on
device_id: 820badbab1afd9d770f81bcf14677475
entity_id: a033abfd72aa75bb6d071af437d649c5
domain: switch
trigger: device
for:
hours: 0
minutes: 0
seconds: 10
conditions: []
actions:
- action: button.press
metadata: {}
data: {}
target:
device_id:
- 7e0a273afc6496311e8b205d89da6860
mode: single
- id: '1762272000663'
alias: Allumage Chauffage Parents sur présence en heures confort
description: ''
triggers:
- trigger: state
entity_id:
- person.emilie
to: home
- trigger: state
entity_id:
- person.papa
to: home
conditions:
- condition: state
entity_id: schedule.chauffage_confort
state: 'on'
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19
hvac_mode: heat
target:
device_id: a5ba96ba7326d7e5a13da4504d7efc5a
mode: single
- id: '1762291774188'
alias: Allumage lumière sur TV TNT
description: Allume les lumières lorsque la TV commence à jouer un média le soir
ou si les volets sont fermés, mais uniquement si elles sont éteintes.
triggers:
- trigger: state
entity_id:
- media_player.tv_salon_2
attribute: source
to: Live TV
conditions:
- condition: or
conditions:
- condition: sun
after: sunset
after_offset: -01:00
- condition: sun
before: sunrise
before_offset: 01:00
- condition: state
entity_id: input_select.etat_des_volets
state: ferme
actions:
- action: light.turn_on
metadata: {}
data:
brightness_pct: 80
color_temp_kelvin: 2000
target:
entity_id:
- light.salon_tv
- light.lampe_piano
mode: single
- id: '1762327380550'
alias: Extinction Piano et Bibliothèque sur Extinction Salon
description: ''
triggers:
- trigger: state
entity_id:
- light.salon_tv
to: 'off'
for:
hours: 0
minutes: 0
seconds: 15
from: 'on'
- trigger: state
entity_id:
- light.salon_tv
to: unavailable
for:
hours: 0
minutes: 0
seconds: 15
from: 'on'
- trigger: state
entity_id:
- light.salon_tv
to: unknown
for:
hours: 0
minutes: 0
seconds: 15
from: 'on'
conditions: []
actions:
- action: switch.turn_off
metadata: {}
data: {}
target:
device_id: db9c2f93022dddd296838bbd98aec19c
- action: light.turn_off
metadata: {}
data: {}
target:
device_id: b80e228f0ce119086680952704e14d6f
mode: single
- id: '1762339773336'
alias: Extinction chauffage Parents SdB et Studio sur absence parents
description: ''
triggers:
- trigger: state
entity_id:
- group.parents
to: not_home
for:
hours: 0
minutes: 5
seconds: 0
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 15
hvac_mode: heat
target:
device_id:
- a5ba96ba7326d7e5a13da4504d7efc5a
- 10e6b93527829e89c26a5a38f5c4329c
- 1eacdce7b26423932c9ec784e2ac767c
mode: single
- id: '1762600101116'
alias: 'Lancement Spotify '
description: ''
use_blueprint:
path: cvroque/webostv_turn_on.yaml
input:
webostv: 138fc053e4d8a80d84389c282a5711ce
webostv_button: button.wake_on_lan_a4_36_c7_62_d2_56
on_action:
- action: media_player.play_media
target:
entity_id: media_player.spotify_pierre_edouard_tessier
data:
media_content_id: ''
media_content_type: ''
metadata: {}
- id: '1762879023010'
alias: Notification mouvement caméra
description: Envoie une notification sur Pixel 8 quand la caméra détecte un mouvement
triggers:
- entity_id: switch.lsc_smart_camera_ptz_dualband_indoor_detection_de_mouvement
to: 'on'
trigger: state
conditions: []
actions:
- data:
message: Mouvement détecté sur la caméra !
title: Alerte mouvement
action: notify.mobile_app_pixel_10
mode: single
- id: '1763020571595'
alias: Extinction Chauffage Solal
description: ''
triggers:
- trigger: state
entity_id:
- schedule.chauffage_confort
to: 'off'
conditions: []
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 15
hvac_mode: heat
target:
device_id:
- ad6050d992f0a3c6bdb601e06916529e
mode: single
- id: '1763020664161'
alias: Extinction Chauffage Solal sur Départ Solal
description: ''
triggers:
- trigger: state
entity_id:
- person.solal
to:
for:
hours: 0
minutes: 30
seconds: 0
from: home
conditions:
- condition: state
entity_id: schedule.chauffage_confort
state: 'on'
enabled: false
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 15
hvac_mode: heat
target:
device_id:
- ad6050d992f0a3c6bdb601e06916529e
mode: single
- id: '1763020734429'
alias: Allumage Chauffage Solal sur Arrivée Solal
description: ''
triggers:
- trigger: state
entity_id:
- person.solal
to: home
conditions:
- condition: state
entity_id: schedule.chauffage_confort
state: 'on'
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19
hvac_mode: heat
target:
device_id: ad6050d992f0a3c6bdb601e06916529e
mode: single
- id: '1763020793185'
alias: Allumage Chauffage Solal
description: ''
triggers:
- trigger: state
entity_id:
- schedule.chauffage_confort
to: 'on'
conditions:
- condition: state
entity_id: person.solal
state: home
actions:
- action: climate.set_temperature
metadata: {}
data:
temperature: 19
hvac_mode: heat
target:
device_id: ad6050d992f0a3c6bdb601e06916529e
mode: single
- id: '1763394895581'
alias: 'TV sur Xbox '
description: ''
triggers:
- device_id: 50f53c5e9fa4fff8b52f496380ad2f78
domain: media_player
entity_id: 15138c178ceaefb53b01d8731f2f8331
type: turned_on
trigger: device
conditions: []
actions:
- action: media_player.select_source
metadata: {}
data:
source: HDMI 1
target:
entity_id: media_player.tv_salon_2
mode: single
- id: '1763395099326'
alias: Extinction Xbox
description: ''
triggers:
- device_id: 50f53c5e9fa4fff8b52f496380ad2f78
domain: media_player
entity_id: 15138c178ceaefb53b01d8731f2f8331
type: turned_off
trigger: device
conditions: []
actions:
- action: media_player.select_source
metadata: {}
data:
source: Live TV
target:
entity_id: media_player.tv_salon_2
mode: single