diff --git a/get-alarms.js b/get-alarms.js index 8726332..73428ff 100644 --- a/get-alarms.js +++ b/get-alarms.js @@ -23,6 +23,9 @@ const DeviceType = { ZigbeeAdapter: 'adapter.zigbee', AccessCodeVault: 'access-code.vault', AccessCode: 'access-code', + SmokeAlarm: 'alarm.smoke', + CoAlarm: 'alarm.co', + SmokeCoListener: 'listener.smoke-co', }, deviceListMessageType = 'DeviceInfoDocGetList' diff --git a/main.d.ts b/main.d.ts index dbe20e4..07f1317 100644 --- a/main.d.ts +++ b/main.d.ts @@ -18,6 +18,9 @@ declare namespace RingApi { ZigbeeAdapter = 'adapter.zigbee', AccessCodeVault = 'access-code.vault', AccessCode = 'access-code', + SmokeAlarm = 'alarm.smoke', + CoAlarm = 'alarm.co', + SmokeCoListener = 'listener.smoke-co', } interface AlarmDeviceData { @@ -36,11 +39,14 @@ declare namespace RingApi { volume?: number mode?: 'all' | 'some' | 'none' alarmInfo?: { - state: 'burglar-alarm' | 'entry-delay' + state: 'burglar-alarm' | 'entry-delay' | 'fire-alarm' | 'co-alarm' | 'panic' | 'user-verified-co-or-fire-alarm' | 'user-verified-burglar-alarm' faultedDevices?: string[] timestamp?: number uuid?: string } + alarmStatus?: 'active' + co?: { alarmStatus?: 'active' } + smoke?: { alarmStatus?: 'active' } } interface AlarmDevice {