GRClark
(Gene Clark)
October 28, 2018, 10:54pm
1
Looking for a simulated switch handler that doesn’t allow control through app - only want to be able to control it programmatically. @anon36505037 you’ve helped edit contact sensors before like this - is it possible to do this with a switch too?
GRClark
(Gene Clark)
October 29, 2018, 1:18am
3
Can’t seem to find where the GitHub repo is for simulated switch so I used this one but it looks different than what you showed.
/**
* Copyright 2015 SmartThings
*
* 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.
*
*/
metadata {
definition (name: "Simulated Switch", namespace: "erocm123", author: "Eric Maycock", vid:"generic-switch") {
capability "Switch"
capability "Relay Switch"
capability "Actuator"
This file has been truncated. show original
Believe this is the part that needs editing though…
GRClark
(Gene Clark)
October 29, 2018, 1:24am
4
Never mind I got it - just removed the action from the handler. Didn’t realize it was that easy. Thanks for your help!