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 support for SIR 321 #38

Open
wants to merge 9 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
9 changes: 9 additions & 0 deletions .all-contributorsrc
Original file line number Diff line number Diff line change
Expand Up @@ -70,6 +70,15 @@
"contributions": [
"bug"
]
},
{
"login": "Flush1963",
"name": "Flush1963",
"avatar_url": "https://avatars.githubusercontent.com/u/117358003?v=4",
"profile": "https://github.com/Flush1963",
"contributions": [
"ideas"
]
}
],
"contributorsPerLine": 7,
Expand Down
3 changes: 3 additions & 0 deletions .homeychangelog.json
Original file line number Diff line number Diff line change
Expand Up @@ -106,5 +106,8 @@
},
"0.9.2": {
"en": "Update learn instructions for SCS 317"
},
"0.10.0": {
"en": "Add support for SIR 321"
}
}
2 changes: 1 addition & 1 deletion .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "com.horstmann",
"version": "0.9.2",
"version": "0.10.0",
"compatibility": ">=5.0.0",
"sdk": 3,
"name": {
Expand Down
24 changes: 15 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ Adds support for Secure (previously Horstmann) devices to Homey.
- [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)
- [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)
- [SCS 317 / C17-ZW Programmable Room Thermostat](https://products.z-wavealliance.org/products/864)
- [SIR 321](https://products.z-wavealliance.org/products/1012/)


## License
Expand All @@ -32,15 +33,20 @@ Thanks goes to these wonderful people ([emoji key](https://allcontributors.org/d
<!-- prettier-ignore-start -->
<!-- markdownlint-disable -->
<table>
<tr>
<td align="center"><a href="https://github.com/hankolsen"><img src="https://avatars.githubusercontent.com/u/1008390?v=4?s=100" width="100px;" alt=""/><br /><sub><b>hankolsen</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/commits?author=hankolsen" title="Code">💻</a> <a href="#design-hankolsen" title="Design">🎨</a> <a href="#ideas-hankolsen" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://www.splitbrain.com"><img src="https://avatars.githubusercontent.com/u/11892641?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Darryl van der Peijl</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/issues?q=author%3ADarrylvanderPeijl" title="Bug reports">🐛</a> <a href="https://github.com/hankolsen/com.securemeters.horstmann/commits?author=DarrylvanderPeijl" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/arvid-r"><img src="https://avatars.githubusercontent.com/u/2465432?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Arvid Rosen</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/issues?q=author%3Aarvid-r" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/Rocodamelshe"><img src="https://avatars.githubusercontent.com/u/19249884?v=4?s=100" width="100px;" alt=""/><br /><sub><b>Rocodamelshe</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/commits?author=Rocodamelshe" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/jmdraper"><img src="https://avatars.githubusercontent.com/u/20240325?v=4?s=100" width="100px;" alt=""/><br /><sub><b>jmdraper</b></sub></a><br /><a href="#ideas-jmdraper" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/theSequencer82"><img src="https://avatars.githubusercontent.com/u/34631732?v=4?s=100" width="100px;" alt=""/><br /><sub><b>theSequencer82</b></sub></a><br /><a href="#ideas-theSequencer82" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/SPAeotec"><img src="https://avatars.githubusercontent.com/u/62385464?v=4?s=100" width="100px;" alt=""/><br /><sub><b>SPAeotec</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/issues?q=author%3ASPAeotec" title="Bug reports">🐛</a></td>
</tr>
<tbody>
<tr>
<td align="center"><a href="https://github.com/hankolsen"><img src="https://avatars.githubusercontent.com/u/1008390?v=4?s=100" width="100px;" alt="hankolsen"/><br /><sub><b>hankolsen</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/commits?author=hankolsen" title="Code">💻</a> <a href="#design-hankolsen" title="Design">🎨</a> <a href="#ideas-hankolsen" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://www.splitbrain.com"><img src="https://avatars.githubusercontent.com/u/11892641?v=4?s=100" width="100px;" alt="Darryl van der Peijl"/><br /><sub><b>Darryl van der Peijl</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/issues?q=author%3ADarrylvanderPeijl" title="Bug reports">🐛</a> <a href="https://github.com/hankolsen/com.securemeters.horstmann/commits?author=DarrylvanderPeijl" title="Code">💻</a></td>
<td align="center"><a href="https://github.com/arvid-r"><img src="https://avatars.githubusercontent.com/u/2465432?v=4?s=100" width="100px;" alt="Arvid Rosen"/><br /><sub><b>Arvid Rosen</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/issues?q=author%3Aarvid-r" title="Bug reports">🐛</a></td>
<td align="center"><a href="https://github.com/Rocodamelshe"><img src="https://avatars.githubusercontent.com/u/19249884?v=4?s=100" width="100px;" alt="Rocodamelshe"/><br /><sub><b>Rocodamelshe</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/commits?author=Rocodamelshe" title="Tests">⚠️</a></td>
<td align="center"><a href="https://github.com/jmdraper"><img src="https://avatars.githubusercontent.com/u/20240325?v=4?s=100" width="100px;" alt="jmdraper"/><br /><sub><b>jmdraper</b></sub></a><br /><a href="#ideas-jmdraper" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/theSequencer82"><img src="https://avatars.githubusercontent.com/u/34631732?v=4?s=100" width="100px;" alt="theSequencer82"/><br /><sub><b>theSequencer82</b></sub></a><br /><a href="#ideas-theSequencer82" title="Ideas, Planning, & Feedback">🤔</a></td>
<td align="center"><a href="https://github.com/SPAeotec"><img src="https://avatars.githubusercontent.com/u/62385464?v=4?s=100" width="100px;" alt="SPAeotec"/><br /><sub><b>SPAeotec</b></sub></a><br /><a href="https://github.com/hankolsen/com.securemeters.horstmann/issues?q=author%3ASPAeotec" title="Bug reports">🐛</a></td>
</tr>
<tr>
<td align="center"><a href="https://github.com/Flush1963"><img src="https://avatars.githubusercontent.com/u/117358003?v=4?s=100" width="100px;" alt="Flush1963"/><br /><sub><b>Flush1963</b></sub></a><br /><a href="#ideas-Flush1963" title="Ideas, Planning, & Feedback">🤔</a></td>
</tr>
</tbody>
</table>

<!-- markdownlint-restore -->
Expand Down
1 change: 1 addition & 0 deletions README.txt
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,4 @@ SRT 323
SSR 302
SSR 303 / ASR-ZW
SCS 317
SIR 321
74 changes: 73 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.9.2",
"version": "0.10.0",
"compatibility": ">=5.0.0",
"sdk": 3,
"name": {
Expand Down Expand Up @@ -435,6 +435,78 @@
}
]
},
{
"id": "sir321",
"name": {
"en": "SIR321"
},
"class": "socket",
"capabilities": [
"onoff",
"measure_temperature"
],
"connectivity": [
"zwave"
],
"images": {
"small": "/drivers/sir321/assets/images/small.jpg",
"large": "/drivers/sir321/assets/images/large.jpg"
},
"zwave": {
"manufacturerId": 89,
"productTypeId": [
16
],
"productId": [
2,
3,
4
],
"zwaveAllianceProductId": 1012,
"zwaveAllianceProductDocumentation": "https://products.z-wavealliance.org/ProductManual/File?folder=&filename=product_documents/4045/SIR321%20BGX501-867%20R07.pdf",
"associationGroups": [
1,
2,
3
],
"associationGroupsOptions": {
"1": {
"hint": {
"en": "Lifeline"
}
},
"2": {
"hint": {
"en": "Schedule Report"
}
},
"3": {
"hint": {
"en": "Air Temperature"
}
}
},
"learnmode": {
"instruction": {
"en": "Press and hold the pairing button on the back of the unit\n When RF LED starts flashing, relase the button.\n On successful addition, the LED will stop flashing."
}
}
},
"pair": [
{
"id": "list_devices",
"template": "list_devices",
"navigation": {
"next": "add_devices"
}
},
{
"id": "add_devices",
"template": "add_devices"
}
],
"settings": []
},
{
"class": "thermostat",
"capabilities": [
Expand Down
21 changes: 21 additions & 0 deletions drivers/sir321/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/sir321/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.
Binary file added drivers/sir321/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/sir321/device.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
'use strict';

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

class SIR321Device extends ZwaveDevice {
async onInit() {
this.log('SIR321Device has been initialized');
this.registerCapability('onoff', 'SWITCH_BINARY');
this.registerCapability('measure_temperature', 'SENSOR_MULTILEVEL');
}
}

module.exports = SIR321Device;
56 changes: 56 additions & 0 deletions drivers/sir321/driver.compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
{
"id": "sir321",
"name": {
"en": "SIR321"
},
"class": "socket",
"capabilities": ["onoff", "measure_temperature"],
"connectivity": ["zwave"],
"images": {
"small": "{{driverAssetsPath}}/images/small.jpg",
"large": "{{driverAssetsPath}}/images/large.jpg"
},
"zwave": {
"manufacturerId": 89,
"productTypeId": [16],
"productId": [2, 3, 4],
"zwaveAllianceProductId": 1012,
"zwaveAllianceProductDocumentation": "https://products.z-wavealliance.org/ProductManual/File?folder=&filename=product_documents/4045/SIR321%20BGX501-867%20R07.pdf",
"associationGroups": [1, 2, 3],
"associationGroupsOptions": {
"1": {
"hint": {
"en": "Lifeline"
}
},
"2": {
"hint": {
"en": "Schedule Report"
}
},
"3": {
"hint": {
"en": "Air Temperature"
}
}
},
"learnmode": {
"instruction": {
"en": "Press and hold the pairing button on the back of the unit\n When RF LED starts flashing, relase the button.\n On successful addition, the LED will stop flashing."
}
}
},
"pair": [
{
"id": "list_devices",
"template": "list_devices",
"navigation": {
"next": "add_devices"
}
},
{
"id": "add_devices",
"template": "add_devices"
}
]
}
1 change: 1 addition & 0 deletions drivers/sir321/driver.settings.compose.json
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[]