Field error in object 'physicalgraph.device.Device' on field 'name': rejected value [null]; codes (Again)


(TD) #1

Folks, This has been reported before, when it comes to my garage door GD00Z I can’t ever seem to get passed this.
When I use the simulator it works fine with the actual garage door, whether i’m using doorControl or garageDoorControl but not the virtual door.
Also i’m using the basic “Z-Wave Garage Door Opener” opener provided by Smarthings, I’ve used the other devices no difference. Also have tried the redo / unpublish re-login blah blah to no avail as well.
This is the VERY basic code, couldn’t get any simpler in my opinion, what the heck is wrong with the darn IDE?

definition(
name: “TestGarageDoor”,
namespace: “myspace2”,
author: “My space2”,
description: “Just a test for now2”,
category: “Safety & Security”,
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 {
section(“Garage door”) {
input “doortest2”, “capability.doorControl”, title: “Which garage door controller?”
}
}

def installed() {
log.debug "Installed with settings: ${settings}"
initialize()
}

def updated() {
log.debug "Updated with settings: ${settings}"
unsubscribe()
initialize()
}

def initialize() {
// TODO: subscribe to attributes, devices, locations, etc.
log.debug "Initialized with settings: ${settings}"
subscribe(doortest2, “door”, doorActivity)
}

def doorActivity(evt) {
log.debug "here we go"
log.debug “Door Contact Sensor State : $evt.value”
}