I have some Tuya devices and note that these are quite difficult to locally integrate.
I'm using the Tuya Cloud driver by Jonathan Bradshaw (@jonathanb) and this works fine - thanks Jonathan! I thought I'd go for the gold standard of local integration and I'm trying to use the Tuya Generic driver by Ivar Holand (@holand.ivar).
I have the local keys and I suspect these are working because I'm getting some response from the Tuya hub, however it is not returning any decrypted json data - either for DP_QUERY or heartbeat frame types.
I was just wondering if anyone can deduce what may be the problem from the picture above? One problem I have is that the endpoint number is not clearly called out in the devices.json file from the tinytuya wizard. The devices are water sensors.
The status from tuya-raw shows:
"status": [
{
"code": "watersensor_state",
"value": "2"
},
{
"code": "battery_percentage",
"value": 0
}
]
There is also a mapping field in devices.json that looks like:
"mapping": {
"102": {
"code": "watersensor_state",
"type": "Enum",
"values": {
"range": [
"1",
"2"
]
}
},
"103": {
"code": "battery_percentage",
"type": "Integer",
"values": {
"unit": "%",
"min": 0,
"max": 100,
"scale": 0,
"step": 1
}
}
}
I'm not a groovy/java boffin and my main experience is Python these days. Any help or pointers would be greatly appreciated.