I know that WebCoRE has a endpoint url that you can execute to run a piston directly from something like tasker or a custom app. Question is, is there a way to get device status from a URL? like if a device is on or off etc? When I go to edit a piston there is a list of devices on the right which has the status is there a web call to get the statuses?
Getting Statuses of Devices from a webcall
WCmore
#3
The easiest way to do this is:
- Tasker send a HTTP Get to trigger the piston.
- If Switch is on, Send SMS = “Switch is ON”
- If Switch is off, Send SMS = “Switch is OFF”
If you don’t want the SMS, (or the Android has no SIM card), then you can do this:
- Tasker send a HTTP Get to trigger the piston.
- If Switch is on, Send PUSH Notification = “Switch is ON”
- If Switch if off, Send PUSH Notification = “Switch is OFF”
An advanced version of this let’s Tasker monitor the notification tray, and do something based on which message pops up. (programming Tasker to listen for those specific notifications is the trickiest part)
For the record, the round trip duration (in my home) is about 1.5 seconds.
(That is from Tasker to webCoRE and back to the phone)