Przepraszam za pewnie błahe pytanie początkującego, ale nijak nie mogę rozgryźć tematu:
Próbuję rozdzielić automatyzacje i przenieść je do osobnego folderu:
dodałem w pliku /homeassistant/configuration.yaml
linię “automation custom: !include_dir_merge_list ./automations”
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
automation custom: !include_dir_merge_list ./automations
w plikach jest kod przeniesiony z pierwotnego: automations.yaml
- alias: WIFI - nowe urządzenie w sieci
trigger:
platform: event
event_type: tplink_router_new_device
action:
service: notify.mobile_app_telefon_adam
data:
message: Nowe urządzenie {{ trigger.event.data.hostname }} MAC {{ trigger.event.data.mac_address
}}
title: NOWE urządzenie w sieci
nie ma błędów konfiguracyjnych po ponownym uruchomieniu HA
automatyzacji nie widać na liście automatyzacji, na liście stanów encji widnieją jako niedostępne.
# Loads default set of integrations. Do not remove.
default_config:
# Load frontend themes from the themes folder
frontend:
themes: !include_dir_merge_named themes
automation: !include automations.yaml
automation custom: !include_dir_merge_list automations
W pliku automations.yaml - który widzę mam takie zapisy:
W plikach szczegółowych w katalogu automations - których nie widzę takie:
- alias: WIFI - nowe urządzenie w sieci
trigger:
platform: event
event_type: tplink_router_new_device
action:
service: notify.mobile_app_telefon_adam
data:
message: Nowe urządzenie {{ trigger.event.data.hostname }} MAC {{ trigger.event.data.mac_address
}}
title: NOWE urządzenie w sieci
id: 78efd81c79df44a7ba2647ab68fa22ef
Nie jest czasami problemem ilość spacji na początku kodu?