blueprints/automation/wd-close-weather-notification.yaml aktualisiert
This commit is contained in:
@@ -36,7 +36,6 @@ blueprint:
|
|||||||
device_class: temperature
|
device_class: temperature
|
||||||
temp_above:
|
temp_above:
|
||||||
name: Notify if Temperature Above
|
name: Notify if Temperature Above
|
||||||
description: Optional threshold to trigger notification
|
|
||||||
default: 22
|
default: 22
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
@@ -45,7 +44,6 @@ blueprint:
|
|||||||
unit_of_measurement: °C
|
unit_of_measurement: °C
|
||||||
temp_below:
|
temp_below:
|
||||||
name: Notify if Temperature Below
|
name: Notify if Temperature Below
|
||||||
description: Optional threshold to trigger notification
|
|
||||||
default: 17
|
default: 17
|
||||||
selector:
|
selector:
|
||||||
number:
|
number:
|
||||||
@@ -53,11 +51,11 @@ blueprint:
|
|||||||
max: 50
|
max: 50
|
||||||
unit_of_measurement: °C
|
unit_of_measurement: °C
|
||||||
notify_target:
|
notify_target:
|
||||||
name: Notification Target
|
name: Notification Service
|
||||||
description: Select one or more valid notify services (mobile app, Alexa, Telegram, etc.)
|
description: Select the notify service (mobile app, Alexa, Telegram, etc.)
|
||||||
selector:
|
selector:
|
||||||
target:
|
entity:
|
||||||
integration: notify
|
domain: notify
|
||||||
custom_message:
|
custom_message:
|
||||||
name: Custom Notification Message
|
name: Custom Notification Message
|
||||||
default: "{{ entity_name }} is open! Trigger: {{ trigger_state }}"
|
default: "{{ entity_name }} is open! Trigger: {{ trigger_state }}"
|
||||||
@@ -84,7 +82,7 @@ trigger:
|
|||||||
condition:
|
condition:
|
||||||
- condition: state
|
- condition: state
|
||||||
entity_id: !input openings
|
entity_id: !input openings
|
||||||
state: 'on'
|
state: "on"
|
||||||
|
|
||||||
action:
|
action:
|
||||||
- variables:
|
- variables:
|
||||||
@@ -107,8 +105,7 @@ action:
|
|||||||
unknown
|
unknown
|
||||||
{% endif %}
|
{% endif %}
|
||||||
|
|
||||||
- service: notify.notify
|
- service: "{{ selected_notify_target }}"
|
||||||
target: !input notify_target
|
|
||||||
data:
|
data:
|
||||||
message: >
|
message: >
|
||||||
{% for entity_name in open_entities %}
|
{% for entity_name in open_entities %}
|
||||||
|
|||||||
Reference in New Issue
Block a user