From 8877e01b99aa51505987ed78623573c9e465ed90 Mon Sep 17 00:00:00 2001 From: astephon88 Date: Mon, 22 Aug 2022 20:44:41 +0000 Subject: [PATCH] feat: add zsmoke alarm mappings --- .../config/config/devices/0x0138/zsmoke.json | 56 ++++++++++++++++++- 1 file changed, 55 insertions(+), 1 deletion(-) diff --git a/packages/config/config/devices/0x0138/zsmoke.json b/packages/config/config/devices/0x0138/zsmoke.json index cf92b77e904..61b4902c8da 100644 --- a/packages/config/config/devices/0x0138/zsmoke.json +++ b/packages/config/config/devices/0x0138/zsmoke.json @@ -41,5 +41,59 @@ } ] } - ] + ], + "compat": { + "alarmMapping": [ + { + "from": { + "alarmType": 1, + "alarmLevel": 255 + }, + "to": { + "notificationType": 1, + "notificationEvent": 2 + } + }, + { + "from": { + "alarmType": 1, + "alarmLevel": 0 + }, + "to": { + "notificationType": 1, + "notificationEvent": 0 + } + }, + { + "from": { + "alarmType": 12, + "alarmLevel": 255 + }, + "to": { + "notificationType": 1, + "notificationEvent": 3 + } + }, + { + "from": { + "alarmType": 12, + "alarmLevel": 0 + }, + "to": { + "notificationType": 1, + "notificationEvent": 0 + } + }, + { + "from": { + "alarmType": 13, + "alarmLevel": 255 + }, + "to": { + "notificationType": 1, + "notificationEvent": 0 + } + } + ] + } }