Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added reporting and converter for Ubisys J1 #1583

Merged
merged 2 commits into from
Sep 25, 2020
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
12 changes: 11 additions & 1 deletion devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -11125,8 +11125,18 @@ const devices = [
vendor: 'Ubisys',
description: 'Shutter control J1',
supports: 'open, close, stop, position, tilt',
fromZigbee: [fz.cover_position_tilt],
fromZigbee: [fz.cover_position_tilt, fz.metering_power],
toZigbee: [tz.cover_state, tz.cover_position_tilt, tz.ubisys_configure_j1, tz.ubisys_device_setup],
meta: {configureKey: 1},
configure: async (device, coordinatorEndpoint) => {
const endpoint1 = device.getEndpoint(1);
const endpoint3 = device.getEndpoint(3);
await bind(endpoint3, coordinatorEndpoint, ['seMetering']);
await readMeteringPowerConverterAttributes(endpoint3);
await configureReporting.instantaneousDemand(endpoint3);
await bind(endpoint1, coordinatorEndpoint, ['closuresWindowCovering']);
await configureReporting.currentPositionLiftPercentage(endpoint1);
},
ota: ota.ubisys,
},
{
Expand Down