Skip to content
This repository has been archived by the owner on May 15, 2023. It is now read-only.

Commit

Permalink
v3.0.3 Added: Graceful Error Handling
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Burgess committed Mar 26, 2020
1 parent c6d3e5f commit 6d0dc53
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
- Enable / disable by zone
- Option to override topic per sensor (would default to main sensorTopic). This allows you to get sensor activity from multiple topics.

## v3.0.2 - 2020-03-26
## v3.0.3 - 2020-03-26
### Added
- Errors throw friendly log messages and the process stops gracefully.
- Added a minimum count of 1 to sensors.
Expand Down
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,8 +98,8 @@ Once the plugin is installed you will be presented with the settings page to pop
| Allow Sensor for Away Arm? | sensor/allowAway | No | Usually ALL sensors | Boolean | true / false |
| Allow Sensor for Night Arm? | sensor/allowNight | No | Usually ALL entry-point sensors and SOME internal sensors | Boolean | true / false |
| Do you have a Keyfob? | keyfob | No | Show/hide keyfob settings | Boolean | true / false |
| Keyfob Enabled? | keyfobs/enabled | No | Enable or disable keyfob | Boolean | true / false |
| Keyfob Name | keyfobs/name | No | Friendly name of your keyfob | String | Dad Keyfob |
| Keyfob Enabled? | keyfobs/enabled | No | Enable or disable keyfob | Boolean | true / false |
| Keyfob Name | keyfobs/name | No | Friendly name of your keyfob | String | Dad Keyfob |
| Enable Button? | keyfobs/buttons/enabled | No | Enable or disable button | Boolean | true / false |
| Button Alarm State | keyfobs/buttons/alarmState | No | Alarm state sent when button pressed (state must be enabled in Alarm Settings) | Integer | 0, 1, 2, 3, 4 |
| Button MQTT Code | keyfobs/buttons/MQTTCode | No | Enter the MQTT code received when pressing button on keyfob | String | 12345L |
Expand Down
2 changes: 1 addition & 1 deletion config.schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"pluginType": "accessory",
"singular": true,
"headerDisplay": "MQTT must be installed on your system",
"footerDisplay": "For help please see the [README](https://github.com/nzbullet/homebridge-homeqtt-alarm/blob/master/README.md).",
"footerDisplay": "For help please see the [Readme](https://github.com/nzbullet/homebridge-homeqtt-alarm/blob/master/README.md).",
"schema": {
"name": {
"title": "Name",
Expand Down
4 changes: 0 additions & 4 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -351,12 +351,10 @@ function homeqttAlarmAccessory(log, config) {
that.client.publish(that.keyfobs[keyfob].buttons[button].rfkeyTopic, that.keyfobs[keyfob].buttons[button].MQTTCode);
} else {
log('Button MQTT Code has not been provided in config.json')
return; // Error
}
}
} else {
log('Button alarm state has not been set in config.json')
return; // Error
}
}
}
Expand All @@ -368,7 +366,6 @@ function homeqttAlarmAccessory(log, config) {
}
} else {
log('Sensor MQTT Code has not been provided in config.json')
return; // Error
}
}
}
Expand All @@ -394,7 +391,6 @@ function homeqttAlarmAccessory(log, config) {
}
} else {
log('Stopping: Button RFKey Topic has not been provided in config.json')
return; // Error
}
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,5 +39,5 @@
"type": "git",
"url": "git+https://github.com/nzbullet/homebridge-homeqtt-alarm.git"
},
"version": "3.0.2"
"version": "3.0.3"
}

0 comments on commit 6d0dc53

Please sign in to comment.