Hi,
I gave it a try to add AN196 to the code, but no success yet.
I am new to this, so I am not really sure what I am doing, but what i did was:
- New AN196 driver folder and changed content of device.js. Anything else do be done here but replacing AN179 with AN196?
- Added new device to app.json as below.
I find the AN196 device and I am able to add the device to Homey. Controlling the first channel works fine. But no device for the second channel is added. What am I missing here?
Thanks for any help!
"id": "AN196",
"name": {
"en": "AN196 Everspring In-Wall plug"
},
"zwave": {
"manufacturerId": 96,
"productTypeId": 4,
"productId": 14,
"learnmode": {
"image": "/drivers/AN196/assets/learnmode.svg",
"instruction": {
"en": "Press the link key three times within 1.5 seconds to put the unit into inclusion mode.",
"nl": "Klik de link knop 3 keer binnen 1.5 sec om de unit in autoinclusion mode te zetten"
}
},
"isMultiChannelNode": true,
"associationGroups": [
1,
2,
3
]
},
"class": "socket",
"capabilities": [
"onoff"
],
"associationGroupsMultiChannel": [
1
],
"multiChannelNodes": {
"1": {
"class": "socket",
"capabilities": [
"onoff"
],
"icon": "{{driverAssetsPath}}/icon.svg",
"name": {
"en": "Right Switch",
"nl": "Rechter Schakelaar"
},
"settings": []
}
},
"images": {
"large": "/drivers/AN196/assets/images/large.png",
"small": "/drivers/AN196/assets/images/small.png"
},
"settings": [
{
"id": "remember_state",
"type": "checkbox",
"label": {
"en": "Return to last known state after power loss",
"nl": "Keer terug naar laatst bekende status bij spanningsuitval"
},
"value": true,
"hint": {
"en": "After power loss the state of the relay will switch to last known.",
"nl": "Schakel terug naar laatst bekende schakelstand na spanningsuitval"
}
},
{
"id": "switching_type",
"type": "dropdown",
"label": {
"en": "Switch 1 switching type",
"nl": "Schakelaar 1 type"
},
"value": "0",
"values": [
{
"id": "0",
"label": {
"en": "Single Pole Double Throw",
"nl": "Single Pole Double Throw"
}
},
{
"id": "1",
"label": {
"en": "Toggle switch",
"nl": "Toggle switch"
}
}
]
}
]
},```