Skip to content
Open
Show file tree
Hide file tree
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
15 changes: 15 additions & 0 deletions drivers/TZ06/assets/icon-1.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
15 changes: 15 additions & 0 deletions drivers/TZ06/assets/icon-2.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
910 changes: 910 additions & 0 deletions drivers/TZ06/assets/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added drivers/TZ06/assets/images/large.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added drivers/TZ06/assets/images/small.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
785 changes: 785 additions & 0 deletions drivers/TZ06/assets/learnmode.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
16 changes: 16 additions & 0 deletions drivers/TZ06/device.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
'use strict';

const Homey = require('homey');
const ZwaveDevice = require('homey-meshdriver').ZwaveDevice;

class TZ06Switch extends ZwaveDevice {
async onMeshInit() {
//this.printNode();
//this.enableDebug();

// Capabilities
this.registerCapability('onoff', 'SWITCH_BINARY');
}
}

module.exports = TZ06Switch;
86 changes: 86 additions & 0 deletions drivers/TZ06/driver.compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,86 @@
{
"id": "TZ06",
"name": {
"en": "Double Relay Switch TZ06",
"nl": "Dubbel Relais Schakelaar TZ06"
},
"zwave": {
"manufacturerId": [
280
],
"productTypeId": [
1
],
"productId": [
4
],
"learnmode": {
"image": "/drivers/TZ06/assets/learnmode.svg",
"instruction": {
"en": "Press the inclusion button 3 times within 2 seconds to start the inclusion mode.",
"nl": "Druk binnen 2 seconden 3 keer op de includeer knop om de inclusie modus te activeren."
}
},
"associationGroups": [
1
],
"associationGroupsOptions": {
"1": {
"hint": {
"en": "Devices that are associated here will toggle their state when you switch with the right switch. Also the Lifeline, not recommended to remove Homey's ID",
"nl": "Apparaten die hier zijn geassocieerd zullen hun status schakelen wanneer je schakelt met de rechter schakelaar. Ook de levenslijn, niet aangeraden Homey's ID te verwijderen"
}
},
"2": {
"hint": {
"en": "Devices that are associated here will toggle their state when you double pressing the left switch.",
"nl": "Apparaten die hier zijn geassocieerd zullen hun status schakelen wanneer je 2x drukt op de linker schakelaar."
}
},
"3": {
"hint": {
"en": "Devices that are associated here will toggle their state when you double pressing the right switch.",
"nl": "Apparaten die hier zijn geassocieerd zullen hun status schakelen wanneer je 2x drukt op de rechter schakelaar."
}
},
"4": {
"hint": {
"en": "Devices that are associated here follow the state of the switch when it is being switched.",
"nl": "Apparaten die hier zijn geassocieerd volgen de status van de schakelaar wanneer het wordt geschakeld."
}
}
},
"multiChannelNodes": {
"1": {
"class": "socket",
"capabilities": [
"onoff"
],
"icon": "/drivers/TZ06/assets/icon-1.svg",
"name": {
"en": "Switch 1",
"nl": "Schakelaar 1"
}
},
"2": {
"class": "socket",
"capabilities": [
"onoff"
],
"icon": "/drivers/TZ06/assets/icon-2.svg",
"name": {
"en": "Switch 2",
"nl": "Schakelaar 2"
}
}
}
},
"class": "socket",
"capabilities": [
"onoff"
],
"images": {
"large": "/drivers/TZ06/assets/images/large.png",
"small": "/drivers/TZ06/assets/images/small.png"
}
}
105 changes: 105 additions & 0 deletions drivers/TZ06/driver.settings.compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,105 @@
[
{
"id": "indicator",
"type": "dropdown",
"zwave": {
"index": 1,
"size": 1
},
"label": {
"en": "LED Behaviour",
"nl": "LED Gedrag"
},
"value": "0",
"values": [
{
"id": "0",
"label": {
"en": "LED indicates that the socket is on.",
"nl": "LED geeft aan dat het stopcontact aan is."
}
},
{
"id": "1",
"label": {
"en": "LED indicates that the socket is off",
"nl": "LED geeft aan dat het stopcontact uit is"
}
}
]
},
{
"id": "save_state",
"zwave": {
"index": 2,
"size": 1
},
"type": "checkbox",
"label": {
"en": "Save Power-off State",
"nl": "Onthoud Stroom-eraf Status"
},
"hint": {
"en": "Saves its last state when power is disconnected",
"nl": "Onthoud zijn laatste status wanneer stroom eraf word gehaald"
},
"value": false
},
{
"id": "invert_switch_state",
"zwave": {
"index": 3,
"size": 1
},
"type": "checkbox",
"label": {
"en": "Invert switch state",
"nl": "Keer de schakelstatus om"
},
"hint": {
"en": "Check this setting if the switch is working like it is upside down.",
"nl": "Activeer deze setting als de schakelaar werkt alsof hij op de kop is gemonteerd."
},
"value": false
},
{
"id": "switch_type",
"zwave": {
"index": 4,
"size": 1
},
"type": "dropdown",
"label": {
"en": "Switch type",
"nl": "Schakelaar type"
},
"hint": {
"en": "This parameter (4) determines what device is operating the switch.",
"nl": "Deze parameter (4) bepaalt welk apparaat de schakelaar bestuurt."
},
"value": "3",
"values": [
{
"id": "1",
"label": {
"en": "Toggle switch (switch dependend)",
"nl": "Tuimelschakelaar (schakelaar afhankelijk)"
}
},
{
"id": "2",
"label": {
"en": "Momentary switch",
"nl": "Pulsdrukschakelaar"
}
},
{
"id": "3",
"label": {
"en": "Toggle switch (always toggle)",
"nl": "Tuimelschakelaar (schakelt altijd)"
}
}
]
}
]