Where to start writing Custom driver for TS130F smart curtain switch (tuya clone)?

Hello, Alexander

I’m trying to use your code as a Device Handler, but I can’t, as you can see in the attached image.

Can you tell me how can I use it?

Hello Alex,

I’ used your driver dor my curtain switch QS-Zigbee-CP03 and works great!

This is the fingerprint:

Data
application: 40
endpointId: 01
manufacturer: _TZ3000_zirycpws
model: TS130F
zigbeeNodeType: ROUTER
Raw Description 01 0104 0202 01 05 0004 0005 0006 0102 0000 02 0019 000A

Thanks for your work!

@v.porsio or @NonAlex
Can you please share your invite ? I want to use the same device with your driver
Thanks in advance…

+1. @v.porsio / @NonAlex please send invitation

1 Like

+1. @v.porsio / @NonAlex

Hello sorry for delay…

this is the link to my channel:

the driver works, but there is a problem with the state.
After 15min the switch seems to be in a freeze state and I lose the state of the curtain (go to closed). To resume the switch I have to press the “up” button first and then it’s possible to command it again.

I’m not a programmer or an it expert, I can’t solve this problem…

These TS130F models are added to my driver Zigbee Window Treatment Mc
@dotan_shai are tested some devices

  - id: "TS130F/_TZ3000_vd43bbfq"
    deviceLabel: Lonsonho QS-Zigbee-C01
    manufacturer: _TZ3000_vd43bbfq
    model: TS130F
    deviceProfileName: window-treatment-profile-calib
  - id: "TS130F/_TZ3000_fccpjz5z"
    deviceLabel: Lonsonho QS-Zigbee-C01
    manufacturer: _TZ3000_fccpjz5z
    model: TS130F
    deviceProfileName: window-treatment-profile-calib
  - id: "TS130F/_TZ3000_4uuaja4a"
    deviceLabel: Lonsonho QS-Zigbee-CP03
    manufacturer: _TZ3000_4uuaja4a
    model: TS130F
    deviceProfileName: window-treatment-profile-calib
  - id: "TS130F/_TZ3000_zirycpws"
    deviceLabel: Lonsonho QS-Zigbee-CP03
    manufacturer: _TZ3000_zirycpws
    model: TS130F
    deviceProfileName: window-treatment-profile-calib
  - id: "MS-108ZR/_TZ3000_1dd0d5yi"
    deviceLabel: MS-108ZR
    manufacturer: _TZ3000_1dd0d5yi
    model: TS130F
    deviceProfileName: window-treatment-profile-calib-2

https://api.smartthings.com/invitation-web/accept?id=6b68563b-1905-4654-8d2b-e677a2997424

1 Like

Hello Mariano, you are my hero…

Your driver seem to be the same behavior about the status, after 15/17 goes to 0% (closed).

But now i don’t need to press up button to resume the switch. Now it is immediately avalaible for up and down directions.

Hi @v.porsio

This device has profile with calibration option in preferences
Are you performed a device calibration procedure?

Calibration option unfortunately is not availabe in the settings. Only preset position srttings is available.

Hi @mhertis

Calibration functions is only available in those models

   { mfr = "_TZ3000_vd43bbfq", model = "TS130F" },
    { mfr = "_TZ3000_fccpjz5z", model = "TS130F" },
    { mfr = "_TZ3000_4uuaja4a", model = "TS130F" },
    { mfr = "_TZ3000_zirycpws", model = "TS130F" },
    { mfr = "_TZ3000_1dd0d5yi", model = "TS130F" },
    { mfr = "_TZ3000_qqdbccb3", model = "TS130F" }

Mariano_Colmenarejo

Regarding this driver as it pertains to the SmartWings Roller Shade/Blind:

  • id: “SmartWings/WM25/L-Z”
    deviceLabel: SmartWings Window Treatment
    manufacturer: SmartWings
    model: WM25/L-Z

The SmartThings tile reports the Blind as ‘Closed’ when the blind in open and visa versa. Can the coding specific to SmartWings be updated to correct this issue? There are no settings within the device settings to reverse the state of the blind.

Hi @Buds_Smart_Home

When I added this blind to the driver in October 2022, I already inverted the indication of the blind.

I don’t understand why it’s inverted again now.

Are you using my driver or the stock one?

https://community.smartthings.com/t/post-requests-for-edge-drivers-here-community-created/237327/983?u=mariano_colmenarejo

I am using the following driver: ‘Zigbee Window Treatment Mc’ from your channel

So, since October that I added it, is it working badly or is this new?

Or do you mean that the tile shows a closed state and the device details view shows open and vice versa?

At some point since December, I noted that it was working in reverse, meaning that when the blind opened, it displayed and reported within the app as ‘Closed’. Since I have been busy between my day job and making videos for my YouTube channel, I did not address the issue until today. So it has been broken for some time now. I noticed it following one of the ST updates. I am unsure what date this issue surfaced, but it has been several months now. I did try switching drivers but I was unable to find an alternative that worked.

The blind is currently open. This is how the blind is reported in the ST app, (see ‘Blind2’):

Tile shows Closed And the detail view that shows?

The detail view also shows ‘Closed’…

1 Like

I don’t understand anything, but I have reversed the states again for this manufacturer

───────────────────────────────────────────────────
 Name         Zigbee Window Treatment Mc
 Version      2023-03-14T17:18:20.824840108
───────────────────────────────────────────────────

Thank you Mariano. I’ll check out the roller blind operation once the driver updates and let you know the outcome.