Actually I think that the issue may be bigger than Home Assistant. When I log into Tuya and check debugging for the device, I get:
Device Information
Product Name Smart Wireless Garage Door Opener
Device ID 2207********207
Product Category ckmkzq
Device Status Online
Activated At 2022-08-15 13:45:20
But the instruction set is empty
When I go to API explorer and check for the instruction set, I get this:
{
"result": {
"category": "ckmkzq",
"functions": []
},
"success": true,
"t": 16606*******32,
"tid": "a5********************23f65"
}
However the instruction set for the category “garage door” should be producing this:
{
"result": {
"category": "ckmkzq",
"functions": [
{
"code": "countdown_alarm",
"desc": "countdown alarm",
"name": "countdown alarm",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
},
{
"code": "tr_timecon",
"desc": "tr timecon",
"name": "tr timecon",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":10,\"max\":120,\"scale\":0,\"step\":1}"
},
{
"code": "countdown_1",
"desc": "countdown 1",
"name": "countdown 1",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
},
{
"code": "switch_1",
"desc": "switch 1",
"name": "switch 1",
"type": "Boolean",
"values": "{}"
},
{
"code": "switch_alarm_sound",
"desc": "switch alarm sound",
"name": "switch alarm sound",
"type": "Boolean",
"values": "{}"
},
{
"code": "switch_3",
"desc": "switch 3",
"name": "switch 3",
"type": "Boolean",
"values": "{}"
},
{
"code": "door_control_3",
"desc": "door control 3",
"name": "door control 3",
"type": "Enum",
"values": "{\"range\":[\"open\",\"close\"]}"
},
{
"code": "switch_alarm_1",
"desc": "switch alarm 1",
"name": "switch alarm 1",
"type": "Boolean",
"values": "{}"
},
{
"code": "door_state_1",
"desc": "door state 1",
"name": "door state 1",
"type": "Enum",
"values": "{\"range\":[\"unclosed_time\",\"close_time_alarm\",\"none\"]}"
},
{
"code": "voice_control_3",
"desc": "voice control 3",
"name": "voice control 3",
"type": "Boolean",
"values": "{}"
},
{
"code": "door_time_1",
"desc": "door time 1",
"name": "door time 1",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":10,\"max\":120,\"scale\":0,\"step\":1}"
},
{
"code": "switch_2",
"desc": "switch 2",
"name": "switch 2",
"type": "Boolean",
"values": "{}"
},
{
"code": "door_time_2",
"desc": "door time 2",
"name": "door time 2",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":5,\"max\":300,\"scale\":0,\"step\":1}"
},
{
"code": "door_time_3",
"desc": "door time 3",
"name": "door time 3",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":5,\"max\":300,\"scale\":0,\"step\":1}"
},
{
"code": "voice_control_2",
"desc": "voice control 2",
"name": "voice control 2",
"type": "Boolean",
"values": "{}"
},
{
"code": "voice_control_1",
"desc": "voice control 1",
"name": "voice control 1",
"type": "Boolean",
"values": "{}"
},
{
"code": "alarm_countdown_1",
"desc": "alarm countdown 1",
"name": "alarm countdown 1",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
},
{
"code": "alarm_countdown_2",
"desc": "alarm countdown 2",
"name": "alarm countdown 2",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
},
{
"code": "alarm_countdown_3",
"desc": "alarm countdown 3",
"name": "alarm countdown 3",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
},
{
"code": "countdown_2",
"desc": "countdown 2",
"name": "countdown 2",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
},
{
"code": "countdown_3",
"desc": "countdown 3",
"name": "countdown 3",
"type": "Integer",
"values": "{\"unit\":\"s\",\"min\":0,\"max\":86400,\"scale\":0,\"step\":1}"
},
{
"code": "door_control_2",
"desc": "door control 2",
"name": "door control 2",
"type": "Enum",
"values": "{\"range\":[\"open\",\"close\"]}"
},
{
"code": "door_control_1",
"desc": "door control 1",
"name": "door control 1",
"type": "Enum",
"values": "{\"range\":[\"open\",\"close\"]}"
}
]
},
"success": true,
"t": 16606*******32,
"tid": "a5********************23f65"
}
But the opener is working fine via the Smartlife Android App, which is making me quite confused.
All my other tuya devices are correctly showing information under API explorer and device debug.
Any ideas ?
Pete