Giter Club home page Giter Club logo

smartthings-1's Introduction

SmartThings

My experimental SmartThings Device Handler for the new 4 button Scene Switches 'Powered by Tuya' When these new 'Powered by Tuya'scene swicthes are used paired to a Tiya zigbee hub, all works perfect... but only within Tuya cloud platform. :(

This DH is based on https://github.com/YooSangBeom/SangBoyST/blob/master/devicetypes/sangboy/zemismart-button.src/zemismart-button.groovy and on a lot of research for the same issue in other home automation platforms.

Tested in SmartThings platform using ABC Manager app and simple automations

Rev 1.1 : - added 'held' and 'up_hold' (release) events decoding for the 2 right buttons (3 and 4). Works only when paired initally to Tuya Zigbee hub annd the battery is not removed!

Rev 2.0 : - shoud work in SmartThings, bringing all 12 possible buttons combination without pairing to Tuya /or Hubitat:)/ hubs first! - when pairing to ST hub, TS004F is initialized in 'Scene Control' mode. Note, that you need to first REMOVE the device that uses other driver and then pair the device again from SmartThings mobile app!. The initialization in Scene Control mode happens only when the device is in pairing mode, hence it is not possible to simply change the driver... the device must be removed and then added to ST hub again! - 4 child devices are created in order to use the standard SmartThings button capabilities (code by SangBoy)

Rev 2.1 - optimized configuration; removed reverseButton settings; debug logging is now true by default

Rev 2.2 - ... and one more (initialization) for luck!

Rev 2.3 - ... and initialize again on every Dimmer Mode event! (hopefully happens just once)

Rev 2.4 - EP1 binding bug fix; even more optimized configuration!

Rev 2.5 - fixed bug in createChildButtonDevices(); removed preferences section

Important: If pressing a button does nothing and you don't see any debug logs on SmartThings Groovy IDE 'Live Logging' page, try the following: Press simultaneously the two buttons on the right row (some TS004F switches have 2 dots and 4 dots engraved on these buttons) for about 5-6 seconds until the led of the bottom left key (3-dot-button) lights up for a split second. This key sequence circles between 'dimmer' and 'scene control' modes. Although this DHT tries to configure the switch in 'scene control' mode during the installation and inital pairing, for some users this fails by unknown (yet) reasons.

Rev 2.6 - added 'Reverse button order' setting back (off by default)

Rev 2.7 - added support for _TZ3000_pcqjmcud (YSR-MINI-Z); 'reverse button order' option bug fix;

Rev 3.0 - both Dimmer and Scene modes are now supported, the DHT does not try to force Scene mode anymore! Mode can be seen on the Groovy IDE, device 'Current States' section.

smartthings-1's People

Contributors

kkossev avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.