Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tuya Double Switch TS0012 turns itself off again. #3693

Closed
schumi2004 opened this issue Nov 17, 2020 · 168 comments
Closed

Tuya Double Switch TS0012 turns itself off again. #3693

schumi2004 opened this issue Nov 17, 2020 · 168 comments

Comments

@schumi2004
Copy link

Describe the bug

Connected the wired double Tuya switch (no-neutral) switch as described and paired it with Deconz (Home Assistant).
When turned on manually or via Deconz the switch tunrs itself off again after approximatly 2 min.
Looks like some timer got activated but can't find any documentation about it.

And sometimes, after it happened for a few times, it becomes unresponsive and only manual activation makes it work again.

Steps to reproduce the behavior

Connect the switch as instructed, pair it with Deconz and just turn it on, manually or using Deconz/Home Assistant.

Expected behavior

Just stay on.

Screenshots

n/a

Environment

  • Host system: Raspberry Pi 3B+

  • Running method: Home Assistent deCONZ Add-on

  • Firmware version: 26660700

  • deCONZ version: 2.05.88 / 15-10-2020

  • Device: ConBee II

  • Do you use an USB extension cable: yes

  • Is there any other USB or serial devices connected to the host system? If so: Which? SSD

  • switch used: 2 gang switch TS0012

deCONZ Logs

Need to figure out how to save the logs to a file in HassIO.

Additional context

n/a

@Smanar
Copy link
Collaborator

Smanar commented Nov 17, 2020

Hello, can you make a try with the api disabled ? Plugin / rest API plugin.

@schumi2004
Copy link
Author

I'm not sure how to do this?
I checked the Home Assistant Add-on: deCONZ in my HassIO setup but can't find anything to disable api?

I removed the port in HA deCONZ addon configuration that disables API backend, is that what you mean?
image

For now, I unpaired the switch and it functions normal again as a regular switch.
Will pair it again later this evening when I have more time.
Is it also possible I caused this behavior using a combination of button presses?
At first, I thought it did not pair so I tried it again to find out they were added underneath the lights section. Maybe a reset of the switch (if possible?) will help also?

@Smanar
Copy link
Collaborator

Smanar commented Nov 17, 2020

Ha, sorry it s only possible using the GUI.

It s possible too with removing the lib file from the folder, but I don't want to broke your setting. Was to make the same test than you, the device in the network but without the API, to check if it s from zigbee or api side.

For the rest, idk, never see a timer feature in this kind of switches. Perhaps something visible in log (you have it in phosocn too now, in "help")

@megawubs
Copy link

@schumi2004 Not really related to the topic, but where did you got this switch? I've been searching for something like this for a while now. But can't really find any shop selling this when I search for it on the web.

@schumi2004
Copy link
Author

@megawubs https://nl.aliexpress.com/item/4000298926256.html?cv=47843

@Smanar
The HassIO deCONZ addon does have a GUI.
I can choose from Phoscon or Deconz, i'll check again when i have some more time inbetween work.

@Smanar
Copy link
Collaborator

Smanar commented Nov 18, 2020

The HassIO deCONZ addon does have a GUI.
I can choose from Phoscon or Deconz, i'll check again when i have some more time inbetween work.

Ha ? are you sure of that ?
But if you have the deconz GUI
dfgdf

"rest API plugin" then uncheck the case on the popup.

@schumi2004
Copy link
Author

schumi2004 commented Nov 18, 2020

Got it unchecked, going to test it now.
image

/edit:
Okay, this is frustrating.
I needed to enable REST API again otherwise I couldn’t pair the switch again, after it got paired, I left REST API enabled to see what will happen and guess what, it works normal as expected.
Only difference is that I only paired it once.
Will test next few days if i can replicate the issue.

@Smanar
Copy link
Collaborator

Smanar commented Nov 19, 2020

You can pair it, and disable the switch after, or just let it already paired.
It s just to check if you have the same issue with the api disabled, only with the zigbee network alone. The important part is not pairing, but to check if you still have the "timer" bug.

@schumi2004
Copy link
Author

Switch still functions as expected since yesterday. The only difference is that I only did the pairing procedure once and not twice as the first time.
I think that the very first time I paired the switch and thought it did not work I activated some feature during second attempt that caused this auto off. I took 2 minutes every time it turned itself off (used a timer to measure) and because of that I think something got activated during pairing when it already was.

Yesterday when I wanted to test I already had deleted the device and I needed to enable REST API again for it to get paired and since then it works flawless.

Maybe we should close this issue for now and reopen when I have new devices with similar behavior.

@Smanar
Copy link
Collaborator

Smanar commented Nov 20, 2020

This is no documentation with the device ? even in chinese ?

@schumi2004
Copy link
Author

Documentation is shipped with it but doesn't describe "advances" features like auto off or something like that (if any). It only describes how to wire and pair it for different versions (neutral, no neutral, wifi, zigbee, rf433)

1605897359206525293823412038649
16058973843093859530211622480297
16058974070791104870117378599184

@kind3r
Copy link

kind3r commented Dec 8, 2020

Had the exact same issue, obviously because of the 'double pairing'. I thought that you have to pair each gang individually.

Deleted the switch from Phoscon app (removing one light removes the other also) and then repaired and now it's ok. I'm thinking I should do this with some of the other sensors that sometimes missbehave.

@kind3r
Copy link

kind3r commented Dec 8, 2020

I think I spoke too soon, after some time they started automatically turning off again ...

@Smanar
Copy link
Collaborator

Smanar commented Dec 8, 2020

I have perhaps an idea for tuya, but not sure It's that, because I have the ame bug on different brands.
Can you confirme me, this device use tuya cluster ?
Just enable log in deconz, press a button, and give me the lines with "debug tuya", all lines pls, even if there are in double.

@kind3r
Copy link

kind3r commented Dec 8, 2020

I'm not sure what log types need to be activated and what version (I'm running 2.5.88), but my switch is identified as _TZ3000_fvh3pjaz or Heiman:

20:21:50:962 DB sql exec REPLACE INTO nodes (id, state, mac, name, groups, endpoint, modelid, manufacturername, swbuildid, ritems) 
VALUES ('13', 'normal', 'bc:33:ac:ff:fe:f5:b4:db-01', 'Baie', '65520', '1', 'TS0012', '_TZ3000_fvh3pjaz', '', '{"attr/id":"13","attr/lastannounced":null,"attr/lastseen":"2020-12-08T18:21Z","attr/manufacturername":"_TZ3000_fvh3pjaz","attr/modelid":"TS0012","attr/name":"Baie","attr/swversion":null,"attr/type":"On/Off light","attr/uniqueid":"bc:33:ac:ff:fe:f5:b4:db-01","state/alert":null,"state/on":true,"state/reachable":true}')
20:21:50:965 DB sql exec REPLACE INTO nodes (id, state, mac, name, groups, endpoint, modelid, manufacturername, swbuildid, ritems) 
VALUES ('14', 'normal', 'bc:33:ac:ff:fe:f5:b4:db-02', 'Hol', '65520', '2', '', 'Heiman', '', '{"attr/id":"14","attr/lastannounced":null,"attr/lastseen":"2020-12-08T18:21Z","attr/manufacturername":"Heiman","attr/modelid":null,"attr/name":"Hol","attr/swversion":null,"attr/type":"On/Off light","attr/uniqueid":"bc:33:ac:ff:fe:f5:b4:db-02","state/alert":null,"state/on":false,"state/reachable":true}')
2

What I noticed is that after pairing it works fine for a few hours and then randomly switches to the auto-off behaviour.

@Smanar
Copy link
Collaborator

Smanar commented Dec 8, 2020

You haven't the GUI ?

You have not line starting with "Tuya debug X" when using a button ?

@kind3r
Copy link

kind3r commented Dec 8, 2020

As most of the people out there I'm using a Conbee 2 via the Home Assistant addon. More specifically HASS.io on a PI 4. I do have access to the deCONZ app via VNC but can't copy paste from there and finding something in there is a pain. I can use docker logs from the host, but I need to enable the logs in the addon's config. I have enabled dbg_info: 2 but I found nothing Tuya related.

@k0rn3l
Copy link

k0rn3l commented Dec 14, 2020

I have just installed two new switches: https://www.aliexpress.com/item/4000298926256.html
I have the same issue with auto-off after 2-3 minutes on both (X711A / TS0011 and X712A / TS0012 models). I have paired them only once.
Deconz plugin 2.07.01 / 8.12.2020 with home assistant
Conbee 2 FW: 26660700

@k0rn3l
Copy link

k0rn3l commented Dec 15, 2020

I did some further investigation...
I did factory reset of the node from deconz vnc app; paired it again; and at first it looked like the problem was gone when I was switching the light ON from home assistant. It stayed ON. But as soon as I used the switch button, the problem returned and now the light turns itself off after 2 minutes no matter if I use home assistant or the button to turn the light on.
Deconz log from self turn off event:

01:30:39:194 DeviceAnnce of LightNode: 0xbc33acfffeedfc0f Permit Join: 0
01:30:40:197 ZCL attribute report 0xBC33ACFFFEEDFC0F for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000
01:30:40:289 verified group capacity: 255 and group count: 1 of LightNode 0xbc33acfffeedfc0f
01:30:40:290 0xbc33acfffeedfc0f found group 0xFFF0
01:30:41:758 binding for cluster 0x0006 of 0xBC33ACFFFEEDFC0F exists (verified by reporting)
01:30:41:758 skip configure report for cluster: 0x0006 attr: 0x0000 of node 0xBC33ACFFFEEDFC0F (seems to be active)
01:30:54:023 ZCL attribute report 0xBC33ACFFFEEDFC0F for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000

@k0rn3l
Copy link

k0rn3l commented Dec 15, 2020

Workaround:
Following info on https://zigbee.blakadder.com/Lonsonho_X711A.html
I forced entering pairing mode (10s button press) when already paired with ZB network, then I clicked "Add new lights" in Phoscon app, switch repaired with the same network and is now working correctly.
EDIT: this is not permanent. It works only for some time and then auto-off returns :(

@kind3r
Copy link

kind3r commented Dec 15, 2020

I noticed the same behaviour with the latest firmware, I left the switch unpaired for a week, yesterday I paired it again, after that I rebooted my PI and it was gone, so did a re-pair (altho the switch lights showed that it was paired) and it showed up again in Phoscon and HA with the names that I previously set and it's been working fine since. Usually it takes up to 2h for the auto-off behaviour to kick in, but now it seems to be fine for the past 20h.

@Smanar
Copy link
Collaborator

Smanar commented Dec 15, 2020

Ha yesssss, thx a lot, It help so much, I was totaly lost, no idea at all.

It seems like there’s two versions of this switch coming from AliExpress. The TS0011 appears to turn off by itself after two minutes after being paired for the first time with ZHA. To get it to function correctly after pairing the first time, press and hold the switch for 10s to enter pairing mode and then press ‘Add Devices Via This Device’ in your Zigbee Coordinator in Home Assistant. After that, it should function correctly.

But BTW what is this feature ....

@gregskh
Copy link

gregskh commented Dec 21, 2020

Hello,

I have TS0011 and TS0012 switches and They turned off after 2 minutes no matter if I use home assistant or the button to turn the light on. After this procedure everything works ok:

It seems like there’s two versions of this switch coming from AliExpress. The TS0011 appears to turn off by itself after two minutes after being paired for the first time with ZHA. To get it to function correctly after pairing the first time, press and hold the switch for 10s to enter pairing mode and then press ‘Add Devices Via This Device’ in your Zigbee Coordinator in Home Assistant. After that, it should function correctly.

Original source: https://zigbee.blakadder.com/Lonsonho_X711A.html

@parowa92
Copy link

Same here.
01:18:38:486 DeviceAnnce of LightNode: 0xbc33acfffe7720c2 Permit Join: 0 01:18:38:487 DeviceAnnce of LightNode: 0xbc33acfffe7720c2 Permit Join: 0 01:18:39:470 verified group capacity: 255 and group count: 1 of LightNode 0xbc33acfffe7720c2 01:18:39:470 0xbc33acfffe7720c2 found group 0xFFF0 01:18:40:219 verified group capacity: 255 and group count: 1 of LightNode 0xbc33acfffe7720c2 01:18:40:219 0xbc33acfffe7720c2 found group 0xFFF0 01:18:40:904 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 01:18:41:025 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x02, frame control: 0x08, mfcode: 0x0000 01:18:47:604 Current channel 15 01:18:47:612 Device TTL 4506 s flags: 0x7 01:18:53:965 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 01:18:54:084 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x02, frame control: 0x08, mfcode: 0x0000 01:19:03:090 binding for cluster 0x0006 of 0xBC33ACFFFE7720C2 exists (verified by reporting) 01:19:03:091 skip configure report for cluster: 0x0006 attr: 0x0000 of node 0xBC33ACFFFE7720C2 (seems to be active) 01:19:34:091 binding for cluster 0x0006 of 0xBC33ACFFFE7720C2 exists (verified by reporting) 01:19:34:092 skip configure report for cluster: 0x0006 attr: 0x0000 of node 0xBC33ACFFFE7720C2 (seems to be active)

@Smanar
Copy link
Collaborator

Smanar commented Dec 26, 2020

And have you done the procedure ?

@parowa92
Copy link

Yes, but if i disable api i cant use Tradfri 5 button remote, so it's not a solution for me.
10:47:07:613 Device TTL 2865 s flags: 0x7 10:47:15:112 DeviceAnnce of LightNode: 0xbc33acfffe7720c2 Permit Join: 0 10:47:15:113 DeviceAnnce of LightNode: 0xbc33acfffe7720c2 Permit Join: 0 10:47:16:099 verified group capacity: 255 and group count: 1 of LightNode 0xbc33acfffe7720c2 10:47:16:099 0xbc33acfffe7720c2 found group 0xFFF0 10:47:16:845 verified group capacity: 255 and group count: 1 of LightNode 0xbc33acfffe7720c2 10:47:16:845 0xbc33acfffe7720c2 found group 0xFFF0 10:47:17:280 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 10:47:17:396 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x02, frame control: 0x08, mfcode: 0x0000 10:47:31:127 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x01, frame control: 0x08, mfcode: 0x0000 10:47:31:249 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x02, frame control: 0x08, mfcode: 0x0000 10:47:39:091 binding for cluster 0x0006 of 0xBC33ACFFFE7720C2 exists (verified by reporting) 10:47:39:092 skip configure report for cluster: 0x0006 attr: 0x0000 of node 0xBC33ACFFFE7720C2 (seems to be active) 10:47:47:658 0xBC33ACFFFE7720C2 force poll (2) 10:47:47:663 ZCL attribute report 0xBC33ACFFFE7720C2 for cluster: 0x0006, ep: 0x01, frame control: 0x18, mfcode: 0x0000

@Smanar
Copy link
Collaborator

Smanar commented Dec 26, 2020

Disable the API ? If you disable the api, you will loose all your devices, not only the tradfri remote.
Nope, the procedure to remove this situation, on this model.

@parowa92
Copy link

I tried to pair it again, after pairing. Next i tried this on ZHA, stil same problem. I just moved to z2mqtt and its gone.
When i disabled api the switches still was working, but with this problem.

@k0rn3l
Copy link

k0rn3l commented Sep 20, 2021

Hello!
I have the same problem with auto turn off. How could I implement the fixes from #5118? Or should I just wait for the update of deConz add-on.
I use HA with deCONZ add-on (v. 6.10.0) with Conbee Stick 2 on Raspberry PI 4.

I've managed to compile the plugin on RPi Home Assistant OS from Smanar's tuya_test_1 branch ...
AND IT WORKED!!!!
After resetting and pairing my switch with zigbee network it is behaving correctly for about 20 hours now. No auto-off behaviour :)

I've compiled it too, and it worked fine for 2 gang switches (turn-off issue was resolved), but I couldn't pair my 1 gang Tuya switches after (it paired well before compiling the fixed plugin )...

I've got both models: 1- and 2- gang. No issue with paring any of them on compiled version.

@jonnipee
Copy link

1,2,3 gang work for me

@github-actions
Copy link
Contributor

As there has not been any response in 21 days, this issue has been automatically marked as stale. At OP: Please either close this issue or keep it active It will be closed in 7 days if no further activity occurs.

@github-actions github-actions bot added the stale label Oct 12, 2021
@github-actions
Copy link
Contributor

As there has not been any response in 28 days, this issue will be closed. @ OP: If this issue is solved post what fixed it for you. If it is not solved, request to get this opened again.

@tempico
Copy link

tempico commented Nov 21, 2021

The compiled version from an above repo seems working fine. Thank you @Smanar for your efforts!

It took about 1h to compile the ARM version on my RPI. So if anyone is interested to reuse the compiled library — just unzip the attached file into /usr/share/deCONZ/plugins on your RPI (take a backup of old file), restart the deCONZ app and finally re-register the switch (remove it from deCONZ and then re-pair by pressing any button on the Tuya switch for 10 seconds until the leds will be blinking).

Hope the changes will be merged to master soon.

libde_rest_plugin.so.zip

@schumi2004
Copy link
Author

The compiled version from an above repo seems working fine. Thank you @Smanar for your efforts!

It took about 1h to compile the ARM version on my RPI. So if anyone is interested to reuse the compiled library — just unzip the attached file into /usr/share/deCONZ/plugins on your RPI (take a backup of old file), restart the deCONZ app and finally re-register the switch (remove it from deCONZ and then re-pair by pressing any button on the Tuya switch for 10 seconds until the leds will be blinking).

Hope the changes will be merged to master soon.

libde_rest_plugin.so.zip

Can this also be done in HassIO?

@tempico
Copy link

tempico commented Nov 21, 2021

Can this also be done in HassIO?

I never used HassIO because my HA setup is too heavy for RPI. Technically there should be no problems with this if your deCONZ instance is running under ARM CPU (directly on RPI or in docker). You only have to locate the file to be replaced, replace it and make sure no official updates will be overwriting it for now.

@Smanar
Copy link
Collaborator

Smanar commented Nov 22, 2021

I have updated the code some days ago, because there was ugly code. Hoping for a validation for next version

@tempico
Copy link

tempico commented Jan 4, 2022

@Smanar,
Thank you for your reply. Any chance that the changes will be merged to beta stream please?

@Smanar
Copy link
Collaborator

Smanar commented Jan 5, 2022

hee ... seriously I realy don't know what to say.
This PR is probalby not merged because it s theoricaly possible to do the same thing using DDF, but not sure if the code is ready for that.

You can make a try, just edit the DDF for the device, and use a basic one with absolutely nothing in the tab "binding", then make a "hot reload".

https://github.com/dresden-elektronik/deconz-rest-plugin/wiki/DDF-cheat-sheet

@mpeterson
Copy link

@Smanar I tried doing what you mention. I did a DDF where I removed the one binding, hot reloaded and I still get the incorrect behavior of turning off after 2 minutes. IDK perhaps what I'm doing is incorrect, or perhaps it's not loading the DDF.

image

Anyways, why is this change being held up even if it can be done with DDF? I mean, it sounds like it's a fix that everyone would be benefit from and not custom behavior.

@Smanar
Copy link
Collaborator

Smanar commented Jan 6, 2022

Right, and for me the DDF is good.
I will ask manup too, it s a hack but not the worst one, and as the DDF don't seem working, can take age to test.

You have tried with "strict" mode too ? (the DDF mode in "control")

@mpeterson
Copy link

@Smanar thanks for answering. I put it into "strict" mode too and still I haven't had positive results. Again, perhaps I'm doing something wrong and perhaps it's worth if you can check it too.

Moving forward with the patch is also a good option :)

@Smanar
Copy link
Collaborator

Smanar commented Jan 8, 2022

I don't have device with this issue, and DDF is relay obscure for me (and it move too much for the moment)
But Manup have react on the PR 2 days ago, so I hope for a validation for the next version.

@donok1
Copy link

donok1 commented Feb 7, 2022

Hi @mpeterson, did you get luck with DDF ?
Apparently we can forget any hope of a merge of #5118, see #5733.

I'll have a go myself as soon as I have a bit of time, but would appreciate any hint ;)
Thanks

@HA-Jon
Copy link

HA-Jon commented Apr 16, 2022

I'm having the same problem. How can I rectify?

@Smanar
Copy link
Collaborator

Smanar commented Apr 16, 2022

It seem it can be solved with creating a DDF, but no comfirmation cf #5118

@HA-Jon
Copy link

HA-Jon commented Apr 16, 2022

3a-zigbee-switch.groovy
is the file I needed, but not sure how to use it.
My switch is already installed in Home Assistant, via a Conbee USB stick.
What do I need to do?

@Smanar
Copy link
Collaborator

Smanar commented Apr 17, 2022

Have answered here #5118 (comment)
Pls avoid making 2 times the same question on different place.

@donok1
Copy link

donok1 commented Jun 6, 2022

I managed to create a working DDF for the 2 gang switch, you can find it below.
But I encounter a few hiccups trying to create it within the GUI (via VNC). While selecting my Switch device and creating a new DDF, I was automatically shown the DDF of the previously selected device.

To overcome this problem, I would modify the DDF and save it as a new file containing the device name (here /devices/tuya/ts0012.json ) and then rebooting my ConBee by selecting it in the mesh and then Edit > Reboot device. After the reboot, the DDF was now opening correctly. I performed such a reboot after every change in the DDF and it works well since. I did not need to unpair/repair the switch to the zigbee network.

I hope this helps you all.
Cheers

{
  "schema": "devcap1.schema.json",
  "manufacturername": "_TZ3000_fvh3pjaz",
  "modelid": "TS0012",
  "product": "TS0012",
  "sleeper": false,
  "status": "Gold",
  "path": "/devices/tuya/ts0012.json",
  "subdevices": [
    {
      "type": "$TYPE_ON_OFF_LIGHT",
      "restapi": "/lights",
      "uuid": [
        "$address.ext",
        "0x01"
      ],
      "fingerprint": {
        "profile": "0x0104",
        "device": "0x0000",
        "endpoint": "0x01",
        "in": [
          "0x0000",
          "0x0001"
        ],
        "out": [
          "0x0006"
        ]
      },
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "state/alert",
          "description": "The currently active alert effect.",
          "default": "none"
        },
        {
          "name": "state/on",
          "description": "True when device is on; false when off.",
          "refresh.interval": 5
        },
        {
          "name": "state/reachable"
        }
      ]
    },
    {
      "type": "$TYPE_ON_OFF_LIGHT",
      "restapi": "/lights",
      "uuid": [
        "$address.ext",
        "0x02"
      ],
      "items": [
        {
          "name": "attr/id"
        },
        {
          "name": "attr/lastannounced"
        },
        {
          "name": "attr/lastseen"
        },
        {
          "name": "attr/manufacturername"
        },
        {
          "name": "attr/modelid"
        },
        {
          "name": "attr/name"
        },
        {
          "name": "attr/swversion"
        },
        {
          "name": "attr/type"
        },
        {
          "name": "attr/uniqueid"
        },
        {
          "name": "state/alert",
          "description": "The currently active alert effect.",
          "default": "none"
        },
        {
          "name": "state/on",
          "refresh.interval": 5
        },
        {
          "name": "state/reachable"
        }
      ]
    }
  ]
}

donok1 added a commit to donok1/deconz-rest-plugin that referenced this issue Jun 6, 2022
New DDF for Tuya 2 gang wall switch TS0012. Proof tested. Has been working in my home for a month now.
Fix to dresden-elektronik#3693.
donok1 added a commit to donok1/deconz-rest-plugin that referenced this issue Jun 6, 2022
New DDF for Tuya 3 gang wall switch TS0013. Based on TS0012 2 gang
Fix to dresden-elektronik#3693.
donok1 added a commit to donok1/deconz-rest-plugin that referenced this issue Jun 6, 2022
New DDF for Tuya 1 gang wall switch TS0012. Based on TS0012 2 gang switch.
Fix to dresden-elektronik#3693.
@Smanar
Copy link
Collaborator

Smanar commented Jun 6, 2022

Nice, thx for the information ^^.

While selecting my Switch device and creating a new DDF, I was automatically shown the DDF of the previously selected device

If I m right it happen when a device have no DDF at all, mean deconz was not able to create a basic one with defaut value. But I can't explain why it happen.

@themiskir83
Copy link

themiskir83 commented Aug 9, 2022

Hi all, I've done the procedure through ssh on port 22222, installed nano, new DDF file in /usr/share/deconz/devices/tuya/
rebooted the device but it keeps turning off after 2 minutes.
VNC deconz is showing the new DDF.

after reboot addon and ha it shows the default DDF and now when i am trying to load the custom one it fails to load it.

@jonnipee
Copy link

jonnipee commented Sep 7, 2022

Just to note that on windows I did as smanar recommended.
Edit DDF, removed the bindings and set to gold. I then saved the files and did hot reload. This didn't work initially. I had to then remove all the devices and re-add them and then everything worked without issue.

@Smanar
Copy link
Collaborator

Smanar commented Sep 7, 2022

Ha ?
I know the "magic" is set during the inclusion, but in my mind binds was verified by deconz regulary.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.