Skip to content

Commit

Permalink
feat(add): SR-ZG9060A-GS, SR-ZG9060B-CS, SR-ZG9050C-WS, SR-ZG9050B-WS (
Browse files Browse the repository at this point in the history
  • Loading branch information
niracler authored Jan 17, 2025
1 parent f55a75b commit e15957a
Showing 1 changed file with 34 additions and 0 deletions.
34 changes: 34 additions & 0 deletions src/devices/sunricher.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ import {
electricityMeter,
enumLookup,
humidity,
iasWarning,
iasZoneAlarm,
identify,
illuminance,
Expand Down Expand Up @@ -426,6 +427,39 @@ async function syncTime(endpoint: Zh.Endpoint) {
}

const definitions: DefinitionWithExtend[] = [
{
zigbeeModel: ['HK-SENSOR-GAS'],
model: 'SR-ZG9060A-GS',
vendor: 'Sunricher',
description: 'Smart Combustible Gas Sensor',
extend: [iasZoneAlarm({zoneType: 'generic', zoneAttributes: ['alarm_1', 'alarm_2', 'tamper', 'battery_low']}), iasWarning()],
},
{
zigbeeModel: ['HK-SENSOR-CO'],
model: 'SR-ZG9060B-CS',
vendor: 'Sunricher',
description: 'Smart Carbon Monoxide Alarm',
extend: [battery(), iasZoneAlarm({zoneType: 'generic', zoneAttributes: ['alarm_1', 'alarm_2', 'tamper', 'battery_low']}), iasWarning()],
},
{
zigbeeModel: ['HK-SENSOR-WT1'],
model: 'SR-ZG9050C-WS',
vendor: 'Sunricher',
description: 'Smart Water Leakage Sensor',
extend: [battery(), iasZoneAlarm({zoneType: 'generic', zoneAttributes: ['alarm_1', 'alarm_2', 'tamper', 'battery_low']})],
},
{
zigbeeModel: ['HK-SENSOR-WT2'],
model: 'SR-ZG9050B-WS',
vendor: 'Sunricher',
description: 'Water Leakage Alarm',
extend: [
battery(),
temperature(),
iasZoneAlarm({zoneType: 'generic', zoneAttributes: ['alarm_1', 'alarm_2', 'tamper', 'battery_low']}),
iasWarning(),
],
},
{
zigbeeModel: ['HK-SL-DIM-UK'],
model: 'SR-ZG2835RAC-UK',
Expand Down

0 comments on commit e15957a

Please sign in to comment.