46 lines
1.2 KiB
YAML
46 lines
1.2 KiB
YAML
turn_on_pigry:
|
|
sequence:
|
|
- type: turn_on
|
|
device_id: 24de64bd6b33c91e5b13136abefb5306
|
|
entity_id: 5f738065e2d6c1c244a33fea4a8b4aaa
|
|
domain: switch
|
|
alias: turn_on_pigry
|
|
description: ''
|
|
'1766773638272':
|
|
sequence:
|
|
- action: automation.trigger
|
|
metadata: {}
|
|
target:
|
|
entity_id: automation.set_all_heaters_to_auto
|
|
data:
|
|
skip_condition: true
|
|
alias: Set all heaters to auto script
|
|
description: ''
|
|
notify_email_ntfy:
|
|
alias: notify_email_ntfy
|
|
description: ''
|
|
fields:
|
|
title:
|
|
description: Tytuł powiadomienia
|
|
example: Alarm
|
|
message:
|
|
description: Treść powiadomienia
|
|
example: Wykryto ruch w salonie
|
|
sequence:
|
|
- action: rest_command.ntfy_send
|
|
data:
|
|
message: "{% if title is defined and title|length > 0 %}\n {{ title }}: {{
|
|
message }}\n{% else %}\n {{ message }}\n{% endif %}"
|
|
- choose:
|
|
- conditions: '{{ title is defined and title|length > 0 }}'
|
|
sequence:
|
|
- action: notify.email_notification
|
|
data:
|
|
title: '{{ title }}'
|
|
message: '{{ message }}'
|
|
default:
|
|
- action: notify.email_notification
|
|
data:
|
|
title: '{{ message }}'
|
|
message: ''
|