diff --git a/packages/config/config/devices/0x0138/zsmoke.json b/packages/config/config/devices/0x0138/zsmoke.json index cf92b77e904a..61b4902c8da4 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 + } + } + ] + } }