EVcharge added send mails
This commit is contained in:
@@ -14,8 +14,14 @@ blueprint:
|
||||
# domain: binary_sensor
|
||||
|
||||
variables:
|
||||
recipient_list:
|
||||
recipient_list_notification:
|
||||
- notify.mobile_app_tiziano_iphone15pro
|
||||
recipient_list_gmail:
|
||||
title: "Evcharge Process"
|
||||
target:
|
||||
- "tiziano.trabattoni@outlook.com"
|
||||
- "ema.trabattoni@gmail.com"
|
||||
|
||||
# - notify.mobile_app_emanuele_s24
|
||||
evcharge_entity1_power_var: >-
|
||||
{% from 'template_library.jinja' import getpower_id %}
|
||||
@@ -34,18 +40,42 @@ actions:
|
||||
- conditions:
|
||||
- condition: trigger
|
||||
id:
|
||||
- p1-confort-light-on
|
||||
- test_animation
|
||||
- Pulsante1-single
|
||||
sequence:
|
||||
# Hereafter the attemped usage as variable initialization
|
||||
- repeat: # send message to all recipient-list members
|
||||
for_each: "{{ recipient_list }}"
|
||||
- alias: send notifications
|
||||
repeat: # send message to all recipient-list members
|
||||
for_each: "{{ recipient_list_notification }}"
|
||||
sequence:
|
||||
- action: "{{ repeat.item }}"
|
||||
metadata: {}
|
||||
data:
|
||||
message: >-
|
||||
"TEST -> >>{{ evcharge_entity1_power_var }}<<"
|
||||
title: TEST TEST
|
||||
title: "EVcharge process from HA"
|
||||
- action: notify.tiziano_trabattoni_gmail_com
|
||||
data:
|
||||
title: "{{ recipient_list_gmail['title'] }}"
|
||||
target: "{{ recipient_list_gmail['target'] }}"
|
||||
message: >-
|
||||
"TEST -> >>{{ evcharge_entity1_power_var }}<<"
|
||||
|
||||
# action: notify.example_gmail_com
|
||||
# data:
|
||||
# message: "test"
|
||||
# title: "test email"
|
||||
# target:
|
||||
# - "example2@gmail.com"
|
||||
# data:
|
||||
# cc:
|
||||
# - "example3@gmail.com"
|
||||
# bcc:
|
||||
# - "example4@gmail.com"
|
||||
# from: "example@gmail.com"
|
||||
# variables:
|
||||
# cmd: >-
|
||||
# "{% set ll = (repeat.item | list ) -%}{{ ll[0] }}"
|
||||
# titolo:
|
||||
# "{% set ll = (repeat.item | list ) -%}{{ repeat.item[ll[0]].title }}"
|
||||
# to:
|
||||
# "{% set ll = (repeat.item | list ) -%}{{ repeat.item[ll[0]].target }}"
|
||||
mode: single
|
||||
|
||||
Reference in New Issue
Block a user