Just out of curiosity, are you using the update v1.1 app or the original one? There shouldn’t be any difference but while making the v1.1 changes I tweaked a few things in code to avoid some typecasting issues that could arise. But, seeing as though you are having an issue at installation, I don’t think that is even in play. It’s odd that Support wasn’t able to find any log anywhere as to the error.
One idea that might give us a datapoint is to install the code with just the stuff that should be happening at install and nothing else. I chopped it down to just that if you want to try it.
def appVersion() {
return "Test"
}
definition(
name: "Smart Dehumidifier Control v${appVersion()}",
namespace: "LLWarrenP",
author: "Warren Poschman",
description: "Control dehumidifier based on relative humidity from an external sensor",
category: "Convenience",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Meta/water_moisture.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Meta/water_moisture@2x.png",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Meta/water_moisture@2x.png")
preferences {
section("Smart Dehumidifier Control v${appVersion()}")
section("Control which Dehumidifier:") {
input "dehumidifier", "capability.switch", required:true
}
section("Use the following humidity sensor(s):") {
input "humiditySensor", "capability.relativeHumidityMeasurement", required:true
}
section("Desired Humidity Setpoint") {
input "humiditySetpoint", "number", title: "Setpoint % RH", defaultValue: 50, required:true
}
section("Also allow an overshoot of +/-:") {
input "humidityOvershoot", "number", title: "Overshoot % RH", range: 0..25, defaultValue: 0, required:true
}
section("Require a minimum off cycle time of this many minutes:") {
input "minCycleTime", "number", title: "Minimum Off Cycle (Minutes)", defaultValue: 0, required:true
}
section( "Continuous Runtime Notifications" ) {
input "maxRuntime", "number", title: "Maximum Runtime (Hours)", range: 0..48, defaultValue: 0, required:true
input "messageText", "text", title: "Custom Runtime Alert Text (optional)", required: false
input "phone", "phone", title: "Phone Number (for SMS, optional)", required: false
input "pushAndPhone", "enum", title: "Both Push and SMS?", required: false, options: ["Yes","No"]
}
}
def installed() {
log.debug "Installed with settings: ${settings}"
subscribe(humiditySensor, "humidity", humidityHandler)
}
def updated() {
log.debug "Updated with settings: ${settings}"
unsubscribe()
subscribe(humiditySensor, "humidity", humidityHandler)
}
def humidityHandler(evt) {
log.debug "humidity changed to: ${evt.value}%"
def currentHumidity = Integer.parseInt(evt.value.replace("%", ""))
}
// END OF FILE