|
@@ -1,45 +1,3 @@
|
|
|
-# - service: script.notify_users
|
|
|
-# data_template:
|
|
|
-# title: "It's {{ first_name }}'s birthday!"
|
|
|
-# users:
|
|
|
-# - notify.owners
|
|
|
-# message: >-
|
|
|
-# It is {{ full_name }}'s birthday today. {% if age is not none %}
|
|
|
-# {{- first_name }} is turning {{ age }} years.
|
|
|
-# {% endif %}
|
|
|
-
|
|
|
-# Send them a text and say <b>Happy Birthday!</b> to let them know that you appriciate them! :)
|
|
|
-# data_object:
|
|
|
-# tag: "birthday-notification-{{ context.id }}-{{ first_name | upper }}"
|
|
|
-# group: "birthday-notifications"
|
|
|
-# color: "#A83285"
|
|
|
-# icon_url: "https://home-assistant.kgv14.dev:8123/local/entities/birthday-cake.png"
|
|
|
-# actions:
|
|
|
-# - action: "{{ action_sms }}"
|
|
|
-# title: "Send SMS"
|
|
|
-# - wait_for_trigger:
|
|
|
-# platform: event
|
|
|
-# event_type: mobile_app_notification_action
|
|
|
-# event_data:
|
|
|
-# action: "{{action_sms}}"
|
|
|
-# timeout:
|
|
|
-# hours: 24
|
|
|
-# - choose:
|
|
|
-# conditions: "{{ wait.trigger is not none and wait.trigger.event.data.action == action_sms }}"
|
|
|
-# sequence:
|
|
|
-# service: notify.owners
|
|
|
-# data:
|
|
|
-# message: command_activity
|
|
|
-# title: "sms:{{ phone_number }}?body=Gratulere med {{ age|string + 'års ' if age is not none else '' }}dagen {{first_name}}!"
|
|
|
-# data:
|
|
|
-# tag: "android.intent.action.SENDTO"
|
|
|
-# default:
|
|
|
-# service: notify.owners
|
|
|
-# data:
|
|
|
-# message: clear_notification
|
|
|
-# data:
|
|
|
-# tag: "birthday-notification-{{ context.id }}-{{ first_name | upper }}"
|
|
|
-
|
|
|
blueprint:
|
|
|
domain: script
|
|
|
name: Notify user
|