Skip to content

Commit 0306b39

Browse files
fix: Fix Somfy SOMFY-1241752 integration (#8325)
* Fix Somfy blind Removed tilt and fixed position and status of the blind * Update somfy.ts * Update somfy.ts * Update somfy.ts * Update somfy.ts * u --------- Co-authored-by: Koen Kanters <[email protected]>
1 parent 347eeb3 commit 0306b39

File tree

1 file changed

+3
-10
lines changed

1 file changed

+3
-10
lines changed

src/devices/somfy.ts

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import fz from '../converters/fromZigbee';
22
import tz from '../converters/toZigbee';
33
import * as exposes from '../lib/exposes';
4-
import {battery, iasZoneAlarm, identify} from '../lib/modernExtend';
4+
import {battery, iasZoneAlarm, identify, windowCovering} from '../lib/modernExtend';
55
import * as reporting from '../lib/reporting';
66
import {DefinitionWithExtend} from '../lib/types';
77

@@ -12,15 +12,8 @@ const definitions: DefinitionWithExtend[] = [
1212
zigbeeModel: ['Sonesse Ultra 30 WF Li-Ion Rolle'],
1313
model: 'SOMFY-1241752',
1414
vendor: 'SOMFY',
15-
description: 'Blinds from vendors using this roller',
16-
fromZigbee: [fz.battery, fz.power_source, fz.cover_position_tilt],
17-
toZigbee: [tz.cover_state, tz.cover_position_tilt],
18-
configure: async (device, coordinatorEndpoint) => {
19-
const endpoint = device.getEndpoint(232);
20-
await reporting.bind(endpoint, coordinatorEndpoint, ['genPowerCfg']);
21-
await reporting.batteryPercentageRemaining(endpoint);
22-
},
23-
exposes: [e.cover_position(), e.battery()],
15+
description: 'Blinds',
16+
extend: [windowCovering({controls: ['lift']}), battery()],
2417
},
2518
{
2619
zigbeeModel: ['1822647'],

0 commit comments

Comments
 (0)