The automation below tells me if a smartplug is using more than 275 Watts.
I am trying to avoid that i will get Telegram messages all the time.
I am trying to build in a delay. So i would like a Telegram after the first 5 minutes and after that after every hour the smart plug is still using more than 275 watts. At the moment i will get the Telegram after a hour even if the watts are below 275 after 10 minutes.
If i don’t use a delay i will get a Telegram constantly as long as the plug uses more than 275 watts.
alias: Zolder - Verbruik hoger dan 275 Watt (standaard verbruik)
description: ""
trigger:
- type: power
platform: device
device_id: a03bad515956885c71b8a35fc09756fb
entity_id: sensor.zolder_smartplug_active_power_3
domain: sensor
above: 275
for:
hours: 0
minutes: 5
seconds: 0
condition: []
action:
- repeat:
until:
- type: is_power
condition: device
device_id: a03bad515956885c71b8a35fc09756fb
entity_id: sensor.zolder_smartplug_active_power_3
domain: sensor
below: 275
sequence:
- delay: "01:00:00"
- service: notify.telegram_bericht_nick
data:
title: "!!!!!ZOLDER verbruik hoger dan 275 Watt!!!!!"
message: Servers of WIN11CLT01 aanlaten staan?
mode: single
trace:
stored_traces: 50