mirror of
https://github.com/mtan93/SmartThingsPublic.git
synced 2026-04-03 06:13:06 +01:00
Modifying 'LaMetric Time device handler and smart apps'
This commit is contained in:
File diff suppressed because it is too large
Load Diff
@@ -20,8 +20,8 @@ definition(
|
|||||||
name: "LaMetric Notifier",
|
name: "LaMetric Notifier",
|
||||||
namespace: "com.lametric",
|
namespace: "com.lametric",
|
||||||
author: "Mykola Kirichuk",
|
author: "Mykola Kirichuk",
|
||||||
description: "Notify about changes with sound and message on your LaMetric",
|
description: "Allows you to send notifications to your LaMetric Time when something happens in your home to notify the whole family.",
|
||||||
category: "Fun & Social",
|
category: "Family",
|
||||||
iconUrl: "https://developer.lametric.com/assets/smart_things/weather_60.png",
|
iconUrl: "https://developer.lametric.com/assets/smart_things/weather_60.png",
|
||||||
iconX2Url: "https://developer.lametric.com/assets/smart_things/weather_120.png",
|
iconX2Url: "https://developer.lametric.com/assets/smart_things/weather_120.png",
|
||||||
iconX3Url: "https://developer.lametric.com/assets/smart_things/weather_120.png")
|
iconX3Url: "https://developer.lametric.com/assets/smart_things/weather_120.png")
|
||||||
@@ -387,21 +387,8 @@ def eventHandler(evt) {
|
|||||||
def value = evt?.value;
|
def value = evt?.value;
|
||||||
|
|
||||||
if (allOk) {
|
if (allOk) {
|
||||||
log.trace "allOk"
|
log.trace "allOk"
|
||||||
// def lastTime = state[frequencyKey(evt)]
|
takeAction(evt)
|
||||||
// if (oncePerDayOk(lastTime)) {
|
|
||||||
/*
|
|
||||||
if (frequency) {
|
|
||||||
if (lastTime == null || now() - lastTime >= frequency * 60000) {
|
|
||||||
takeAction(evt)
|
|
||||||
}
|
|
||||||
else {
|
|
||||||
log.debug "Not taking action because $frequency minutes have not elapsed since last action"
|
|
||||||
}
|
|
||||||
/* }
|
|
||||||
else {*/
|
|
||||||
takeAction(evt)
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
log.debug "Not taking action because it was already taken today"
|
log.debug "Not taking action because it was already taken today"
|
||||||
|
|||||||
Reference in New Issue
Block a user