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

DIYRuZ_R8_8 multi relays #1342

Merged
merged 2 commits into from
Jun 24, 2020
Merged
Changes from 1 commit
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
Next Next commit
DIYRuZ_R8_8 multi relays
  • Loading branch information
kirovilya authored Jun 23, 2020
commit ad39f09436185be417041d6c500b211d1dafd680
16 changes: 16 additions & 0 deletions devices.js
Original file line number Diff line number Diff line change
Expand Up @@ -2933,6 +2933,22 @@ const devices = [
await endpoint.configureReporting('msIlluminanceMeasurement', payload);
},
},
{
zigbeeModel: ['DIYRuZ_R8_8'],
model: 'DIYRuZ_R8_8',
vendor: 'Custom devices (DiY)',
description: '[DiY 8 Relays + 8 switches](https://modkam.ru/?p=1638)',
supports: 'on/off',
fromZigbee: [
fz.ptvo_switch_state, fz.ptvo_switch_buttons, fz.ignore_basic_report,
],
toZigbee: [tz.on_off],
endpoint: (device) => {
return {
'l1': 1, 'l2': 2, 'l3': 3, 'l4': 4, 'l5': 5, 'l6': 6, 'l7': 7, 'l8': 8,
};
},
},

// eCozy
{
Expand Down