Please add support for BLE Padlock
Device Infomation JSON File
[7/27/2023, 4:35:39 AM] [Tuya] [Padlock] Product Category: mcs
[7/27/2023, 4:35:39 AM] [Tuya] [Padlock] Missing one of the required schema: [ 'doorcontact_state', 'switch' ]
[7/27/2023, 4:35:39 AM] [Tuya] [Padlock] Please switch device control mode to "DP Insctrution", and set `deviceOverrides` manually.
[7/27/2023, 4:35:39 AM] [Tuya] [Padlock] Detail information: https://github.com/0x5e/homebridge-tuya-platform#faq
[7/27/2023, 4:35:39 AM] [Tuya] [Padlock] Existing schema: [
{
code: 'alarm_lock',
mode: 'ro',
type: 'Enum',
property: { range: [ 'wrong_finger', [length]: 1 ] }
},
{
code: 'residual_electricity',
mode: 'ro',
type: 'Integer',
property: { min: -1, max: 100, scale: 0, step: 1 }
},
{
code: 'unlock_ble',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 999, scale: 0, step: 1 }
},
{
code: 'unlock_fingerprint',
mode: 'ro',
type: 'Integer',
property: { min: 0, max: 999, scale: 0, step: 1 }
},
{
code: 'unlock_method_create',
mode: 'rw',
type: 'Raw',
property: {}
},
{
code: 'unlock_method_delete',
mode: 'rw',
type: 'Raw',
property: {}
},
{
code: 'unlock_method_modify',
mode: 'rw',
type: 'Raw',
property: {}
},
[length]: 7
]
[7/27/2023, 4:35:39 AM] [Tuya] Unsupported device: Padlock.
Detail Informations
I'm reading the supported device page that a smart lock was supported by this plugin. But the padlock appeared as Not Supported in HomeKit.
Homebridge logs attached.
I have tried adding some non-standard DPs and even changing product code to mcs from ms, but the only thing that was exposed is the battery level of the padlock. I have no idea what I'm doing
For the special category that uses additional apis: Lock, Camera, IR. These feature are limited by cloud api, not able to get changed from plugin side. I guess the padlock are not able to supported :(
What about Lockin BLE Lockbox? It's exposed to HomeKit when added without any modification but its not responding to any command on the Home app. Works fine with Smart Life app with the device paired to a BLE gateway.
[Tuya] [TuyaOpenAPI] Response: path = /v1.0/devices/eb6751px6lkysqho/specifications data = { "result": { "category": "ms", "functions": [ { "code": "key_tone", "type": "Enum", "values": "{"range":["mute","low","normal","high"]}" } ], "status": [ { "code": "bluetooth_unlock", "type": "Raw", "values": "{}" }, { "code": "residual_electricity", "type": "Integer", "values": "{"min":-1,"max":100,"scale":0,"step":1}" }, { "code": "unlock_password", "type": "Integer", "values": "{"min":0,"max":999,"scale":0,"step":1}" }, { "code": "unlock_dynamic", "type": "Integer", "values": "{"min":0,"max":999,"scale":0,"step":1}" }, { "code": "unlock_ble", "type": "Integer", "values": "{"min":0,"max":999,"scale":0,"step":1}" }, { "code": "alarm_lock", "type": "Enum", "values": "{"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"]}" }, { "code": "key_tone", "type": "Enum", "values": "{"range":["mute","low","normal","high"]}" }, { "code": "lock_motor_state", "type": "Boolean", "values": "{}" }, { "code": "unlock_temporary", "type": "Integer", "values": "{"min":0,"max":999,"scale":0,"step":1}" } ] }, "success": true, "t": 1692375336719, "tid": "7736503e3de211ee8c70fe98ebe72f12" }
do you have any debug logs when unlocking the door on home app?