Skip to content

Commit

Permalink
Merge pull request #26 from Thorarin/feat/dynamic-capabilities
Browse files Browse the repository at this point in the history
Release 2.2.0
  • Loading branch information
Thorarin authored Apr 22, 2020
2 parents c8a3bf7 + 0e005d2 commit 6f623d5
Show file tree
Hide file tree
Showing 295 changed files with 1,388 additions and 22,833 deletions.
5 changes: 4 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
/node_modules/homey-zwavedriver/.npmignore
/env.json
/.vscode
/*.png
/node_modules/

# Using Homey Compose
/app.json
65 changes: 65 additions & 0 deletions .homeycompose/app.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,65 @@
{
"id": "com.sensative",
"sdk": 2,
"name": {
"en": "Sensative",
"nl": "Sensative"
},
"description": {
"en": "Sensative Z-Wave Strips support for Homey",
"nl": "Sensative Z-Wave Strips ondersteuning voor Homey"
},
"category": [
"appliances",
"security",
"climate"
],
"images": {
"large": "/assets/images/large.png",
"small": "/assets/images/small.png"
},
"version": "2.2.0",
"compatibility": ">=1.5.6",
"tags": {
"en": [
"security",
"alarm",
"contact",
"window",
"door",
"temperature",
"humidity"
],
"nl": [
"beveiliging",
"alarm",
"contact",
"raam",
"deur",
"temperatuur",
"vochtigheid"
]
},
"author": {
"name": "Marcel Veldhuizen",
"email": "[email protected]"
},
"contributors": {
"developers": [
{
"name": "Marcel Veldhuizen",
"email": "[email protected]"
},
{
"name": "Marco Ruiter",
"email": "[email protected]"
}
]
},
"bugs": {
"url": "https://github.com/Thorarin/com.sensative/issues"
},
"source": "https://github.com/Thorarin/com.sensative",
"homepage": "https://homey.app",
"support": "mailto:[email protected]"
}
13 changes: 13 additions & 0 deletions .homeycompose/drivers/settings/maintenanceActions.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "maintenance_actions",
"label": {
"en": "Maintenance actions",
"nl": "Maintenance actions"
},
"hint": {
"en": "Disabling this hides maintenance actions on this device. Maintenance actions are known to confuse HomeyKit, classifying the sensor as a switch.",
"nl": "Wanneer uitgeschakeld worden de onderhoudsacties voor dit apparaat verborgen. Onderhoudsacties verwarren HomeyKit, waardoor de sensor als schakelaar geclassificeerd wordt."
},
"type": "checkbox",
"value": true
}
13 changes: 13 additions & 0 deletions .homeycompose/drivers/settings/tamperAlarm.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
{
"id": "tamper_alarm",
"label": {
"en": "Tamper alarm",
"nl": "Sabotage-alarm"
},
"hint": {
"en": "Used to show or hide the tamper alarm capability.",
"nl": "Hiermee kan de sabotage-alarmfunctie getoond of verborgen worden."
},
"type": "checkbox",
"value": true
}
32 changes: 31 additions & 1 deletion .homeyignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,33 @@
/node_modules/homey-meshdriver/examples
# Exclude development assets
*.psd
/*.png
/drivers/**/*.compose.json
/package.json
/package-lock.json

# Strip down homey-meshdriver to bare minimum for supported devices
/node_modules/homey-meshdriver/assets
/node_modules/homey-meshdriver/examples
/node_modules/homey-meshdriver/jsdoc.json
/node_modules/homey-meshdriver/Gruntfile.js
/node_modules/homey-meshdriver/README.md
/node_modules/homey-meshdriver/lib/util
/node_modules/homey-meshdriver/lib/zigbee
/node_modules/homey-meshdriver/lib/zwave/ZwaveLightDevice.js
/node_modules/homey-meshdriver/lib/zwave/ZwaveLockDevice.js
/node_modules/homey-meshdriver/lib/zwave/ZwaveMeteringDevice.js
/node_modules/homey-meshdriver/lib/zwave/system/capabilities/*
!/node_modules/homey-meshdriver/lib/zwave/system/capabilities/alarm_contact
!/node_modules/homey-meshdriver/lib/zwave/system/capabilities/alarm_heat
!/node_modules/homey-meshdriver/lib/zwave/system/capabilities/alarm_tamper
!/node_modules/homey-meshdriver/lib/zwave/system/capabilities/alarm_water
!/node_modules/homey-meshdriver/lib/zwave/system/capabilities/measure_battery
!/node_modules/homey-meshdriver/lib/zwave/system/capabilities/measure_humidity
!/node_modules/homey-meshdriver/lib/zwave/system/capabilities/measure_luminance
!/node_modules/homey-meshdriver/lib/zwave/system/capabilities/measure_temperature

# Remove modules only required by removed homey-meshdriver functionality
/node_modules/color-space
/node_modules/almost-equal
/node_modules/hsluv
/node_modules/mumath
5 changes: 5 additions & 0 deletions .homeyplugins.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
[
{
"id": "compose"
}
]
25 changes: 23 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,14 @@ This app adds support for the Sensative Strips family of products in Homey.

Release notes
-------------
**2.1.0:**
**2.2.0**
* Improved grouping of device settings
* Option to select Strips Comfort or Strips Drip in device settings, hiding unused capabilties and UI elements
* Option to enable tamper alarm capability for Comfort and Drip
* Option to disable maintenance actions.
This can help HomeyKit users to work around an issue where the sensors are displayed as switches.

**2.1.3:**
* Fixed an issue with Strips Comfort heat alarm (thanks Vegard!)
* Added maintenance actions to reset alarms manually (requires Homey 3.1+)
* Added battery information for all supported devices
Expand All @@ -35,6 +42,20 @@ Release notes
* In this initial version, Strips will be set to a simple binary sensor. I'd like to switch to using its default operating mode in the future, which may require the device to be re-added.
* The US version of Strips is not yet recognized. It may be added in a future version (testers needed).


Getting Started
---------------
If you haven't already installed the Homey CLI, do that first:

npm i -g homey

After that, running the app on your Homey is easy:

npm i
npm start

Of course, you're free to call `homey app run` manually, but you may have to copy the `app.json` from the `.homeycompose` folder once before being able to run the application.

Disclaimer
----------
This application is not affiliated with Sensative AB. Sensative AB is not responsible for the operation or content of this application.
This application is not affiliated with Sensative AB. Sensative AB is not responsible for the operation or content of this application.
1 change: 0 additions & 1 deletion app.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
'use strict';

const Homey = require('homey');
require('homey-log').Log;

class SensativeZwave extends Homey.App {

Expand Down
Loading

0 comments on commit 6f623d5

Please sign in to comment.