Bug in developer.. cannot save changes in configuration in device types.. get unexpected error


(Larry) #1

just about any device type especially ones with my own configurTION PARAMETERS., WHEN I CHANGE SETTINGS I GET unexpected error popup… no errors whatsoever show up in logs.

i put extra debuggin in and nothing… the configuration function exits cleanly then the error pops up in the app…


(Larry) #2

heres an example.

logging

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug done

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug after send event

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug got now = 08/11/2018 1:24 PM

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug Humidity adjust = 0

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug Temperature adjust = 0

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug Humidity change value = 10

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug Temperature change value = 2

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug ST814: In configure timeout value = 99

936cf20e-9111-453d-b4a3-61e28bcd8e84 1:24:38 PM: debug in updated

code in configure.

def configure()
{

// default values not working trying to set implicitly if null

if (settings.ReportTime == null)
settings.ReportTime = 180
if (settings.TempChangeAmount == null)
settings.TempChangeAmount = 1
if (settings.HumidChangeAmount == null)
settings.HumidChangeAmount = 5
if (settings.TempOffset == null)
settings.TempOffset = 0
if (settings.HumidOffset == null)
settings.HumidOffset = 0

log.debug “ST814: In configure timeout value = $settings.ReportTime”
log.debug “Temperature change value = $settings.TempChangeAmount”
log.debug “Humidity change value = $settings.HumidChangeAmount”
log.debug “Temperature adjust = $settings.TempOffset”
log.debug “Humidity adjust = $settings.HumidOffset”

 def now = new Date().format('MM/dd/yyyy h:mm a',location.timeZone)
 log.debug "got now = $now"

sendEvent(name: “lastUpdate”, value: now, descriptionText: “Configured: $now”)
log.debug “after send event”

delayBetween([
   	/* report in every 5 minute(s) -- lgk change all to use settings */
    /* lgk override to save battery set report as defined in preferences */
    zwave.configurationV1.configurationSet(parameterNumber: 6, size: 2, scaledConfigurationValue: settings.ReportTime).format(),

	/* report a temperature change of 2 degree C */
    zwave.configurationV1.configurationSet(parameterNumber: 7, size: 1, scaledConfigurationValue: settings.TempChangeAmount).format(),

    /* report a humidity change of 5 percent */
    zwave.configurationV1.configurationSet(parameterNumber: 8, size: 1, scaledConfigurationValue: settings.HumidChangeAmount).format()
]) 
log.debug "done"

}

screenshot


(Larry) #3

more info the bug is definately in the app or back end. edited the configure function to have one line
log.debug “done” same unexpected error in app,


(Eric) #4

I’ve seen this before, on android only. Do you have an iOS device to verify it works on there?


(Larry) #5

Sorry, no apple devices.


(Jason "The Enabler" as deemed so by @Smart) #6

Yeah, I would certainly say this is a back-end issue. I’ve seen it a few times over the years as well. Usually it just clears itself up.

Have you force closed the app and reopened it? It could be network related as well.


(Larry) #7

Actually removed and reinstalled. Same behavior


(Larry) #8

Magically working again. No response from support


(www.rboyapps.com - Make your home your butler!) #9

It’s a bug with the Android app. Check your preferences input section of your DTH code, do you have a number input? If so then the Android app automatically adds a decimal to the input as the default value which then causes an invalid input exception. Solution, remove the decimal point manually.


(Larry) #10

No not my issue. There was no error in the.logs. if that was the case there would be an error.

RBoy
www.rboyapps.com - Make your home your butler!
Community Master

    August 13

It’s a bug with the Android app. Check your preferences input section of your DTH code, do you have a number input? If so then the Android app automatically adds a decimal to the input as the default value which then causes an invalid input exception. Solution, remove the decimal point manually.


(www.rboyapps.com - Make your home your butler!) #11

No, there’s no error in the logs, it’s a validation error bug in the ST mobile app. It’s a UI bug that affects only a DTH preference input type number which has a default value in the ST Android Classic app.

If you clear the input or enter a valid number without a decimal the error goes away.


(Larry) #12

No didn’t change anything
.at.it worked with same values the next day