at9
May 21, 2020, 1:54pm
22
If anybody want this I modified the ST driver to added in buttons for double tapped and hold of the on and off buttons. I made them all pushable button events as I find these more useful in automatons.
I also added in an option to turn off the debug logs as well as the ability to change the dimming levels in the device page.
/**
* Device Driver for Hubitat Elevation
* V 0.1
*
* 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.
*
* Based on ZigBee Battery Accessory Dimmer by smartthings adapted for Hubitat Elevation by at9
* Original source :https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/devicetypes/smartthings/zigbee-battery-accessory-dimmer.src/zigbee-battery-accessory-dimmer.groovy
*
* Changes:
* Removed Tiles
* Added in Pushable buttons for Sengled Smart Switch
* Added in debug logging toggle
This file has been truncated. show original
1 Like