JNS
January 28, 2020, 5:34pm
5
I use @ogiewon virtual motion-switch for this.
/**
* Virtual Motion with Switch
*
* https://raw.githubusercontent.com/ogiewon/Hubitat/master/Drivers/virtual-motion-switch.src/virtual-motion-switch.groovy
*
* Copyright 2018 Daniel Ogorchock
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
* Change History:
*
* Date Who What
* ---- --- ----
This file has been truncated. show original
Virtual switches don't show up for me under 'When this happens' when setting up a routine in Alexa. They do show up under 'Add actions'. The virtual motion-switch shows up under both.
How are others getting virtual switches to show up for 'When this happens'?
2 Likes