mdawson
(Different Computers. So happy with Indigo.)
3
Well, I looked around for this, and I don’t see HOW to do it. When I go into the SmartApp in the ST app, I get a list of configured devices, but no options for choosing a virtual switch to act as the trigger.
When I look at the SmartApp from the IDE, I don’t see any way to associate it with a virtual switch.
Just to make sure, have you have your created smart app on the IDE and published it?
It should show up on your account and in the mobile app SmartApp store (where you add new ones) under My Apps. This should be the last “tab” on the bottom of the app and also where you connect new devices.
From there, you add the switch to the SmartApp rather adding the app to the switch
mdawson
(Different Computers. So happy with Indigo.)
5
I have created it. It does appear. When I try to configure it in the ST app, it asks me which devices I want to control, but does not let me specify what device I could associate it with–in other words, no place to select the virtual switch EXCEPT as a device that GETS turned on/off, not as the device that TRIGGERS the Big Turn ON/OFF.
I’m trying to gather all my outside light devices in one virtual switch for a single tile in SmartTiles.
You can do the same thing “The Big Switch” does with smartlighting. you might want to give that app a shot instead. With out going through the code of the smartapp IDK why it can’t be a trigger but can be triggered. That part doesn’t make sense.
You dont add the smartapp to the device. You add the device to the smartapp. Basically you load up your app and select the Virtual device this app should use. Once you have done that and filled in any other required preference look at the SmartApps option for this V-Device under Things. You will now see a reference to the app. Does your smart app have at least this code in it?
preferences {
section("Virtual Switch to start the Smartapp Timer process"){
input "vtSwitch", "device.onOffButtonTile", title: "Choose a Virtual Switch"
}
}
def installed() {
initialize()
}
def updated() {