[RELEASE] Tuya Scene Switch TS004F driver (w/ healthStatus)

REVISIONS HISTORY:

  • ver. 1.0.0 2021-05-08 - SmartThings version
  • ver. 2.0.0 2021-10-03 - First version for Hubitat in 'Scene Control'mode - AFTER PAIRING FIRST to Tuya Zigbee gateway!
  • ver. 2.1.0 2021-10-20 - typos fixed; button wrong event names bug fixed; extended debug logging; added experimental switchToDimmerMode command
  • ver. 2.1.1 2021-10-20 - numberOfButtons event bug fix;
  • ver. 2.2.0 2021-10-20 - First succesfuly working version with HE!
  • ver. 2.2.1 2021-10-23 - added "Reverse button order" preference option
  • ver. 2.2.2 2021-11-17 - added battery reporting capability; added buttons handlers for use in Hubutat Dashboards; code cleanup
  • ver. 2.2.3 2021-12-01 - added fingerprint for Tuya Remote _TZ3000_pcqjmcud
  • ver. 2.2.4 2021-12-05 - added support for 'YSR-MINI-Z Remote TS004F'
  • ver. 2.3.0 2022-02-13 - added support for 'Tuya Smart Knob TS004F'
  • ver. 2.4.0 2022-03-31 - added support for 'MOES remote TS0044', singleThreaded: true; bug fix: debouncing timer was not started for TS0044
  • ver. 2.4.1 2022-04-23 - improved tracing of debouncing logic code; option [overwrite: true] is set explicitely on debouncing timer restart; debounce timer increased to 1000ms
  • ver. 2.4.2 2022-05-06 - added LoraTap 6 button Scene Controller
  • ver. 2.4.3 2022-09-18 - added TS0042 Tuya Zigbee 2 Gang Wireless Smart Switch; removed 'release' event for TS0044 switches (not supported by hardware); 'release' digital event bug fix.
  • ver. 2.4.4 2022-10-22 - _TZ3000_vp6clf9d fingerprint correction; importURL changed to dev. branch; added _TZ3000_w8jwkczz and other TS0041, TS0042, TS0043, TS004 fingerprints
  • ver. 2.4.5 2022-10-27 - added icasa ICZB-KPD18S 8 button controller.
  • ver. 2.4.6 2022-11-20 - added TS004F _TZ3000_ja5osu5g - 1 button!; isTuya() bug fix
  • ver. 2.4.7 2022-12-22- (dev. branch) added TS004F _TZ3000_rco1yzb1 LIDL Smart Button SSBM A1; added _TZ3000_u3nv1jwk
  • ver. 2.5.0 2023-01-14 - bug fix: battery percentage remaining automatic reporting was not configured, now hardcoded to 8 hours; bug fix: 'released'event; debug info improvements; declared supportedButtonValues attribute
  • ver. 2.5.1 2023-01-20 - battery percentage remaining HomeKit compatibility
  • ver. 2.5.2 2023-01-28 - _TZ3000_vp6clf9d (TS0044) debouncing; added Loratap TS0046 (6 buttons);
  • ver. 2.6.0 2023-01-28 - added healthStatus; Initialize button is disabled;
  • ver. 2.6.1 2023-02-05 - added _TZ3000_mh9px7cq; isSmartKnob() typo fix; added capability 'Health Check'; added powerSource attribute 'battery'; added dummy ping() code;
  • ver. 2.6.2 2023-02-23 - added Konke button model: 3AFE280100510001 ; LoraTap _TZ3000_iszegwpd TS0046 buttons 5&6;
  • ver. 2.6.3 2023-02-25 - added TS0215 _TYZB01_qm6djpta _TZ3000_fsiepnrh _TZ3000_p6ju8myv
  • ver. 2.6.4 2023-04-27 - added Sonoff SNZB-01; added IKEA Tradfri Shortcut Button E1812; added AC0251600NJ/AC0251100NJ OSRAM Lightify Switch Mini; added TS0041 _TZ3000_fa9mlvja 1 button; TS0215A _TZ3000_2izubafb inClusters correction
  • ver. 2.6.5 2023-05-15 kkossev - TS0215A _TZ3000_pkfazisv iAlarm (Meian) SOS button fingerprint correction; number of buttons and supportedValues correction for SOS buttons; added _TZ3000_abrsvsou
  • ver. 2.6.6 2023-05-30 kkossev - reverseButton default value bug fix;
  • ver. 2.6.7 2023-10-02 louisparks - added TS0044 to debounce list
  • ver. 2.6.8 2023-10-03 kkossev - added debounce timer configuration (1000ms may be too low when repeaters are in use);
  • ver. 2.6.9 2023-10-14 kkossev - REVERTED BACK TO VERSION 2.6.6 timeStamp 2023/05/30 1:51 PM

TODO:

  • add new TS0043 fingerprint
  • add pictures and links to Tuya 1-button models
  • add pictures and links to Tuya 2-button models
  • add pictures and links to Tuya 3-button models
  • add pictures as links to KONKE 1-button model
  • populate the healthStatus attribute value automatically after driver version update
  • add rejoin counter state

The development branch version that contains the latest additions and bug fixes can be manually downloaded from here: https://raw.githubusercontent.com/kkossev/Hubitat/development/Drivers/Tuya%20TS004F/TS004F.groovy

3 Likes