Timer to get notification if something is on too long

Hi All,

Could someone guide me how to create automation which would give me some kind of notification if the lights are on longer than 2h. But it will reset and no notification if the light are off before 2h time past

2 Likes

Hey

This a feature not natively supported on the eWeLink app. You can use other platforms to automate linking eWeLink.

I’m turning it into a feature request so others can vote.

Thx for the input!

2 Likes

Hi,
I do this with google automations.
I have window sensors, it sends an alert on my speaker and a notification on my phone if the windows are open for more than 10 minutes. It works very well.

You have to write a short script, but they have an AI that can help if needed.

I think @eimantasq request is very interesting, at the moment to be able to carry out scenes of this type I use Smartthings but it would be nice to make everything work on ewelink

Locally it would be possible to do it with Homebridge or using HA.
The possibilities are much greater with them.
It could also be done with Node-Red but you would have to know a little more about it.

Do anybody has Node-red template to look at in ?

This could be done based on https://sequematic.com

The device must send information that it has entered the ON state.
Then a sequence is started that will count down 2H and after this time it will send an email or other defined action as your notification.

If the device changes state to OFF it must send this information.
Then the TIME sequence is stopped and the notification will not be executed.
When the device enters the ON state again, everything will start over.

On the eWelink side you need two scenes for ON and OFF which will use the webhook to send the variable.

On the SEQU side you need three sequences and one variable.





l2

Do the same for OFF


Thank you for your support. Webhook’s are new to me… I managed to get Ihost to set webhook successfully, but it’s not triggering the timer… if i try to run sequence manually it’s working

Hmm I’m not sure about iHost in this case… My solution doesn’t take that into account.

The cloud or iHost must send information to SEQU about what’s happening with the device (light). That means you have to have a scene that uses this device as IF and as THEN provide the url to SEQU…
However, on the SEQU side you have to create a Variable and send ON or OFF values ​​to it.

The address will contain your account id and the variable name and after the = sign there is a value.
https://sequematic.com/variable-change/***ID***/Light-Status/=
It has to be done as I showed in the screenshots

Does the variable has to be empty? just the name light status ?

So…

You can see that you created a Variable with this name, so this part is ok.
Now click on the plugin icon and you will be given a url to both submit the value for this variable and check the status.

You need the url for sending values ​​for two scenes: ON and OFF.
When you correctly execute a webhook call using these addresses, your Empty Variable will start to contain ON or OFF values depending on the device state.


1 Like

Inside I have only 2 URL’s

Yes, this is normal for new variables that have not yet received any value.
You are interested in this second url, copy it only instead of 1 after the = sign add ON and initiate wehbook call.

https://sequematic.com/variable-change/****/Light-Status/=ON

https://sequematic.com/variable-change/****/Light-Status/=OFF

And these addresses must be executed as webhooks in your scenes on the iHost/Cloud side.
According to the device state of course… :slight_smile:

This way you pass the device state to a variable on the SEQU side. And this handles the TIME sequence behavior.

Wow, you seem to understand it well.

It would be interesting to put together a tutorial about this.

This solution seems to be very interesting.

If you want to put together a tutorial and need help, you can count on me.

1 Like

Hmm

It would be rather difficult to write something here, because the number of potential combinations is too large for it to make any sense.

I always try to help if someone has a problem and of course if am able to help, which does not always have to be the case. :slight_smile:

So the guide will probably not appear here. In the case of this portal, there is a pretty good FAQ there, based on which you can understand which function is for what.

And in a more specific case, if I am able to help, I try to add it to the thread.

I have already written about solutions based on SEQU a few times on this forum regarding various situations.

1 Like

I believe that this is what the community needs.

People willing to help.

I’m glad to hear that.

Yes, I was looking here about how complicated it would be.

This tool is really amazing.

I’m glad to know that if I have a question, someone could help me with it if their FAQ can’t help me with my problem.

1 Like

Thank you!!! I managed to set it up. I the beginning I was using the get ling in web hook’s…

2 Likes

I’m glad it worked for you… So it meets your needs? :slight_smile:

Yes, I made group of lights witch shouldn’t be ON longer then 2h and use this webhook. Is there’re any other solution instead of email? [ it’s likely to be ignored :slight_smile: ] Also can i send webhooks back to Ewelink web ?