-
Hello, I've been looking through the issues here, and I did find some requests for devices similar to mine (#929 has the same category and #652 has the same mapping). I want to ask if it is possible to add the AC devices controlled by my smart IR via tuya-local. Has anyone had any luck in the past with this? Current workaround is a HA custom switch that calls google assistant's API. |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Because IR sub devices are one way, they do not return any data to identify them by. Currently this prevents them from being identified, as the current device identification method requires some data from the device to match against. |
Beta Was this translation helpful? Give feedback.
-
At least in my case, it seems like the {
"result": {
"properties": [
{
"code": "control",
"custom_name": "",
"dp_id": 1,
"time": 1674561759838,
"value": "send_ir"
},
{
"code": "study_code",
"custom_name": "",
"dp_id": 2,
"time": 1674561759838
},
{
"code": "ir_code",
"custom_name": "",
"dp_id": 3,
"time": 1674561759838,
"value": ""
},
{
"code": "key_code",
"custom_name": "",
"dp_id": 4,
"time": 1674561759838,
"value": ""
},
{
"code": "key_code2",
"custom_name": "",
"dp_id": 5,
"time": 1674561759838,
"value": ""
},
{
"code": "key_code3",
"custom_name": "",
"dp_id": 6,
"time": 1674561759838,
"value": ""
},
{
"code": "key_study",
"custom_name": "",
"dp_id": 7,
"time": 1674561759838
},
{
"code": "key_study2",
"custom_name": "",
"dp_id": 8,
"time": 1674561759838
},
{
"code": "key_study3",
"custom_name": "",
"dp_id": 9,
"time": 1674561759838
},
{
"code": "delay_time",
"custom_name": "",
"dp_id": 10,
"time": 1674561759838,
"value": 0
},
{
"code": "key_code4",
"custom_name": "",
"dp_id": 11,
"time": 1674561759838,
"value": ""
},
{
"code": "key_study4",
"custom_name": "",
"dp_id": 12,
"time": 1674561759838
},
{
"code": "type",
"custom_name": "",
"dp_id": 13,
"time": 1674561759838,
"value": 0
},
{
"code": "switch_power",
"custom_name": "",
"dp_id": 101,
"time": 1690404360694,
"value": false
},
{
"code": "mode",
"custom_name": "",
"dp_id": 102,
"time": 1690404277957,
"value": "0"
},
{
"code": "temperature",
"custom_name": "",
"dp_id": 103,
"time": 1690404277957,
"value": 20
},
{
"code": "fan",
"custom_name": "",
"dp_id": 104,
"time": 1690404277957,
"value": "0"
},
{
"code": "swing",
"custom_name": "",
"dp_id": 105,
"time": 1674561759838,
"value": false
},
{
"code": "ir_send",
"custom_name": "",
"dp_id": 201,
"time": 1674561759838,
"value": ""
},
{
"code": "ir_study_code",
"custom_name": "",
"dp_id": 202,
"time": 1674561759838
}
]
},
"success": true,
"t": 1690531316304,
"tid": "0563ee1b2d1d11ee94e0a2e0adfc0b14"
} Wouldn't this be enough to create a device? And it's not even that the device is unidentified, I simply get a timeout when trying to connect the IR device and add the sub device ID. Am I doing it correctly? |
Beta Was this translation helpful? Give feedback.
Because IR sub devices are one way, they do not return any data to identify them by. Currently this prevents them from being identified, as the current device identification method requires some data from the device to match against.