I put up a new simple app in our public GitHub repo that will turn off a bunch of devices, and retry for devices that don't turn off, and keep retrying them until they do (or some max number of retries). This app could be used two ways: (1) to overcome the fact that a Group or Scene may fail for a long list of devices, or (2) to find out which device is problematic.
hubitat/HubitatPublic/blob/master/example-apps/allOff.groovy
definition(
name: "All Off",
namespace: "hubitat",
author: "Bruce Ravenel",
description: "Turn Devices Off with Recheck",
category: "Convenience",
iconUrl: "",
iconX2Url: ""
)
preferences {
page(name: "mainPage")
}
Map mainPage() {
dynamicPage(name: "mainPage", title: "All Off", uninstall: true, install: true) {
section {
input "appName", "text", title: "Name this instance of All Off", submitOnChange: true
if(appName) app.updateLabel(appName)
input "switches", "capability.switch", title: "Switches to turn off", multiple: true
paragraph "For the trigger use a Virtual Switch with auto-off enabled, turning it on fires the main off command for the switches above"
input "trigger", "capability.switch", title: "Trigger switch"
This file has been truncated. show original