I am trying to do a reminder when people in my household turn the house ventilation up to MAX
This draws allot of power (Thats what I am using as a trigger and it works!) But I need the notification to come after 1 hour. So I thought that was easy just create a Delay of 1 hour… but that dosent work!
Is it possible to use the time stamp of the helper and then add an hour to this for triggering the message? (Sorry I am moving away from YAML to the UI for simplicity and I am a NOOB doing this!)
You want the trigger to be for: '01:00:00', so that it triggers when it’s been in that state for an hour. That way if somebody turns it off sooner, it won’t run.
Maybe I am trying to put two things in the same automations?
First trigger is for the power output >180 for 1:30 min.
Then condition that it was Off (Helper or I get to many messages if the power goes down shortly)
Then action to set the Helper to ON
Wait 59 min
Send message to turn it down
I am pretty sure I need to set something better than wait
Is there any way to set a timestamp on the helper (Toogle) and send the message 1 hour later from that time stamp? (Seems like the delay is getting reset the delay and it starts over somehow)
alias: Ventilationsanlæg max speed
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.shelly_plug_s08_power
for: '00:01:30'
above: '180'
condition:
- condition: state
entity_id: input_boolean.ventilationsanlaeg
state: 'off'
action:
- service: input_boolean.turn_on
data: {}
entity_id: input_boolean.ventilationsanlaeg
- delay:
hours: 0
minutes: 59
seconds: 0
milliseconds: 0
- service: notify.ios_group_caspersen_home
data:
message: >-
Ventilationsanlægget har kørt MAX speed i +1 time {{
states('sensor.time') }}
mode: single
Why not simply send the notification when it’s been drawing above 180 for 2:30?
You could also turn on a boolean when it’s been above 180 for 1:30, and then use that being on for an hour to trigger another automation. Or even use an alert that keeps notifying you once that’s been on for an hour. Then all you need to do is have an automation turn that boolean off after the power drops below a certain level.
Sorry I do have another for the boolean to turn off and give message that its turned to low.
alias: Ventilationsanlæg normal speed
description: ''
trigger:
- platform: numeric_state
entity_id: sensor.shelly_plug_s08_power
for: '00:01:30'
below: '70'
condition:
- condition: state
entity_id: input_boolean.ventilationsanlaeg
state: 'on'
action:
- service: notify.ios_group_caspersen_home
data:
message: >-
Ventilationsanlægget kører nu normalt hastighed igen {{
states('sensor.time') }}
- service: input_boolean.turn_off
data: {}
entity_id: input_boolean.ventilationsanlaeg
mode: single
The ventilation system is normally automated. BUT when people are cooking its manually turned up and its usual 1 hour.
Problem is that I have a Boolean and I think it would work if I could use that time stamp (ON) and then set a + 1 hour to that time for the message (The delay causes to many problems resetting the delay)
Just don’t know how to do this I have looked at some automation blueprints but havent got any of them working