Hi there, I am looking for help, I have a solar system installed at my home and a app on my phone to manage the inverters.
The app sends me a notification when the Grid goes off line and I want to use this notification as a trigger that will allow me to switch off all the large appliances in the house that will drain the backup battery.
Is there a Sonoff device that I can use as a trigger when the Grid goes offline or can I use the app notification as a trigger for iHost to then turn off the large appliances, How would I do this? Thanks
Without going into details I would imagine that the eWelink on it’s own, like the majority, or all, smart home apps, will not be able to do this.
However if you use the iHost then Node-red will allow you to do this.
If you have an Android device then install Macrodroid. It supports notifications as a trigger. And as an action you can use webhook to support on/off sonoff-ewelink.
Hello. Can you please describe in more detail how to use webhook in macrodroid? And please, if possible, in simple words, I am not very good at this. If possible, attach screenshots of macros from macrodroid.
There are two options. Macrodroid has its own server that provides webhooks and based on that you can control Macrodroid via webhooks.
So these webhooks can be used as a trigger to trigger some interaction via Macrodroid.
The second option is to use the ewelink webhook ($10) to control devices on the ewelink account.
Having ewelink webhooks we can add them in Macrodroid as actions and then when Macrodroid executes the trigger it will execute this action for us.
Let’s consider this option. I have video surveillance that sends me a notification about movement or some other event and I want the Sonoff device to somehow react to the notification received from another program.
In Macrodroid you create a macro. You select Notification as the trigger, then you configure it for which app and what words it should respond to, whether to everything or something specific, and whether it should pay attention to capital letters.
You set the action to http connection, where you provide a dedicated webhook address from ewelink as the url.
When a notification for the selected application arrives and contains specific words, Macrodroid will make a connection to the webhook address and then it will be according to what you set in the scene.
There is also an option to use the click on the screen function instead of a webhook in the action. But this requires the ewelink application to always be running in the foreground and you have to configure the click location very precisely, which can sometimes be troublesome.
I once asked the ewelink team to think about introducing the Intent function in the app, both in and out, so that it would be easy to control, but time passes and…
thank you. I’ll try to figure it out. There are some unclear moments, but I’ll try. I also once wanted to suggest to the ewelink team to start interacting with the macrodroid directly. I think it would be cool!!!
I tried the click function once, it’s very inconvenient. I actively use similar triggers to voice events in ewelink. But the condition with the web interceptor is completely unclear to me.
What is your current problem? It should be fairly simple…
Start Macrodroid and create a macro.
In “Triggers” press “+” select “Device Events” then “Notification” then “Notification Received” select the application for which notifications are received then set the options for text as needed and enter the text to which it should react.
In “Actions” “+” “Web Interactions” “HTTP Request” paste the url from ewelink webhook, as a precaution you can check “Allow any certificate”.
That’s it…
Of course you need to have ewelink web paid for, otherwise you won’t have a webhook to control sonoff.
If you use Android GO then capturing notifications won’t work, GO has limitations.
everything is clear with the trigger. I use such a trigger, but with the action described by you “In “Actions” “+” “Web interactions” “HTTP request” insert the URL from the ewelink web interceptor”, nothing is clear. Where is the ewelink web interceptor? I don’t understand anything about this. I have a subscription to ewelik web.
Watch the video, where test.ru is, enter your webhook address.
PS
What version of Android do you have, the older the version, the fewer functions are available in Macrodroid. Also make sure that macrodroid is the latest.
Yes, you are right. The translation is not always correct. I translate my text from Russian to English, although I am from Ukraine. The fact is that until recently, there were no keyboard layouts on computers in the Ukrainian language, since Microsoft and many other companies considered the Ukrainian language to be a dialect of the Russian language. And they did not see the need to bother with translation. The Ukrainian language is more complex than Russian in terms of the variety of words, and many words and phrases are not translated correctly. Therefore, I have to write in Russian. Thanks for the help, I created the scene, received the link. I have not yet checked the functionality.