Hi geeks,
I bought two devices like this (see PDF) and I use it through a Bluetooth/Wifi gateway.
I can manage all the features with the Tuya Smart application and I can see the devices in HA with the Tuya cloud integration, but there is no entities or sensors available for these smart lock boxes. If I click on the DOWLOAD DIAGNOSTICS button in Tuya Integration, I can see some information like below. Is there a generic integration that allows to retrieve usable information? My goal to create an HA automation when the box is unlocked. Is the solution to sniff what transits between the box and the Tuya application to discover the mqtt data (topic,…) ? I already do automation in Tuya Smart but HA is much more powerful… Thanks in advance to those who will read this post.
“data”: {
“endpoint”: “https://openapi.tuyaeu.com”,
“auth_type”: 0,
“country_code”: “32”,
“app_type”: “tuyaSmart”,
“mqtt_connected”: true,
“disabled_by”: null,
“disabled_polling”: false,
“name”: “Lockbox REZ”,
“model”: “”,
“category”: “ms”,
“product_id”: “yxo1lldk”,
“product_name”: “Lockbox L1”,
“online”: true,
“sub”: true,
“time_zone”: “+01:00”,
“active_time”: “2022-12-01T16:57:47+00:00”,
“create_time”: “2022-12-01T16:57:47+00:00”,
“update_time”: “2022-12-01T17:09:11+00:00”,
“function”: {
“key_tone”: {
“type”: “Enum”,
“value”: {
“range”: [
“mute”,
“low”,
“normal”,
“high”
]
}
}
},
“status_range”: {
“bluetooth_unlock”: {
“type”: “Raw”,
“value”: {}
},
“residual_electricity”: {
“type”: “Integer”,
“value”: {
“min”: -1,
“max”: 100,
“scale”: 0,
“step”: 1
}
},
“unlock_password”: {
“type”: “Integer”,
“value”: {
“min”: 0,
“max”: 999,
“scale”: 0,
“step”: 1
}
},
“unlock_dynamic”: {
“type”: “Integer”,
“value”: {
“min”: 0,
“max”: 999,
“scale”: 0,
“step”: 1
}
},
“unlock_ble”: {
“type”: “Integer”,
“value”: {
“min”: 0,
“max”: 999,
“scale”: 0,
“step”: 1
}
},
“alarm_lock”: {
“type”: “Enum”,
“value”: {
“range”: [
“wrong_finger”,
“wrong_password”,
“wrong_card”,
“wrong_face”,
“tongue_bad”,
“too_hot”,
“unclosed_time”,
“tongue_not_out”,
“pry”,
“key_in”,
“low_battery”,
“power_off”,
“shock”
]
}
},
“key_tone”: {
“type”: “Enum”,
“value”: {
“range”: [
“mute”,
“low”,
“normal”,
“high”
]
}
},
“lock_motor_state”: {
“type”: “Boolean”,
“value”: {}
},
“unlock_temporary”: {
“type”: “Integer”,
“value”: {
“min”: 0,
“max”: 999,
“scale”: 0,
“step”: 1
}
}
},
“status”: {
“bluetooth_unlock”: “AQE=”,
“residual_electricity”: 100,
“unlock_password”: 0,
“unlock_dynamic”: 0,
“unlock_ble”: 1,
“alarm_lock”: “wrong_finger”,
“key_tone”: “mute”,
“lock_motor_state”: false,
“unlock_temporary”: 50
},
“home_assistant”: {
“name”: “Lockbox REZ”,
“name_by_user”: null,
“disabled”: false,
“disabled_by”: null,
“entities”: []
}
}