Poer-load-high created and in testing
This commit is contained in:
52
blueprints/automation/homeassistant/power-load-high.yaml
Normal file
52
blueprints/automation/homeassistant/power-load-high.yaml
Normal file
@@ -0,0 +1,52 @@
|
||||
blueprint:
|
||||
name: Power-load-high
|
||||
description: Send alert in case of High Power Load
|
||||
domain: automation
|
||||
author: Tiziano Trabattoni
|
||||
# input:
|
||||
# window_sensor:
|
||||
# name: Window Status
|
||||
# description: Identifies the Window Sensor Device for Opened Status
|
||||
# selector:
|
||||
# entity:
|
||||
# filter:
|
||||
# - device_class: door
|
||||
# domain: binary_sensor
|
||||
|
||||
variables:
|
||||
recipient_list:
|
||||
- notify.mobile_app_tiziano_iphone15pro
|
||||
# - notify.mobile_app_emanuele_s24
|
||||
|
||||
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
|
||||
Reference in New Issue
Block a user