Hello pedolsky,
Sorry I didn’t know how to do.
I try to split my file, but maybe you can also give me a good idea how to split better the yaml file
Thank you again
Nicolouts
automation.yaml
- id: notify_nicolas_ouvrir_garage_porte
alias: "[📣] Envoyer une notification à Nicolas pour ouvrir la porte de garage"
trigger:
platform: state
entity_id: person.nicolouts
from: not_home
to: home
action:
- service: notify.mobile_app_beskonic_iphone
data:
message: "Voulez-vous ouvrir la porte de garage"
data:
actions:
- action: "OUVRIR"
title: "🏡 🔑 Bienvenu à la maison Nicolouts!"
timeout: 60
- id: notify_sarah_ouvrir_garage_porte
alias: "[📣] Envoyer une notification à Sarah pour ouvrir la porte de garage"
trigger:
platform: state
entity_id: person.sarah
from: not_home
to: home
action:
- service: notify.mobile_app_sarah_iphone
data:
message: "Voulez-vous ouvrir la porte de garage"
data:
actions:
- action: "OUVRIR"
title: "🏡 🔑 Bienvenu à la maison Sarah!"
timeout: 60
- id: notify_ana_ouvrir_garage_porte
alias: "[📣] Envoyer une notification à Ana pour ouvrir la porte de garage"
trigger:
platform: state
entity_id: person.ana
from: not_home
to: home
action:
- service: notify.mobile_app_iphone_de_ana
data:
message: "Voulez-vous ouvrir la porte de garage"
data:
actions:
- action: "OUVRIR"
title: "🏡 🔑 Bienvenu à la maison Ana!"
timeout: 60
- id: notify_ouvrir_garage_porte
alias: "[📣📲] Notification pour ouvrir la porte du garage"
trigger:
- platform: event
event_type: mobile_app_notification_action
event_data:
action: "OUVRIR"
action:
- service: switch.turn_on
data: {}
entity_id: switch.porte_garage_distance
ios.yaml
push:
categories:
- name: Ouvrir la porte de garage
identifier: 'ouvrir_porte_garage'
actions:
- identifier: 'OUVRIR_PORTE_GARAGE'
title: "Ouvrir la porte de garage"
activationMode: 'background'
authenticationRequired: false # Require FaceID / TouchID
destructive: false
behavior: 'default'
config.yaml
automation: !include_dir_merge_list include/automations/
script: !include_dir_merge_list include/scripts/
notify: !include_dir_merge_list include/notifies/
ios: !include_dir_merge_list include/ios/