Simple Remote Control Via URL


#7

By default yes, but if you change the ā€˜piston execution parallelismā€™ to ā€˜enabledā€™ in the piston settings, then multiple triggers will spawn multiple concurrent waits.

Iā€™m not 100% certain if this will mess up the existing $args.device value thoughā€¦ have fun testing that one lol! :crazy_face:

For the benefit of others, this setting is accessed by clicking on the piston name whilst in the editor, then the cog symbol.


#8

So I did a quick testā€¦ parallelism enabled does not helpā€¦ if you change any of the $args, only the last sent values are used.

I guess you would need to store the various $args values in variables, so each parallel execution can refer to the original $args values, not the newly updated ones.

Leave that one to you @WCmore

EDIT: Storing $args does not work eitherā€¦ they get overwrittenā€¦ will need to store an array of values, and a counter for each execution so the correct position in the array can be called backā€¦ more than I can be bothered to do lol


#9

LOL. I think I will leave out the extra code for the WAIT.
IMO, piston ā€œ69q0ā€ is much more elegant & useful without it,
so any (all?) devices can be controlled with that one piston.


#10

I agreeā€¦ waits can be processed on the device / software sending the request.


#11

For anyone looking for a use case for this, Iā€™ve setup two iOS shortcuts to disable my Arlo cameras for a certain period of time or until a certain time or day. When running the shortcut I am asked for either the amount of minutes to disable them or the time to turn them back on (dependent on the shortcut run), and that number is then passed at the end of a Webcore URL request in my shortcut. I can post a screenshot of my shortcuts, if anyone else is interested.
Iā€™m not sure why NetGear still hasnā€™t hopped on the shortcut bus yet, but this is actually a more powerful solution than they would have come up with.


#12

I have been experimenting with a wifi ESP8266/arduino device sending status to webcore like thisā€¦

URL/execute/Arduino1?motion=active&door=open&temp=75&humidity=50&pump=on

Ultimately wanted to use this device at another house (which doesnā€™t have SmartThings) to keep an eye on the failing sump pump.


Stringify type http trigger in Webcore
#13

Kevin, What Command are you running in webcore to disable and resume your Arlo cameras. I have not been able to get this accomplished. If I can I will then emulate your iOS short cut. Can you share your piston?


#14

I think you were referring to me when you wrote this. If youā€™ve added your Arlo cameras to Smartthings and Webcore then they should show up there. You then just turn them ā€œoffā€ or ā€œonā€. I would rather the ability to Arm or Disarm, but Samsung doesnā€™t give us that ability.


#15

bwarman, Thanks. I tired on and off sometime ago, but did not work for some reason. I tried a test this morning and seem to work without issue. Agree Arm and Disarm would be much preferable, but I am just turning 2 of my 3 cameras off when my wife or I am at home, and then turn on when we are all away.


#16

@millsjq, yeah, Iā€™ve had spotty reliability with any type of API calls to Arlo. I used to use Stringify to control my Shortcuts and that wouldnā€™t always work either. Iā€™ve noticed that it seems less likely to turn off/on when there is activity being recorded on one of the cameras. If I turn them off because Iā€™ve gotten an alert, I almost always check to make sure theyā€™ve all turned off.


#17

Thanks for the additional info. I also was using Stringify and with Arlo, had greater reliability and options. In almost all other areas Webcore give me more flexibility.


#18

Quick update. Until Webcore can arm/disarm the Arlo base station I have switched to using IFTTT to arm and disarm my Arlo base station. I created a virtual switch in Smartthings called ā€œArlo Camerasā€ and then created an applet in IFTTT which, ā€œIf Arlo Cameras switches to Offā€ will disarm my Arlo base station. Then I created one doing the opposite so ā€œIf Arlo Cameras switches to Onā€ will arm my base station. I used the same iOS shortcuts but just turned my virtual ā€œArlo Camerasā€ switch on and off. Then IFTTT takes care of the rest.

The added bonus of doing it this way is that I can use my Echos and Google Homes to turn on and off ā€œArlo Camerasā€, which turns on and off my base station.


#19

Please be careful with this @bwarmanā€¦

Someone with bad intentions can easily disarm your stationā€¦ even from outside.


#20

Yeah, I considered that but I also added push notifications if the applet ever runs, so Iā€™ll be alerted if they ever do turn off when I donā€™t want them to.

I know itā€™s not rock solid security, but a lot of loopholes would have to be stepped through in order for my security to completely fall through. Iā€™ve also got a security system, Ring doorbell, and a few cameras inside.


#21

How did you get ā€œdevice device = {$args.device}ā€ in there to begin with? I can get ā€œdevice device = {$device}ā€ defined but the former isnā€™t an option in the web editor. It doesnā€™t let me manually define that.


#22

For the initial value, select expression and set $args.device as the value.


#23

Awesome, yea I eventually figured out that was a way to make that appear, although seemed like a round about way to get there. Good to know my guess was correct. Working on a general purpose piston for Amazon Echo, to make them speak individually (EchoSpeaks SmartApp), announce across them (EchoSpeaks) or set message notifications(Alexa NotifyMe Skill) with a single web driven piston, the idea being this can be driven by external means, like Tasker, MacroDroid, a Raspberry Pi or whatever. Basically a general purpose text to speech dohickey.

Also took me a while to figure out how to test for empty arguments since this piston does several very different things, each ā€œfunctionā€ is just a different argument (or arguments) to get it to do that particular thing that just falls through an if, else if, else if logic until it figures out what you want it to do.


#24


#25

Full write up please!


#26

:roll_eyes: