1
0

Update notifications to discord

This commit is contained in:
Przemek Grondek 2024-05-19 12:19:29 +02:00
parent be80617ebb
commit cf5993b791
4 changed files with 10 additions and 8 deletions

View File

@ -140,7 +140,6 @@
images: images:
- "/config/www/cctv/living_room.mp4" - "/config/www/cctv/living_room.mp4"
- id: alarm_away_bedroom - id: alarm_away_bedroom
alias: '[Alarm] Trigger alarm when not at home (Bedroom)' alias: '[Alarm] Trigger alarm when not at home (Bedroom)'
trigger: trigger:

View File

@ -23,8 +23,9 @@
- {{ entity }} - {{ entity }}
{% endfor %} {% endfor %}
action: action:
- service: notify.mobile_app_iphone - service: notify.home_assistant
data: data:
title: "Low battery"
message: > message: >
Low battery
{% raw %}{{ device_attr(trigger.entity_id, 'name_by_user') }} has low battery {{ states(trigger.entity_id) }}% {% endraw %} {% raw %}{{ device_attr(trigger.entity_id, 'name_by_user') }} has low battery {{ states(trigger.entity_id) }}% {% endraw %}
target: [ "1070507369164984372" ]

View File

@ -11,8 +11,9 @@
subtype: device_offline subtype: device_offline
{% endfor %} {% endfor %}
action: action:
- service: notify.mobile_app_iphone - service: notify.home_assistant
data: data:
title: "Device unavailable"
message: > message: >
Device unavailable
{% raw %}{{ device_attr(trigger.event.data.device_id, 'name_by_user') }}{% endraw %} is unavailable {% raw %}{{ device_attr(trigger.event.data.device_id, 'name_by_user') }}{% endraw %} is unavailable
target: [ "1070507369164984372" ]

View File

@ -9,8 +9,9 @@
- {{ device.entity_id }} # {{ device.name }} - {{ device.entity_id }} # {{ device.name }}
{% endfor %} {% endfor %}
action: action:
- service: notify.mobile_app_iphone - service: notify.home_assistant
data: data:
title: "Device unavailable"
message: > message: >
Device unavailable
{% raw %}{{ device_attr(device_id(trigger.event.data.device_id), 'name_by_user') }}{% endraw %} is unavailable {% raw %}{{ device_attr(device_id(trigger.event.data.device_id), 'name_by_user') }}{% endraw %} is unavailable
target: [ "1070507369164984372" ]