Execute piston from same hub but different locations?


#1

Is it possible to execute a piston from the same hub but different locations?

I have one hub, and a second location where I want to store all my virtual devices( trying to clean up smartthings dashboard). Is it possible to execute a piston from my virtual location instance to my physical location instance? I can seem to get it to fire?

The virtual home location seems to trigger and send execute piston command, but physical home piston never receives it/

Thanks


#2

You could always call the external URL


#3

holy crap! This just solved so many issues, and opened up a whole new can of worms for ideas.

With that you can pass arguments too…NICE!

However how do you get the url using the iPad app. The only way I can do currently is by opening an instance in a web browser to get it? Is there an easier way, since I primarily use iPad to script my pistons?

Thank you


#4

For those that may be interested.

  1. I set up a virtual location in smartthings called virtual Home
  2. I set up s virtual switch in the virtual Home location
  3. I set up an instance of webcore in the virtual Home location from smartthings
  4. I added this piston to the virtual Home location:
  5. In my normal home location I added this piston

If I trigger the test switch from my virtual location it turns on my light in my normal location
This may work also, I don’t know why it wouldn’t, if you have 2 hubs at different actual physical locations. I will have to try that too, as I have a vacation home with it’s own out about 300 miles away from my primary residence

[update]. Tried this with different physical locations and it works too. LOVING IT

Hope this helps someone that may need this


#5

Any additional pointers to your success between 2 physical locations. It seems as though your second import code is no longer valid.

I am looking at this a fix for my current situation. I went through the account migration beta and now all my Samsung products install in a separate IDE (graph-na04-useast2) location that has no hub but I was able to install WEBCoRE. My SmartThings location is on the original graph.api. I have been waiting to hear, for over 2 months with no answer, if I have to delete everything from the graph.api and add the hub to the NA04 and start over from scratch with everything. I might be able to get some functionality from one location to the other for example if the TV turns on (NA04) turn the backlights on behind the TV (graph.api) while they try to figure things out. I tinkered a bit with your examples to the virtual location, but I have not been successful with being able to get the $args.status available on the second location. Any help/guidance would greatly be appreciated. TIA

Edit: I ran into an issue with the Samsung device handler for the TV, it is able to turn off the TV, but not on. I was able to get the lights from my hub to turn on when the TV (on the phantom location) volume was changed to 10 with out using any variables using some of your posts on another thread. Now if they would fix thier TV handler I might be able to do something useful with it.