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

Add SSP 302 #24

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
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
3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -91,5 +91,8 @@
},
"0.6.5": {
"en": "Update SSR302"
},
"0.6.6": {
"en": "Add support for SSP 302"
}
}
3 changes: 2 additions & 1 deletion .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "com.horstmann",
"version": "0.6.5",
"version": "0.6.6",
"compatibility": ">=5.0.0",
"sdk": 3,
"name": {
Expand All @@ -25,6 +25,7 @@
"ses303",
"srt321",
"srt323",
"ssp302",
"ssr302",
"ssr303",
"HRT4-ZW",
Expand Down
3 changes: 2 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@ Adds support for Secure (previously Horstmann) devices to Homey.
- [SES 302 Temperature Sensor](https://products.z-wavealliance.org/products/1240) - [Manual](https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/1240/SES%20302%20and%20303%20TH%20Sensors%20User%20Installation%20Manual,%20(Secure%20Controls%20UK%20Ltd)%20BGX501-923-R02.pdf)
- [SES 303 Temperature & Humidity Sensor](https://products.z-wavealliance.org/products/1175) - [Manual](https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/1240/SES%20302%20and%20303%20TH%20Sensors%20User%20Installation%20Manual,%20(Secure%20Controls%20UK%20Ltd)%20BGX501-923-R02.pdf)
- [SRT 323 Thermostat](https://products.z-wavealliance.org/products/1241)
- [SSR 302 Dual Channel Power Switch](https://products.z-wavealliance.org/products/1619) - [Manual](https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/1619/SSR%20302%20User%20Manual.pdf)
- [SRP 302 Thermostat](https://products.z-wavealliance.org/products/1241)
- [SSR 302 Smart Plug](https://products.z-wavealliance.org/products/1257) - [Manual](https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/1257/SSP%20302%20User%20Manual%20for%20Web.pdf)
- [SSR 303 / ASR-ZW Power Switch](https://products.z-wavealliance.org/products/1618) - [Manual](https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/1618/SSR%20303%20User%20Manual.pdf)


Expand Down
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,6 @@ SES 202
SES 302
SES 303
SRT 323
SSP 302
SSR 302
SSR 303 / ASR-ZW
81 changes: 80 additions & 1 deletion app.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"_comment": "This file is generated. Please edit .homeycompose/app.json instead.",
"id": "com.horstmann",
"version": "0.6.5",
"version": "0.6.6",
"compatibility": ">=5.0.0",
"sdk": 3,
"name": {
Expand All @@ -26,6 +26,7 @@
"ses303",
"srt321",
"srt323",
"ssp302",
"ssr302",
"ssr303",
"HRT4-ZW",
Expand Down Expand Up @@ -619,6 +620,84 @@
}
]
},
{
"class": "socket",
"capabilities": [
"onoff"
],
"images": {
"large": "/drivers/ssp302/assets/images/large.jpg",
"small": "/drivers/ssp302/assets/images/small.jpg"
},
"pair": [
{
"id": "list_devices",
"template": "list_devices",
"navigation": {
"next": "add_devices"
}
},
{
"id": "add_devices",
"template": "add_devices"
}
],
"id": "ssp302",
"name": {
"en": "SSP302"
},
"zwave": {
"manufacturerId": 89,
"productTypeId": 17,
"productId": [
1,
2
],
"zwaveAllianceProductId": 1257,
"zwaveAllianceProductDocumentation": "https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/1257/SSP%20302%20User%20Manual%20for%20Web.pdf",
"associationGroups": [
1,
2,
3,
4,
5
],
"associationGroupsOptions": {
"1": {
"hint": {
"en": "Lifeline"
}
},
"2": {
"hint": {
"en": "Power"
}
},
"3": {
"hint": {
"en": "Electrical Parameter"
}
},
"4": {
"hint": {
"en": "Relay Status"
}
},
"5": {
"hint": {
"en": "Time"
}
}
},
"wakeUpInterval": 1800,
"learnmode": {
"image": "/drivers/ssp302/assets/images/learnmode.svg",
"instruction": {
"en": "Press and hold the button on SSP 302 for 4 to 7 seconds then release.\nThe network status LED will start flashing.\nOn successful inclusion the LED will turn off."
}
}
}
},
{
"class": "socket",
"capabilities": [
Expand Down
Binary file added drivers/ssp302/assets/images/large.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions drivers/ssp302/assets/images/learnmode.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/ssp302/assets/images/small.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
13 changes: 13 additions & 0 deletions drivers/ssp302/device.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

const { ZwaveDevice } = require('homey-zwavedriver');

class SSP302Device extends ZwaveDevice {
async onNodeInit() {
this.log('SSP302Device Init');

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

module.exports = SSP302Device;
51 changes: 51 additions & 0 deletions drivers/ssp302/driver.compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
{
"id": "ssp302",
"name": {
"en": "SSP302"
},
"class": "socket",
"capabilities": ["onoff"],
"zwave": {
"manufacturerId": 89,
"productTypeId": 17,
"productId": [1, 2],
"zwaveAllianceProductId": 1257,
"zwaveAllianceProductDocumentation": "https://products.z-wavealliance.org/ProductManual/File?folder=&filename=MarketCertificationFiles/1257/SSP%20302%20User%20Manual%20for%20Web.pdf",
"associationGroups": [1, 2, 3, 4, 5],
"associationGroupsOptions": {
"1": {
"hint": {
"en": "Lifeline"
}
},
"2": {
"hint": {
"en": "Power"
}
},
"3": {
"hint": {
"en": "Electrical Parameter"
}
},
"4": {
"hint": {
"en": "Relay Status"
}
},
"5": {
"hint": {
"en": "Time"
}
}
},
"wakeUpInterval": 1800,
"learnmode": {
"image": "{{driverAssetsPath}}/images/learnmode.svg",
"instruction": {
"en": "Press and hold the button on SSP 302 for 4 to 7 seconds then release.\nThe network status LED will start flashing.\nOn successful inclusion the LED will turn off."
}
}
},
"$extends": ["defaults"]
}
5 changes: 5 additions & 0 deletions drivers/ssp302/icon.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.