Files
home-assistant/blueprints/automation/homeassistant/power-load-high.yaml

45 lines
1.1 KiB
YAML

blueprint:
name: Power-load-high
description: Send alert in case of High Power Load
domain: automation
author: Tiziano Trabattoni
variables:
recipient_list:
- notify.mobile_app_tiziano_iphone15pro
- notify.mobile_app_emanuele_s24
- notify.mobile_app_enza_iphone13
triggers:
- trigger: numeric_state
entity_id: sensor.pw_load_power
for:
hours: 0
minutes: 0
seconds: 2
value_template: "{{ ( ( (state.state | float ) * 1000) | int ) }}"
above: input_number.power_site_limit
id: overpower
# - trigger: state
# entity_id: input_number.power_site_limit
conditions: []
actions:
- if:
condition: trigger # trigger
# value_template: "{{ true }}"
id: overpower
then:
sequence:
repeat:
for_each: "{{ recipient_list }}"
sequence:
- action: "{{ repeat.item }}"
metadata: {}
data:
title: CARICO ECCESSIVO - SPEGNERE QUALCOSA
message: >-
"Scollegare qualcosa {{ ( ( (states('sensor.pw_load_power') | float) * 1000 ) | int ) }} W."
mode: single