Skip to content

Commit

Permalink
feat(add): SOMFY-1241752 (#6019)
Browse files Browse the repository at this point in the history
* Initial support for SOMFY blind motors

* Update somfy.ts

---------

Co-authored-by: Dan Bennett <@nonodename.com>
Co-authored-by: Koen Kanters <koenkanters94@gmail.com>
  • Loading branch information
nonodename and Koenkk authored Jul 27, 2023
1 parent 69c3223 commit ccffb64
Showing 1 changed file with 20 additions and 0 deletions.
20 changes: 20 additions & 0 deletions src/devices/somfy.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
import {Definition} from '../lib/types';
import fz from '../converters/fromZigbee';
import tz from '../converters/toZigbee';
import * as exposes from '../lib/exposes';

const e = exposes.presets;

const definitions: Definition[] = [
{
zigbeeModel: ['Sonesse Ultra 30 WF Li-Ion Rolle'],
model: 'SOMFY-1241752',
vendor: 'SOMFY',
description: 'Blinds from vendors using this roller',
fromZigbee: [fz.battery, fz.power_source, fz.cover_position_tilt],
toZigbee: [tz.cover_state, tz.cover_position_tilt],
exposes: [e.cover_position()],
},
];

module.exports = definitions;

0 comments on commit ccffb64

Please sign in to comment.