Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
krlaframboise committed Jan 15, 2021
1 parent 8135802 commit 7b97eaa
Showing 1 changed file with 12 additions and 4 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/**
* Zooz Double Plug v1.3.2
* Zooz Double Plug v1.4
* (Models: ZEN25)
*
* Author:
Expand All @@ -9,6 +9,9 @@
*
* Changelog:
*
* 1.4 (01/14/2021)
* - Added support for 2.0 firmware.
*
* 1.3.2 (09/27/2020)
* - Added support for Refresh command of USB port.
* - Increase default reporting intervals to improve reliability of on/off states
Expand Down Expand Up @@ -45,7 +48,7 @@
*
*
*
* Copyright 2020 Kevin LaFramboise
* Copyright 2021 Kevin LaFramboise
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
Expand Down Expand Up @@ -909,15 +912,16 @@ private getConfigParams() {
powerReportingFrequencyParam,
energyReportingFrequencyParam,
voltageReportingFrequencyParam,
ampsReportingFrequencyParam,
ampsReportingFrequencyParam,
leftAutoOffEnabledParam,
leftAutoOffIntervalParam,
rightAutoOffEnabledParam,
rightAutoOffIntervalParam,
leftAutoOnEnabledParam,
leftAutoOnIntervalParam,
rightAutoOnEnabledParam,
rightAutoOnIntervalParam
rightAutoOnIntervalParam,
energyUsbReportsParam
]
}

Expand Down Expand Up @@ -989,6 +993,10 @@ private getLedIndicatorModeParam() {
return getParam(17, "LED Indicator Mode", 1, 1, [0:"Always On", 1:"On When Switch On", 2:"LED On for 5 Seconds", 3:"LED Always Off"])
}

private getEnergyUsbReportsParam() {
return getParam(18, "Enable/Disable Energy and USB Reports [FIRMWARE >= 2.0]", 1, 0, [0:"Both Reports Enabled [DEFAULT]", 1:"Both Reports Disabled", 2:"Energy Reports Disabled for Left Outlet", 3:"Energy Reports Disabled for Right Outlet", 4:"USB Reports Disabled"])
}

private getParam(num, name, size, defaultVal, options=null) {
def val = safeToInt((settings ? settings["configParam${num}"] : null), defaultVal)

Expand Down

0 comments on commit 7b97eaa

Please sign in to comment.