Kan iemand mij wellicht n duwtje geven naar n duidelijke uitleg over t gebruik van de ' , " en de activatie van diverse onderdelen zoals automations..
In mijn configuration.yaml staat een verwijzing naar m'n customize.yaml en m'n automations.yaml.
De eerste is als volgt:
YAML:
1
2
| homeassistant:
- customize: !include customize.yaml |
De tweede staat er als volgt in
YAML:
1
| automation: !include automations.yaml |
Die eerste werkt alleen als hij er zo in staat (qua indentations kan ik nu n spatie af zitten) maar niet als hij zonder indentations er in staat.. die tweede lijkt echter ook niet te werken. Of in elk geval selectief.. er stonden 2 Auto backups in en meerdere notificaties.. de ene backup werkt wel. De rest niet.. en ik kan NIET ontdekken waarom niet. Anders dan dat m'n '," etc wellicht van t padje is. Kan iemand me dit wellicht uitleggen?
Dus:
' bij gebruik van....
" Bij gebruik van.... Etc.
Automations staan er als volgt in:
YAML:
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
| - id: '1586875920509'
alias: Notificatie afval
trigger:
at: '20:00:00'
platform: time
condition:
condition: or
conditions:
- condition: template
value_template: '{% if is_state(''sensor.trash_tomorrow.state'', ''pmd'') %}true{%
endif %}'
- condition: template
value_template: '{% if is_state(''sensor.trash_tomorrow.state'', ''gft'') %}true{%
endif %}'
- condition: template
value_template: '{% if is_state(''sensor.trash_tomorrow.state'', ''restafval'')
%}true{% endif %}'
- condition: template
value_template: '{% if is_state(''sensor.trash_tomorrow.state'', ''papier'')
%}true{% endif %}'
action:
- service: notify.mobile_app_iphone_van_Koepert vrouw
data:
message: Herinnering:Morgen wordt {{states.sensor.trash_tomorrow.state}} opgehaald
- service: notify.mobile_app_iphone_7_Koepert
data:
message: Herinnering:Morgen wordt {{states.sensor.trash_tomorrow.state}} opgehaald
- service: notify.mobile_app_nokia_7_plus
data:
message: Herinnering:Morgen wordt {{states.sensor.trash_tomorrow.state}} opgehaald
- id: '1586875920510'
alias: Notify Snapshot Failure
trigger:
- platform: event
event_type: auto_backup.snapshot_failed
action:
- service: notify.mobile_app_iphone_7_Koepert
data:
title: Snapshot Failed.
message: 'Name: {{ trigger.event.data.name }} Error: {{ trigger.event.data.error
}}'
- id: '1586875920511'
alias: Perform Backup
trigger:
- at: 02:30:00
platform: time
condition:
- condition: time
weekday:
- mon
- wed
- sat
action:
- data_template:
keep_days: 28
name: 'WeeklyBackup: {{ now().strftime(''%A, %B %-d, %Y'') }}'
service: auto_backup.snapshot_full
- id: '1586875920512'
alias: Notify Snapshot Success
trigger:
- platform: event
event_type: auto_backup.snapshot_succesful
action:
- service: notify.mobile_app_iphone_7_Koepert
data:
title: Snapshot Succesful.
message: Backup is gelukt
- id: '1586875920513'
alias: Notify Snapshot Success
trigger:
- platform: event
event_type: auto_backup.snapshot_succesful
action:
service: notify.mobile_app_nokia_7_plus
data:
message: Backup {{ now().strftime(%A, %B %-d, %Y) }} is gelukt
title: Snapshot Succesful.
- id: '1586875920514'
alias: NAS vol alert
trigger:
platform: template
value_template: '{% if is_state(''sensor.synology_dsm_volume_used_volume_1'',
''''>90%'''') %}true{% endif %}'
action:
- data:
message: Diskspace NAS is {{states.sensor.synology_dsm_volume_used_volume_1.state}}
% in gebruik
title: Schijf van de NAS raakt vol
service: notify.mobile_app_nokia_7_plus
- data:
message: Diskspace NAS is {{states.sensor.synology_dsm_volume_used_volume_1.state}}
% in gebruik
title: Schijf van de NAS raakt vol
service: notify.mobile_app_iphone_7_Koepert
|
Handmatige triggers werken qua berichtgeving, maar de volgende zaken lijken bij een reload ook elke keer t wijzigen:
- indentations
- ' is soms opeens ' ' ..
Ik begrijp nu gewoon echt niet waarom de config geen error geeft, de handmatige trigger werkt, maar de automation gewoon niet..
- Hoe ' activeer' je de automation: !include automations.yaml? Welk schrijfwijze/indentation etc
- Wat doet welke ' , " etc.
- Wanneer gebruik je een - bij een indentation en wanneer niet? De voorbeelden op de HomeAssistant docs vind ik ook verwarrend in gebruik van ' en ', " etc. en ook qua indentation..
[
Voor 63% gewijzigd door
Koepert op 28-04-2020 20:26
]