Modifying 'LaMetric Time device handler and smart apps'

This commit is contained in:
Nazar Bilous
2016-06-24 11:18:02 -05:00
parent ab61db3699
commit 6e32676fe5
2 changed files with 392 additions and 432 deletions

View File

@@ -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"