deconz-rest-plugin icon indicating copy to clipboard operation
deconz-rest-plugin copied to clipboard

New DDF for Tuya wall switches TS0011 TS0012 TS0013

Open donok1 opened this issue 2 years ago • 12 comments

These new DDF are made for the Tuya TS0011, TS0012 and TS0013 wall switches. This is a fix to #3693.

DDF for TS0012 was test and has been working properly for more than a month now. TS0011 and TS0013 adapted from TS0012.

donok1 avatar Jun 06 '22 16:06 donok1

Hi can you please check following file:

devices/tuya/_TZ3000_wyhuocal_wallswitch_3gang.json

JSON validator fails here.

manup avatar Jul 16 '22 16:07 manup

Ha yes you miss a "}" between lines 168 and 169

Smanar avatar Jul 16 '22 16:07 Smanar

Any progress on this? Would be nice to have the switches working properly.

kalpik avatar Aug 04 '22 08:08 kalpik

@donok1 can you add the missing "}" pls ?

Smanar avatar Aug 04 '22 15:08 Smanar

@manup Sorry about the missing '}', it is now corrected @kalpik can you tell me if it works now ? I only have 2-gang switches to test on, and expanded the file for a 3-gang.

donok1 avatar Aug 08 '22 11:08 donok1

@donok1 thanks for the fix! I was trying to use this DDF, but I am not sure if I'm doing it correctly. I have 1-gang and 2-gang switches. How am I supposed to switch to this DDF?

kalpik avatar Aug 08 '22 11:08 kalpik

Just create them.

You can use the name you want, but you need to create a text file called whatyouwant.json with the contain you want. Need to put them on the good folder, If you are using HA or docker https://forum.phoscon.de/t/how-to-add-edit-a-ddf-on-home-assistant-using-text-editor/1839 Else

All DDF provided directly with deCONZ typically reside in /usr/share/deCONZ/devices/ on a Linux system and are loaded first. However, files residing in the home directory of the user running deCONZ (e.g. /home/<DECONZUSER>/.local/share/dresden-elektronik/deCONZ/devices) will override the pre-packaged files to allow users to amend and keep their own files if desired.

Smanar avatar Aug 08 '22 14:08 Smanar

Sorry, I wasn't able to check this, I've been on vacation. @manup could you please check the PR now and merge? I'd rather test on the next beta.

kalpik avatar Sep 11 '22 01:09 kalpik

@Smanar hello, could you help with the merge?

kalpik avatar Sep 21 '22 06:09 kalpik

Not really, but I don't see the problem with them ? Perhaps we can remove "path" and "description" but I don't see problem for this PR was not merged.

Manup ?

Smanar avatar Sep 27 '22 08:09 Smanar

Meanwhile, I was able to test the DDFs with my setup, and at least the 1 gang and 2 gang switches work perfectly fine now. I do not have a 3 gang switch to test.

Problems fixed by these DDFs:

  1. Switch doesn't turn off after 2 minutes
  2. When I restart deconz docker container, earlier I had to manually turn on/off the switches before deconz could control them. Now deconz can control them after a restart without any manual intervention.

kalpik avatar Sep 27 '22 08:09 kalpik

@manup a problem with this PR ? It's just 3 DDF specific to 3 devices ?

Smanar avatar Sep 27 '22 09:09 Smanar