@tuya, I notice there is an open issue #78917 that is outstanding. I’m running Home Assistant Core 2023.3.5.
I’m also having trouble integrating with Tuya (cloud) and doing basic automations. I notice the Tuya Contact Sensors do not bring in all data points that are available in the Tuya Smart Life application. When I link to the Tuya IoT Platform and run the “Get Device Specification Attribute” API for the device, it shows the following data points:
{
"result": {
"category": "mc",
"functions": [],
"status": [
{
"code": "doorcontact_state",
"dp_id": 1,
"type": "Boolean",
"values": "{}"
},
{
"code": "battery_state",
"dp_id": 101,
"type": "Enum",
"values": "{\"range\":[\"low\",\"middle\",\"high\"]}"
}
]
}
And when I invoke the “Get the status of a single device” API, I can see the state changes as expected:
{
"result": [
{
"code": "doorcontact_state",
"value": true
},
{
"code": "battery_state",
"value": "high"
}
]
However, when I inspect the device after invoking the Tuya Integration in Home Assistant, it only shows the battery_state:
I tried LocalTuya Integration also but encountered the error “Connection to device succeeded but no datapoints found, please try again. Create a new issue and include debug logs if problem persists.”
Can anyone help me set up a contact sensor manually or by using a yaml file?
Thanks in advance.