Using http:///cm?cmnd=status%201 as the webrequest to a Tasmota device, is it possible possible just to see / extract the Uptime value from the response?
I wish to use this in a routine to trigger if the device restarts?
Update: Found the link to the help, I needed to use “StatusPRM.Uptime” as the response key - works great thanks @TAustin
I’ve configured settings for Web Request #2 and #3, but when I select web request to execute they respond 404 not configured.
I have a screenshot of the edgebridge4pi -d
I know the app communicates with the server because when I send web request to execute 1, the server complains Endpoint: /urlpath?parm1=xxx Not an API request.
I’ve got a screenshot from postman with this GET command, so I know smartthings can fetch the URL from the server
I must not be configureing the app with the proper GET command.
This is what I have programmed in Settings Web Request #2 and #3
There is not a lot you can do with returned data given the limited functionality of SmartThings automations. If the return data is JSON, you have the capability of configuring a key to extract one value from the return data and then have an automation that triggers based on the value of that extract field. Please see the readme file for more info.
Hi - thanks for the suggestion. FYA, this question probably belongs in the edgebridge topic.
But my question would be, why wouldn’t you use the built-in notification capability within SmartThings? What would be the scenario where you would use this feature through edgebridge?
I do have a Routine that is supposed to do that, but it doesn’t work. That’s why I started googling and found your site.
I have a smartthings groovy IDE smartapp called Elder Care that notifies my neighbor via SMS if I haven’t moved in 10 hours. It works.
SmartThings is going to pull the plug on IDE the end of this month, and then it won’t work.
I’ve been trying to make a routine work on smartthings app that monitors Echolink Motion Sensor, if No motion for 10 hours then Send text message. The problem is, it will only trigger once, and never again. It’s the same for the routine I made to monitor your edgebridge. If Status offine for 15 minutes, then send text message. It triggers once and never again.
I’ve also tried setting preconditions like member location to insure I’m home and not moving. Otherwise it would notify while I’m on vacation or away from home. I’ve also tried setting preconditions like certain times of day, say between 6PM to 10AM. Still the routine only triggers once. People tend to forget about a notification and need a reminder or two.
I’ve opened three tickets with smartthings tech support about this problem. They ignore me.
I thought having your Web Requestor with an SMS option would be good because the hub would not need smarthings.com to send the SMS. Everything could be done local, in house. I don’t like having to depend on third party apps and servers like IDE or IFTTT, if my raspberry pi can do it.
I’ve been trying three days to figure out how to make your edgebridge and Web Requestor do an Elder Care routine. I’m not a programmer. I was surprised when I got the Elder Care script installed on IDE and it worked.
I signed up for some online java training, but I’m old and slow. That will take some time.
If I can get the elder care routine to work I would also like to get Google Sheets logging to work with edgebridge. EdgeBridge is a great idea. Thanks for developing it.
There’s a messaging app called “pushover”, it’s integrated with Sharptools, but I guess it’s possible to find other ways to use it.
The neat thing with pushover is, if your neighbor installs it on his phone, you can send him an actual alert message, that he needs to confirm before it stops reporting.
Hi. Apologies if I have missed or misunderstood something, but I can’t work out how to extract a value from a response and use it in an automation. Can anyone point me in the right direction?
Do you know the format of the data you are expecting back from the HTTP request?
The Settings field that you need to set up to get this to work is ‘Response key to extract’. Here you put the JSON key for the value you want to extract. So for example, if your response data is this:
{
"data": {
"key1": 123,
"key2": 456
}
}
And you wanted to extract the value of ‘key2’, then you would configure ‘data.key2’ in the Settings field called ‘Response key to extract’.
Now when you issue the HTTP request, that value will be extracted from the response data and placed in the field ‘Extracted Key Value’ that you see on the device Controls screen. You can test for values of that field in automations.