Skip to content

Commit

Permalink
Add SOMFY 1811680 and SOMFY 1811681
Browse files Browse the repository at this point in the history
  • Loading branch information
ngraziano committed Sep 1, 2024
1 parent 519decf commit f1e6a9f
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions src/devices/somfy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import tz from '../converters/toZigbee';
import * as exposes from '../lib/exposes';
import * as reporting from '../lib/reporting';
import {Definition} from '../lib/types';
import { battery, iasZoneAlarm, identify } from 'src/lib/modernExtend';

const e = exposes.presets;

Expand Down Expand Up @@ -39,6 +40,21 @@ const definitions: Definition[] = [
await reporting.currentSummReceived(ep);
},
},
{
zigbeeModel: ['1811680'],
model: '1811680',
vendor: 'SOMFY',
description: 'Zigbee opening sensor',
extend: [identify(), iasZoneAlarm({zoneType:'generic', zoneAttributes:['alarm_1','battery_low']}), battery()],
},
{
zigbeeModel: ['1811681'],
model: '1811681',
vendor: 'SOMFY',
description: 'Zigbee motion sensor',
extend: [identify(), iasZoneAlarm({zoneType:'occupancy',zoneAttributes:['alarm_1','battery_low']}), battery()],
meta: {},
},
];

export default definitions;
Expand Down

0 comments on commit f1e6a9f

Please sign in to comment.