Skip to content

Commit 181402e

Browse files
committed
#417 TuYa TS0013 support
1 parent 33d9fa3 commit 181402e

File tree

4 files changed

+16
-2
lines changed

4 files changed

+16
-2
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ New devices:
9494
- TuYa Smart light switch - 1 gang without neutral wire
9595
- TuYa Curtain motor
9696
- Moes ZigBee3.0 dual USB wireless socket plug
97+
- TuYa Smart light switch - 3 gang without neutral wire
9798

9899
## 0.2.0
99100
- Support for "stop" command for blinds adapter

SUPPORTED_DEVICES.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,11 +465,13 @@ If your device is not listed in the list below but [zigbee2mqtt supports](https:
465465
- TuYa Wireless switch with 1 button
466466
- TuYa Radiator valve with thermostat
467467
- TuYa Curtain motor
468+
- TuYa Smart light switch - 1 gang without neutral wire
469+
- TuYa Smart light switch - 2 gang without neutral wire
470+
- TuYa Smart light switch - 3 gang without neutral wire
468471

469472
### TUYATEC
470473
- TUYATEC PIR sensor
471474
- TUYATEC Temperature & humidity sensor
472-
- TUYATEC Smart light switch - 1 gang without neutral wire
473475
- TUYATEC Zigbee smart dimmer
474476
- TUYATEC Temperature & humidity sensor with display
475477

adapters/tuya/TS0013.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
from adapters.tuya.TS0012 import TS0012
2+
from devices.switch.on_off_switch import OnOffSwitch
3+
4+
5+
class TS0013(TS0012):
6+
def __init__(self, devices):
7+
super().__init__(devices)
8+
self.devices.append(OnOffSwitch(devices, 'center', 'state_left'))
9+

adapters/tuya/__init__.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
from adapters.generic.temp_hum_sensor import TemperatureHumiditySensorAdapter
55
from adapters.tuya.TS0002 import TS0002
66
from adapters.tuya.TS0012 import TS0012
7+
from adapters.tuya.TS0013 import TS0013
78
from adapters.tuya.TS0041 import TS0041
89
from adapters.tuya.TS0601 import TS0601
910

@@ -15,7 +16,8 @@
1516
'TS0201': TemperatureHumiditySensorAdapter, # TuYa Temperature & humidity sensor with display
1617
'TS0002': TS0002, # TuYa 2 gang switch
1718
'TS0011': OnOffSwitchAdapter, # TuYa Smart light switch - 1 gang without neutral wire
18-
'TS0012': TS0012, # Vrey VR-X711U
19+
'TS0012': TS0012, # TuYa Smart light switch - 2 gang without neutral wire
20+
'TS0013': TS0013, # TuYa Smart light switch - 3 gang without neutral wire
1921
'TS0041': TS0041, # TuYa Wireless switch with 1 button
2022
'TS0601_curtain': BlindAdapter, # TuYa Curtain motor
2123
'TS0601_thermostat': TS0601, # TuYa Radiator valve with thermostat

0 commit comments

Comments
 (0)