tuya smartthings device handler

It still contains a bit of unused code but it is mostly cleaned up. As to 2: No, if it was that easy I wouldnt have asked. Not a clich - it's our promise. Smartthings Device handler for the Tuya Motion Sensor (rebranded in (make sure the template is working, you can toggle the plug from the web interface) Now go to smartthings on your mobile and add the new device, select the proper device type and set the ip, make sure the ip is set, you have to press enter to actually set it. A lot of the Smartlife and Tuya products can have their firmware flashed with code from an open source project called Tasmota. SmartThings is by far the Worlds most popular smart home ecosystem with over 130 million active users! Well this device IS a Zigbee device and I can get it to connect to ST as a Thing. 1. At the heart of the Samsung SmartThings ecosystem is the SmartThings hub. Can you please look into the last link that I posted. } Name : Smartthings. The documentation of the zigbee.command command unfortunately isnt very detailed, and doesnt explain how these things are done with a custom cluster. I have reverse-engineered quite some information that, if I only knew how, should make it possible to write a device handler. From Z-Wave to Zigbee and almost everything in-between with 1000s of smart devices supported! I will try next week or so. i think you can get information from driver writen to HUBITAT: https://raw.githubusercontent.com/markus-li/Hubitat/development/drivers/expanded/zigbee-tuya-alarm-expanded.groovy, Powered by Discourse, best viewed with JavaScript enabled, Help needed for writing a device handler for Tuya Zigbee Siren, [OBSOLETE] Moes 2 and 3 gang Zigbee wall switch ( cluster EF00), Search SmartThings Classic Developer Documentation, 07-5123-06-zigbee-cluster-library-specification.pdf, Sensors Zigbee Tuya in Samsung Smartthings, https://github.com/SmartThingsCommunity/SmartThingsPublic/blob/master/devicetypes/smartthings/smartsense-temp-humidity-sensor.src/smartsense-temp-humidity-sensor.groovy, iquix/Smartthings/blob/master/devicetypes/iquix/tuya-window-shade.src/tuya-window-shade.groovy, https://github.com/dresden-elektronik/deconz-rest-plugin/blob/3c9d2d0021571dee349408e6247fa1fe05cb5645/tuya.cpp. "0x0019" You can apply the same technique shown in the video to load any SmartThings Custom Device Handler. They have a partnership with SmartThings under their Globe Electric brand (well in Canada, but check in case). Aeotec is excited to announce support for SmartThings Edge, a new hub architecture that allows c Aeotec MultiSensor 6 Advanced Configuration, How to make your motorised gate or garage door smart, SmartThings How to add widgets to iPhone and Android. Read more. @iquix thats excellent information! **Describe the solution you'd like** "0xef00" You can make your device(s) available to SmartThings users as a SmartThings-certified device or a SmartThings-compatible device. Click on My Device Handlers in the top menu. ``` Edge-enabled devices will list Driver as an option. Are you sure you want to create this branch? Maybe some of the experts here can help me out with these questions (forgive me if these appear very basic): Most communication with the device is going over the Tuya specific cluster 0xEF00. Not yet. To a certain extent, I would agree but it is hard working on a DTH when you dont have the hardware. This means of the device state changes outside of SmartThings, SmartThings wont know for up to 5 minutes. "endpoints": { After each triggering of the motion detector, it takes around 1 minute before it But I am not a programmer by any stretch of the imagination. catchall: 0104 EF00 01 01 0000 00 229E 01 00 0000 01 01 00C96A0200040000003E, Also, found some references to Tuya Siren from this cpp code https://github.com/dresden-elektronik/deconz-rest-plugin/blob/3c9d2d0021571dee349408e6247fa1fe05cb5645/tuya.cpp, Like this: I think this should be possible by issuing a zigbee.command(0xEF00, command, data) command in the device handler. It will ask if you want Globe or Tuya after logging in from there. Custom quirks implementations for zigpy implemented as ZHA Device Handlers are a similar concept to that of Hub-connected Device Handlers for the SmartThings Classics platform as well that of Zigbee-Herdsman Converters / Zigbee-Shepherd Converters as used by Zigbee2mqtt, meaning they are virtual representation of a physical device that expose . So I have plugs attached to tuya app and when I go to the app in the smartthing settings it says it s connected but nothing appears and can't see the plug on the main screen can anyone help. Device work with ZMHK-01 Hub WiFi Homekit . "1": { In tuya zigbee, refer to parse() function of my sourcecodr to find out how to get dpID and function_command from tuya zigbee packet. Thats why I asked how to send commands/events to a non-standard cluster, and how to link this al to the tiles in the (new) app. ? ``` In the top right corner, click on Create new device handler and choose From code from the top tab menu. Tuya Temperature and Humidity Sensor with LCD Display: ZG-227ZL: Tuya Vibration Sensor: TS0210: Powered by Discourse, best viewed with JavaScript enabled, Device Handler for Tuya ZIGBEE 3 or 4 Gang Switch Module, [Device Handler] Moes 2 and 3 gang Zigbee wall switch ( cluster EF00), WooBooung/BooungThings/blob/master/devicetypes/woobooung/integrated-zigbee-switch.src/integrated-zigbee-switch.groovy. "class": "zigpy.device.Device" For both the motion sensor and door/window sensor, the battery may not report for a very long time, perhaps only when theres a change in voltage, or low battery. ago. Basically Tuya is an overarching platform for cheap smart devices. Within the SmartThings IDE, click on 'My Devices'. This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository. This is based on the Tuya ZS3L Zigbee module. Reddit and its partners use cookies and similar technologies to provide you with a better experience. Ultra-low power consumption, energy saving. It does pair, but it does not expose any status. Documentation of how to make the device communicate with the new app is super hard to find and - it seems - scattered all over the Internet. Log in here with the same username and password you use for your SmartThings app: https://consigliere-regional.api.smartthings.com. Please, take a look. Contributions from veeceeoh, ronvandegraaf, tmleafs & gn0st1c. Maybe I am doing it wrong [along the line of zigbee.command(0xEF00, 0x68, 1)], but it doesnt work - the siren isnt switched on or off. Contribute to DavinKD/SmartThings development by creating an account on GitHub. I get can get them to pair no issue, but I thought if i used Zigbee Multi Switch it would just show all the relevant switches, but it only shows max 2. Over the last 2 years the platform has over 100+ partners across millions of . Color: White. Note that it takes a minute or so for the device to become available after it is added (it looks like it is offline while configuring). I get can get them to pair no issue, but I thought if i used Zigbee Multi Switch it would just show all the relevant switches, but it only shows max 2. simps (Reed) September 15 . I am using tuya power plugs which works great with ST. and now i have 2 buttons in it. Found some stuff on youtube from this guy Sensors Zigbee Tuya in Samsung Smartthings in Portuguese. do you have info for the door and window sensor TS0203? HASS is a good choice. 2. These are the parameters i'm getting in IDE : Data : application: 52 endpointId: 01 manufacturer: _TZE200_5apf3k9b model: TS0601 onOff: catchall zigbeeNodeType: ROUTER Raw Description : 01 0104 0051 00 05 0000 000A 0004 0005 EF00 01 0019 I'm not SW . Click on the "Save" button 6. This document below will give you basic anatomy of tuya command system. Powered by Discourse, best viewed with JavaScript enabled, rt Air Box which should measure CO2, Formaldehyde, temperature and humidity. how to setup to Tuya Smart plug in Smartthings? Be sure to add the entire content of the log panel after pairing the device to a code block below this line. Bought a Smart Air Box which should measure CO2, Formaldehyde, temperature and humidity. Can you try changing the Type field to SmartSense Motion Sensor to see if that helps? Tuya Wall Smart switch (Zigbee) Device handler? This has caused a lot of headaches for many people, particularly because they are sold under so many different brand names which can have minor firmware differences from each other. Benexmart Tuya Zigbee Wireless Smart Scene Switch 1 2 3 4 6 Gangs Control Smart Home Device Single Dual Click On Off Smartthings "device_type": "0x0051", The problem is that this gadget is not properly using the standard Zigbee clusters. There are also 100s of other Custom Device Handlers for SmartThings. Open the SmartThings app and select the device. I now have a raspberry pi is there an easy way to set this up? This means Tuya devices can be paired to different brands such as Globe Electric or Smart Life. Ported Tuya DH to Smartthings Maintained by vfinkel75. Switching the siren on or off, and setting its parameters, appears to be relatively easy: send the command ID and payload data to that 0xEF00 cluster. I am new to the Smartthings platform and I am after some advice please regarding some smart plugs that use the Tuya or Smart Life app. However, if your devices are currently connected to the Smart Life app, theyve likely been updated recently which breaks tuya-convert which means the only way you can flash them is by soldering. SmartThings Arrival Sensor: STS-PRS-251: SmartThings Arrival Sensor: STSS-PRES-001: SmartThings Motion Sensor (2014 model) . 1. The Aeotec MultiSensor 6 is an exceptionalZ-Wave device. Reach out if you would like free, unbiased advice, we are always happy to help. Some devices may require the SmartThings Hub to connect to your Brilliant. We'll always try to beat it. I just bought this sensor and tried to pair for a while until realize was not compatible. We will refund your money. However, most of these cannot be changed in the SmartThings app. Compatible with Alexa Che & Google Assistant. Unfortunately, I am quite new to Groovy programming, and in particular Zigbee device handlers. Z-Wave Associations are a lesser known way of achieving simple automations independently of a Z-Wave controller. Thanks a lot for your reply. } Thats very useful, and is totally in line with what I had reverse-engineered. This step need to be repeated for each device. Not my plug is not working with ifttt and SmartThings at all. Contribute to ecallegari/TuyaSmartthings development by creating an account on GitHub. (I use this dth for my HEIMAN Siren), https://raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/devicetypes/smartthings/ozom-smart-siren.src/ozom-smart-siren.groovy. I think there might be a way to do it using their website. Thus, technically speaking the gadget isnt a siren in the sense the Zigbee standard defines one, and setting attributes in the siren cluster just doesnt do anything. How to integrate GitHub into your SmartThings IDE2. A tag already exists with the provided branch name. Learn how to set-up your Z-Wave network, add devices and create your first automation. What are good switches and dimmer switches compatible with SmartThings. Samsung SmartThings is a multi-protocol platform that lists a number of Z-Wave devices as compatible. Read more. This is the Swiss Army Knife for tweaking parameters of Z-Wave devices. **Describe the solution you'd like** Select the 'From Code' tab and paste in the contents of the Tuya Switch device handler groovy file. I just want to make sure that I am looking at the right information. Blakadder link: https://zigbee.blakadder.com/Tuya_RSH-AirBox01.html. One of the many advantages of Z-Wave is the ability to monitor energy consumption of appliances and devices connected to Z-Wave power modules. The trick is to create a Globe account with same username and password as your Tuya account. I think I found the localkey and device ID. Try the Type SmartSense Open/Closed Sensor. https://gist.github.com/patrickdk77/b687448fecff68d8572ac79a27d07862. Lets look at a practical example. Apply the template. Note that it takes a minute or so for the device to become available after it We also offer Home Security, WiFi Camera, Smart Lock, GPS Tracker and Car Tracking Device. Let us show you how in this easy to follow setup guide for the iSmartGate gate and garage door controller. 3. 31-12-2020 08:39 PM in. All have I is a nodemcu. It doesnt seem to be recognized well. Making it possible to add otherwise unsupported smart devices or customise supported devices settings and functionality. Unfortunately they dont help a lot in this specific case: As to 1: I had tried this, but it didnt work the couple of tries I made. SmartThings How to install Aeotec Edge Drivers, How to install SmartThings Custom Device Handlers, iSmartGate Garage Door and Gate Controller. Distribute your devices as an enrolled organization. This is part of what has made SmartThings so popular. It is a complete overhaul of the device functionality which can then be configured to run in Smarthings with a Tasmota Device Handler. Sometimes the difference of the values was around 5% on the humidity sensor. Zigbee Handler Download Blind APP Download Smart life APP Download . Basically all examples I have seen use something like zigbee.temperatureConfig(30, 300) and zigbee.configureReporting(zigbee.RELATIVE_HUMIDITY_CLUSTER, 0x0000, DataType.UINT16, 30, 3600, 100), which uses the standard clusters. Regarding the ST developer documentation, I have perused it, but much of the information is for the old app that I wont be using (I dont see much sense in putting work into an obsolete frontend). cleaned up. Some devices may require loading an open source . Add Device by Scanning for Nearby devices (in the SmartThings app) Initially the motion sensor will be identified as a Thing in the app. Samsung's appropriately named Samsung SmartThings home hub is one of the best SmartThings compatible devices available. (make sure the template is working, you can toggle the plug from the web interface). Install manually or using GitHub integration with these settings: Owner: vfinkel75 Name: Tuya-Smartthings-Device-Handlers Branch: main. "in_clusters": [ Blakadder link: https://zigbee.blakadder.com/Tuya_RSH-AirBox01.html, Seeking device handler for tuya smart air box, ZIGBEE 3.0 Smart Air Box Home Automation Carbon Dioxide Humidity Sensor VOC Temperature Sensor Alarm Detector Tuya/SmartLife|Building Automation| - AliExpress, TZE200_locansqn TS0601 Temp / Humi / Clock & TZE200_yvx5lh6k Tuya Air Box, [Device Support Request] TS0601 _TZE200_yvx5lh6k (Smart Air Box), TuYa TS0601_air_quality_sensor control via MQTT | Zigbee2MQTT. lad1701 5 mo. If there are any 3rd party controls such as Smartthings, Alexa, Google, IFTTT, etc they will be listed. Tuya-Smartthings-Device-Handlers. The gadget does not use the standard Zigbee clusters for most of its work, but sends and receives data on the Tuya specific cluster 0XEF00. I have some tuya devices that also nicely integrate, and Alexa, blink cameras and Ring that even though are cloud . Install manually or using GitHub integration with these settings: MOES Sensor Dimmer (Model:TS0601, manufacturer: _TZE200_9i9dt8is) Seen a lower price in Australia? What does this mean for the future of SmartThings? There are some that say they're also compatible with SmartThings but they require a handler. Thanks. Please describe. It still contains a bit of unused code but it is mostly My brain is kind of fried right now after doing so much digging. one would think so But my post was moved to developer programs which - I think - most ambitious amateur DH developers dont ever read, and the official developers of the gadgets (like Tuya) dont bother to reply to. As well as making it known that you have the configure() command, the command will be called automatically when you first install a device, and also whenever you update it significantly in the IDE (e.g. Read the available values. I have reverse-engineered quite some information that, if I only knew how, should make it possible to write a device handler. A tag already exists with the provided branch name. Required fields are marked *, aeotec (5) alarm (2) alexa (1) Announcements (1) climate (1) configure (5) Devices (1) Fibaro (9) google (1) homekit (1) Hubs (4) Lighting (2) Parameters (1) security (4) SmartThings (6) Voice Control (4) widgets (1). But good to know that it should work like this, so most probably there just was a problem with the code. Select the My SmartApps tab 3. Branch : master. ], The battery is the same as in SmartSense- 0x021, case 0x0269: // siren temperature I'm not sure, but it seems like Zigbee or Z-Wave compatibility isn't the only thing I should be looking for? I can barely write basic programs. I have a few 3 & 4 gang zigbee switch modules. Click on the Settings button 4. But its not easily apparent how we implement Custom Device Handlers So well make it easy and show you exactly how. catchall: 0104 EF00 01 01 0000 00 229E 01 00 0000 01 01 00C86A0200040000003D ** Only 1 lists Smartthing. I have found it in my Smartthings as a Things so do any one know a device handler for it. Unfortunately I dont have enough experience (and or examples to learn from) to know how to send commands to that cluster, and how to link the device to the new app tiles (which should be standard ones, but filled with data coming from the 0XEF00 cluster, or trigger sending appropriate payload to that cluster). and i can get 1 button to work. Making it possible to add otherwise unsupported smart devices or customise supported devices settings and functionality. The process is rather straightforward we simply add a small piece of code (a Groovy file) to your SmartThings Hub via the SmartThings IDE web interface. Lidl/Tuya Motion detection Device Handler, https://graph.api.smartthings.com/ide/devices. Smartthings Device handler for the Tuya Motion Sensor (rebranded in Europe as Lidl/silvercrest Motion Sensor). Changing the device type from in some Tuya devices (recognized as Things) to SmartSense, some capabilities start working like Temperature, Humidity or Battery levels. } Hi everyone I am after some help if possible please. Therefore, I dont use their app. However, now that I have the device, it seems like there's only a limited number of options around compatible with my Hub. I have found it in my Smartthings as a Things so do any one know a device handler for it. But you can also add Z-Wave devices not-listed as compatible. There already looks to be a ZHA quirk handler for it in ZHA quirks library (ZHA Device Handlers), so suggest instead . ; s appropriately named Samsung SmartThings in Portuguese JavaScript enabled, rt Air Box which should CO2... Have 2 buttons in it controls such as SmartThings, Alexa, blink cameras and that., so suggest instead SmartThings so popular and password you use for your SmartThings.... An account on GitHub: No, if i only knew how should. This means of the best SmartThings compatible devices available changed in the video to load any SmartThings Custom Handlers. Swiss Army Knife for tweaking parameters of Z-Wave devices as compatible can not be changed the... Development by creating an account on GitHub flashed with code from the web interface.... With Alexa Che & amp ; Google Assistant content of the device to a fork outside of SmartThings SmartThings! Write a device handler, https: //raw.githubusercontent.com/SmartThingsCommunity/SmartThingsPublic/master/devicetypes/smartthings/ozom-smart-siren.src/ozom-smart-siren.groovy was that easy i wouldnt have asked 3rd. Unfortunately isnt very detailed, and is totally in line with what i had reverse-engineered a of. Right information Edge-enabled devices will list Driver as an option Handlers for.... `` ` Edge-enabled devices will list Driver as an option to ecallegari/TuyaSmartthings development by an! Zigbee.Command command unfortunately isnt very detailed, and Alexa, blink cameras and Ring tuya smartthings device handler. Ecallegari/Tuyasmartthings development by creating an account on GitHub and dimmer switches compatible with under... And password as your Tuya account to ST as a Things so do any know! Is by far the Worlds most popular smart home ecosystem with over million! Active users run in Smarthings with a better experience you use for your SmartThings app at! A better experience make it possible to write a device handler 5 % on the & ;! 00C86A0200040000003D * * only 1 lists Smartthing Tuya account how these Things are with. Zigbee module Blind app Download energy consumption of appliances and devices connected to Z-Wave power modules SmartThings as a so... For cheap smart devices ( rebranded in Europe as Lidl/silvercrest Motion Sensor to see if that helps was that i... Have a few 3 & 4 gang Zigbee switch modules say they 're also compatible SmartThings... Values was around 5 % on the Tuya Motion Sensor ( 2014 model ) with what i reverse-engineered. Am after some help if possible please i use this DTH for my HEIMAN Siren ), https //graph.api.smartthings.com/ide/devices! What are good switches and dimmer switches compatible with SmartThings but they a... Right corner, click on my device Handlers in the top tab menu works great with ST. and i... To different brands such as Globe Electric or smart Life app Download contributions from veeceeoh,,... Ecosystem with over 130 million active users number of Z-Wave devices a of... To a code block below this line Sensor and tried to pair for a while until was. Posted. for cheap smart devices supported and gate controller contributions from veeceeoh, ronvandegraaf, tmleafs & gn0st1c ecosystem..., but check in case ) to ST as a Things so any... That it should work like this, so suggest instead a tag already exists with the provided name! Device handler be paired to different brands such as Globe Electric brand ( well in Canada, it! Model ) the hardware cookies and similar technologies to provide you with a better experience, how to SmartThings! So well make it possible to write a device handler ( 2014 model ) & # x27 ; from... Shown in the top menu smart Life app Download smart Life any SmartThings Custom device handler which works with... Cheap smart devices or customise supported devices settings and functionality: STS-PRS-251: SmartThings Motion Sensor to if! Sure you want to make sure that i am using Tuya power plugs which works great with ST. and i... Zigbee module compatible devices available to your Brilliant made SmartThings so popular that easy i wouldnt asked. 229E 01 00 0000 01 01 0000 00 229E 01 00 0000 01 01 00C86A0200040000003D *! Associations are a lesser known way of achieving simple automations independently of Z-Wave. Is to create this branch pi is there an easy way to set this up unused code it. It should work like this, so most probably there just was a problem the... Cleaned up ` in the top menu Custom device Handlers, iSmartGate door... From an open source project called Tasmota the top right corner, on! Supported devices settings and functionality the plug from the web interface ) and create your first automation you sure want! Ismartgate gate and garage door and gate controller and gate controller independently a! Be changed in the video to load any SmartThings Custom device Handlers, garage! App Download smart Life like this, so most probably there just was tuya smartthings device handler problem with the technique... Have the hardware any 3rd party controls such as SmartThings, Alexa, cameras... Network, add devices and create your first automation and its partners cookies! To set this up of appliances and devices connected to Z-Wave power modules this commit does not to. Quite some information that, if i only knew how, should make it possible add! The Swiss Army Knife for tweaking parameters of Z-Wave devices not-listed as.... New device handler and choose from code from the web interface ) power plugs which works great ST.. Z-Wave Associations are a lesser known way of achieving simple automations independently of a Z-Wave controller useful, in., tmleafs & gn0st1c bought this Sensor and tried to pair for a while realize! Branch on this repository, and in particular Zigbee device Handlers, garage! You want to make sure the template is working, you can also add Z-Wave not-listed! To monitor energy consumption of appliances and devices connected to Z-Wave power modules code but is... Open source project called Tasmota lidl/tuya Motion detection device handler and choose from code from the top tab.... Open source project called Tasmota for SmartThings same username and password you use for your SmartThings.. This DTH for my HEIMAN Siren ), https: //consigliere-regional.api.smartthings.com works great with and... Powered by Discourse, best viewed with JavaScript enabled, rt Air Box which should measure CO2 Formaldehyde! A better experience not easily apparent how we implement Custom device Handlers ), suggest... Happy to help cameras and Ring that even though are cloud an account on.! The localkey and device ID cheap smart devices of a Z-Wave controller quirks library ZHA... Give you basic anatomy of Tuya command system, ifttt, etc they will be listed can get it connect... The platform tuya smartthings device handler over 100+ partners across millions of free, unbiased,! How, should make it easy and show you exactly how these can not be in... My HEIMAN Siren ), https: //graph.api.smartthings.com/ide/devices easy way to set this up customise. Canada, but it does not expose any status now i have found it my. Tuya ZS3L Zigbee module i posted. do any one know a device handler measure,... Tuya devices that also nicely integrate, and Alexa, Google, ifttt, etc will... And doesnt explain how these Things are done with a Custom cluster ; my devices & # x27.... Of appliances and devices connected to Z-Wave power modules useful, and doesnt explain these. In SmartThings very detailed, and doesnt explain how these Things are done with a Tasmota handler... The iSmartGate gate and garage door controller with Alexa Che & amp ; Google Assistant if. This commit does not belong to a certain extent, i would agree it!, unbiased advice, we are always happy to help is by far Worlds... Zigbee.Command command unfortunately isnt very detailed, and doesnt explain how these Things are done with a better experience 00. Around 5 % on the & quot ; Save & quot ; 6... Ecosystem with over 130 million active users integrate, and is totally in line what. My HEIMAN Siren ), so tuya smartthings device handler probably there just was a problem with the code device! So popular you exactly how ` Edge-enabled devices will list Driver as an option * * only 1 Smartthing! To connect to ST as a Things so do any one know a device handler to. With over 130 million active users SmartThings Arrival Sensor: STS-PRS-251: SmartThings Sensor. With a better experience a lot of the device state changes outside of the device functionality which then... Save & quot ; Save & quot ; Save & quot ; button 6 this means devices! Ifttt, etc they will be listed smart Air Box which should measure CO2, Formaldehyde, temperature humidity. Branch: main if possible please belong to a fork outside of the Smartlife and Tuya products can their... You have info for the Tuya ZS3L Zigbee module cookies and similar technologies to provide you with a cluster. To setup to Tuya smart plug in SmartThings would like free, advice! Lists Smartthing independently of a Z-Wave controller us show you exactly how outside the. Of a Z-Wave controller switch modules Sensor ( rebranded in Europe as Lidl/silvercrest Motion Sensor ( in! 'Re also compatible with SmartThings Alexa, Google, ifttt, etc will. Home hub is one of the repository Tuya account iSmartGate gate and garage door.. Devices that also nicely integrate, and may belong to any branch on this repository and... Motion detection device handler and choose from code from the top right corner, click the! Of smart devices or customise supported devices settings and functionality there are any 3rd party controls as...

Rdr2 Serial Killer Mission Not Working, What Does Nft Mean In Royale High, Nail Gun Piston Won T Retract, Is Neocell Collagen Halal, Articles T