support aqara s2 lock pro (#1859)

This commit is contained in:
hawkefly 2019-08-16 23:40:47 +08:00 committed by Koen Kanters
parent 22bed9a347
commit 4d4a63f913
2 changed files with 4 additions and 1 deletions

View File

@ -822,6 +822,9 @@ const mapping = {
'ZNMS12LM': [
configurations.sensor_action, configurations.binary_sensor_lock, configurations.binary_sensor_lock_reverse,
],
'ZNMS13LM': [
configurations.sensor_action, configurations.binary_sensor_lock, configurations.binary_sensor_lock_reverse,
],
'12050': [configurations.switch, configurations.sensor_power],
'ROB_200-004-0': [configurations.light_brightness],
'RH3040': [configurations.sensor_battery, configurations.binary_sensor_occupancy],

View File

@ -39,7 +39,7 @@ function flatten(arr) {
}
const forceEndDevice = flatten(
['QBKG03LM', 'QBKG04LM']
['QBKG03LM', 'QBKG04LM', 'ZNMS13LM']
.map((model) => zigbeeShepherdConverters.devices.find((d) => d.model === model))
.map((mappedModel) => mappedModel.zigbeeModel));