Skip to content

Commit

Permalink
feat(add): OSP 210 (#6294)
Browse files Browse the repository at this point in the history
* Add OSP 210

* Romved trailing spaces
  • Loading branch information
vikdb authored Oct 16, 2023
1 parent 90913a2 commit 3456444
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions src/devices/innr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -669,6 +669,18 @@ const definitions: Definition[] = [
ota: ota.zigbeeOTA,
exposes: [e.power(), e.current(), e.voltage(), e.switch(), e.energy()],
},
{
zigbeeModel: ['OSP 210'],
model: 'OSP 210',
vendor: 'Innr',
description: 'Outdoor smart plug',
extend: extend.switch(),
configure: async (device, coordinatorEndpoint, logger) => {
const endpoint = device.getEndpoint(1);
await reporting.bind(endpoint, coordinatorEndpoint, ['genOnOff']);
await reporting.onOff(endpoint);
},
},
{
zigbeeModel: ['OFL 120 C'],
model: 'OFL 120 C',
Expand Down

0 comments on commit 3456444

Please sign in to comment.