When i login to my IDE and go to device handlers to create a new one, i can choose the option to create it from an example which shows me a list for most of the device handlers originally there by smartthings but another part of those handlers aren’t there
Does anyone have any idea how to modify those codes, specially “zigbee window shade” which I’m looking for?
Thanks in advance
joshua_lyon
(Josh, SharpTools.io Dashboard)
August 6, 2019, 2:08pm
2
You can always search the SmartThings GitHub Repo:
Here’s the Zigbee Window Shade source:
/**
*
* Copyright 2019 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 Window Shade", namespace: "smartthings", author: "SmartThings", ocfDeviceType: "oic.d.blind", mnmn: "SmartThings", vid: "generic-shade") {
capability "Actuator"
capability "Configuration"
capability "Refresh"
This file has been truncated. show original
1 Like
note for copying/modyfying samsung DH, it wont let you save any DH which has local exicution in the metadata
1 Like