Thanks a lot!
However
def devices = settings.inputDevices
devices now contains null
But when I loop through
settings.each {
log.debug “key: $it.key value: $it.value”
}
It does contain valid data
The devices are stored as input:
preferences {
section("Allow Endpoint to Control These Things...") {
input "switches", "capability.switch", title: "Which Switches?", multiple: true, required: false
input "dimmers", "capability.switchLevel", title: "Which Dimmers?", multiple: true, required: false
input "thermostats", "capability.thermostat", title: "Which Thermostats?", multiple: true, required: false
input "motions", "capability.motionSensor", title: "Which Motions?", multiple: true, required: false
input "accelerations", "capability.accelerationSensor", title: "Which Accelerations?", multiple: true, required: false
input "contacts", "capability.contactSensor", title: "Which Contacts?", multiple: true, required: false
input "illuminants", "capability.illuminanceMeasurement", title: "Which Illuminance Sensors?", multiple: true, required: false
input "temperatures", "capability.temperatureMeasurement", title: "Which Temperatures?", multiple: true, required: false
input "humidities", "capability.relativeHumidityMeasurement", title: "Which Humidities?", multiple: true, required: false
input "presences", "capability.presenceSensor", title: "Which Presence?", multiple: true, required: false
input "locks", "capability.lock", title: "Which Locks?", multiple: true, required: false
input "batteries", "capability.battery", title: "Which Batteries?", multiple: true, required: false
input "powers", "capability.powerMeter", title: "Power Meters", required:false, multiple: true
input "energys", "capability.energyMeter", title: "Energy Meters", required:false, multiple: true
input "dioxides", "capability.carbonDioxideMeasurement", title: "Co2 Measurement", required: false, multiple: true
input "signals", "capability.signalStrength", title: "Signal Strength", required: false, multiple: true
input "leaks", "capability.waterSensor", title: "Water Detection", required: false, multiple: true
input "sounds", "capability.soundPressureLevel", title: "Sound Pressure", required: false, multiple: true
input "colors", "capability.colorControl", title: "Color", required: false, multiple: true
input "colorTemperatures", "capability.colorTemperature", title: "Color Temperature", required: false, multiple: true
}
}
However,
def devices = getChildDevices()
Also returns null