I expected to see the word “Open” or “Closed” on this contact sensor (new app):
Clicking the right arrow, shows detail page with what I expect:
The device handler:
metadata {
definition (name: "Particle Garage Door Sensor", namespace: "b", author: "B", cstHandler: true) {
capability "Contact Sensor"
}
simulator {}
tiles {}
}
def handleStateUpdate(update) {
sendEvent(name:"contact", value:"open")
}