bravenel
(Bruce)
October 6, 2015, 7:57pm
11
Here is an app that does what you want: It turns on the lights when a Momentary Button Tile is turned on (which you would use Life 360 or IFTTT to do), and then turns them off x minutes later, unless they were already on.
/**
* Turn off after some minutes unless already on
*
* Copyright 2015 Bruce Ravenel
*
* 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.
*
*/
definition(
name: "Turn off after some minutes unless already on",
namespace: "bravenel",
author: "Bruce Ravenel",
description: "Turn switches off after some number of minutes, unless already on",
This file has been truncated. show original
1 Like