deconz-rest-plugin
deconz-rest-plugin copied to clipboard
New DDF for Tuya wall switches TS0011 TS0012 TS0013
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.
Hi can you please check following file:
devices/tuya/_TZ3000_wyhuocal_wallswitch_3gang.json
JSON validator fails here.
Ha yes you miss a "}" between lines 168 and 169
Any progress on this? Would be nice to have the switches working properly.
@donok1 can you add the missing "}" pls ?
@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 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?
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.
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.
@Smanar hello, could you help with the merge?
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 ?
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:
- Switch doesn't turn off after 2 minutes
- 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.
@manup a problem with this PR ? It's just 3 DDF specific to 3 devices ?