Hi all, I am tryting to find a solution for the following:
If the amound of electricity I'm using is above a certain kWh , for more than 10 minutes, I want to be notificated.
How can I do that? I tought to make a dummy switch with a delay. But when the power is above the amound of kwh, the delayed switch will go on, even if after the 10 minutes the kwh is at a normal point again.
I would also like to do a similair thing with my door sensor. If the door is open for more than 5 minutes or so, I want to be notificated.
Notification if power consumption is too high
Moderator: leecollings
Re: Notification if power consumption is too high
Hi,
create a dummy switch that turns on when using more than x kWh and turns of when using less. Check every minute (script_time) if the switch is on and when it last updated its status. When it's more than 10 minutes, then send a notification.
Same goes for the door contact. Get the difference between current time and last update, if more than 10 minutes and contact is open then send message.
create a dummy switch that turns on when using more than x kWh and turns of when using less. Check every minute (script_time) if the switch is on and when it last updated its status. When it's more than 10 minutes, then send a notification.
Same goes for the door contact. Get the difference between current time and last update, if more than 10 minutes and contact is open then send message.
-
- Posts: 81
- Joined: Thursday 10 December 2015 0:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.4834
- Location: Netherlands
- Contact:
Re: Notification if power consumption is too high
Thanks that's a great solution! Didn't think of that.
Is there by any chance an example of a script_time script? I didn't use that before.
Is there by any chance an example of a script_time script? I didn't use that before.
-
- Posts: 81
- Joined: Thursday 10 December 2015 0:21
- Target OS: Raspberry Pi / ODroid
- Domoticz version: 3.4834
- Location: Netherlands
- Contact:
Re: Notification if power consumption is too high
Thanks I got it working now!
Who is online
Users browsing this forum: No registered users and 1 guest