Nidhal
February 26, 2017, 5:00am
1
I am trying to use the DataType class referenced in the zigbee reference. It has some helpful static methods that make life easy.
However, the class seems to be missing and I don’t think you can explicitly import classes in the ST runtime.
Is the class really missing or am I missing something?
http://docs.smartthings.com/en/latest/ref-docs/zigbee-ref.html#datatype
It works for me if you import it first. Pulled from the SmartThings ZigBee lock code.
import physicalgraph.zigbee.zcl.DataType
Reference code
/**
* ZigBee Lock
*
* Copyright 2015 SmartThings
*
* Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
* in compliance with the License. You may obtain a copy of the License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software distributed under the License is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License
* for the specific language governing permissions and limitations under the License.
*
*/
import physicalgraph.zigbee.zcl.DataType
metadata {
definition (name: "ZigBee Lock", namespace: "smartthings", author: "SmartThings") {
capability "Actuator"
This file has been truncated. show original
1 Like