input type time that used to work fine seems to be not working in my custom apps. in app settings time input params type are showing as blank
instead of as time
. trying to set a value does not seem to be working either and seems to cause the app to glitch.
so trying to figure out whats going on thought i would use this simple app below. when clicking on this app from SmartApps in the new ST app … it shows a “Something went wrong. Please try to install the SmartApp again.” popup and in the log its throwing this error:
error java.lang.RuntimeException: Metadata Error: Missing required page parameter 'name' @line -1 (pageTest)
what i am doing wrong and is there a know issue with input type time
?
thank you.
/**
* bangali test app
*
**/
definition (
name: "bangali test app",
namespace: "bangali",
author: "bangali",
description: "bangali test app",
category: "SmartThings Labs",
iconUrl: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience.png",
iconX2Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png",
iconX3Url: "https://s3.amazonaws.com/smartapp-icons/Convenience/Cat-Convenience@2x.png"
)
preferences {
page(name:"pageTest", title: "Test Inputs")
}
def pageTest() {
dynamicPage(name:"bangaliTest", title:"bangali test", install:true, uninstall:true) {
section("Title") {
input "wakeupTime", "time", title:"Wakeup Time?", required: true, defaultValue: (wakeupTime ?: "07:00"), submitOnChange:true
input "sleepTime", "time", title:"Sleep Time?", required: true, defaultValue: (sleepTime ?: "22:00"), submitOnChange:true
}
}
}
def installed() {
log.debug "Installed with settings: ${settings}"
initialize()
}
def updated() {
log.debug "Updated with settings: ${settings}"
unsubscribe()
initialize()
log.debug "$wakeupTime | $sleepTime"
}
def initialize() {}