You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+19-1Lines changed: 19 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -3,9 +3,27 @@ All notable changes to this project will be documented in this file.
3
3
4
4
## [Unreleased]
5
5
6
+
## [1.1.0]
7
+
### Added
8
+
- The alarm panel's time is published via MQTT Topic `homie/device-id/alarm/panel-time` and set through `homie/device-id/alarm/panel-time/set`
9
+
- MQTT Topic `homie/device-id/partition-N/entry-delay` to indicate that the alarm is in the entry-delay state
10
+
- MQTT Topic `homie/device-id/partition-N/access-code` the access code is published whenever the alarm was armed/disarmed
11
+
- MQTT Topic `homie/device-id/partition-N/lights` the light status for the partition
12
+
13
+
### Changed
14
+
- Major change: each partition is now implemented as a individual node.
15
+
MQTT topics `partition-N-xxx` moved from the `alarm` node to individual `partition-N` nodes. Hence the topics will change from `homie/device-id/alarm/partition-N-away` to `homie/device-id/partition-N/away` etc. Note the removal of `alarm` in the topic.
16
+
- Only active partitions are announced. If partitions were added/removed from the alarm after boot up, perform a reboot via `maintenance/set`: `reboot`
17
+
- Updated library dependency to use Homie-esp8266 v3.0.1 (Homie convention v3)
18
+
- Updated library dependency to use dscKeybusInterface v1.3 (develop branch)
19
+
-`openzone-N` topics changed from retained to not retained
20
+
21
+
### Fixed
22
+
- Fixed a bug when writing to `keypad` topic
23
+
6
24
## [1.0.1] 2019-06-05
7
25
### Added
8
-
- MQTT Topic `maintenance` - See README.md. Added the ability to stop and start the dsc interface, needed to avoid crashing during config update
26
+
- MQTT Topic `maintenance` - See (README.md). Added the ability to stop and start the dsc interface, needed to avoid crashing during config update
9
27
10
28
### Removed
11
29
- MQTT Topic `reboot` has been removed. Its functionality has been incorporated into the new `maintenance` topic
Copy file name to clipboardExpand all lines: README.md
+68-34Lines changed: 68 additions & 34 deletions
Original file line number
Diff line number
Diff line change
@@ -8,62 +8,88 @@ For a detailed wiring diagram, please see:
8
8
https://github.com/taligentx/dscKeybusInterface
9
9
10
10
11
-
## Features:
11
+
## Features
12
12
- MQTT Based
13
13
- OTA Updateable (Thanks to Homie)
14
14
- Configurable Wifi, MQTT, device id, and Alarm's access code. See the Setup Instructions below
15
-
- Tested with OpenHAB, but it should work with other home automation systems
15
+
- Tested with OpenHAB, but it should work with other home automation systems. Let me know if you're using it with other home automation systems so I can update this document.
16
16
17
+
## Usage Examples
18
+
- To arm partition 1 to away mode, publish to `homie/device-id/partition-1/away/set`: `1`
19
+
- To disarm it, publish to `homie/device-id/partition-1/away/set`: `0`
20
+
- To monitor motions on zone 1 (regardless of armed status), subscribe to `homie/device-id/alarm/openzone-1`
21
+
- To know partition 1 alarm has been triggered, subscribe to `homie/device-id/partition-1/alarm`
22
+
- When zone 3 triggered an alarm `homie/device-id/alarm/alarmzone-3` will be published with a value of `1`
23
+
- To know whether partition 1 is armed, subscribe to `homie/device-id/partition-1/away` for away mode, or `homie/device-id/partition-1/stay` for stay mode
17
24
18
-
## MQTT Topics:
25
+
## Homie
26
+
The Homie convention specifies the following syntax for MQTT topics:
27
+
`homie/device-id/nodename/xxx`
19
28
20
-
Base MQTT Topic (prepend this to all the topics below):
21
-
```
22
-
homie/device-id/alarm/
23
-
```
29
+
- The `device-id` can be set in Homie configuration - see **Initial Setup** below.
30
+
31
+
## Homie Nodes
32
+
-`alarm` for the main alarm functionalities
33
+
-`partition-N` for partition related status/commands
34
+
35
+
So for `alarm` node, the full MQTT topics will start with `homie/device-id/alarm/`, and for the `partition-N` the full MQTT topics will be `homie/device-id/partition-N/`
36
+
37
+
## MQTT Topics:
24
38
25
39
### General MQTT topics:
26
-
-`trouble`
27
-
-`power-trouble`
28
-
-`battery-trouble`
29
-
-`fire-alarm-keypad`
30
-
-`aux-alarm-keypad`
31
-
-`panic-alarm-keypad`
40
+
-`homie/device-id/alarm/trouble` this corresponds to the "Trouble" light / status of the alarm
41
+
-`homie/device-id/alarm/power-trouble`
42
+
-`homie/device-id/alarm/battery-trouble`
43
+
-`homie/device-id/alarm/fire-alarm-keypad`
44
+
-`homie/device-id/alarm/aux-alarm-keypad`
45
+
-`homie/device-id/alarm/panic-alarm-keypad`
46
+
-`homie/device-id/alarm/panel-time` provides the date/time stored in the alarm system formatted as YYYY-MM-DD HH:mm
-`maintenance/set`: "dsc-stop" to stop dsc keybus interrupts
57
-
-`maintenance/set`: "dsc-start" to start dsc keybus interface
86
+
-`homie/device-id/alarm/maintenance/set`: "reboot" to reboot
87
+
-`homie/device-id/alarm/maintenance/set`: "dsc-stop" to stop dsc keybus interrupts
88
+
-`homie/device-id/alarm/maintenance/set`: "dsc-start" to start dsc keybus interface
58
89
59
90
The DSC Keybus interrupts seem to interfere with the OTA and Config update operation (when publishing to `homie/device-id/$implementation/config/set`), causing the ESP8266 to reset, and in the case of configuration update, to cause a corruption in the Homie configuration file and put Homie into the initial configuration mode.
60
91
61
-
So before sending a config update, stop the DSC interrupts by publishing to `maintenance/set`: "dsc-stop". Once the config update has been made, restart the DSC interface using `maintenance/set`: "dsc-start" or sending a reboot request.
So before sending a config update, stop the DSC interrupts by publishing to `homie/device-id/alarm/maintenance/set`: "dsc-stop". Once the config update has been made, restart the DSC interface using `homie/device-id/alarm/maintenance/set`: "dsc-start" or sending a reboot request.
67
93
68
94
## Initial Setup
69
95
Homie needs to be configured before it can connect to your Wifi / MQTT server.
Before updating Homie config, the DSC interface needs to be deactivated / stopped, because it interferes with writing the configuration file. To do this, publish an MQTT message to
101
-
`maintenance/set``dsc-stop`
127
+
`homie/device-id/alarm/maintenance/set``dsc-stop`
102
128
103
-
After setting the configuration, reactivate the DSC interface by publishing to `maintenance/set``dsc-start`
129
+
After setting the configuration, reactivate the DSC interface by publishing to `homie/device-id/alarm/maintenance/set``dsc-start`
104
130
105
131
To change/update your access code that's stored on the device once it's operational (i.e. connected to your MQTT server), publish to
- My alarm would go off when I opened my panel enclosure. It uses zone 5 for this detection. In order to stop it from going off, bypass zone 5 using `*1` to enter bypass mode. The zone LEDs will light up for bypassed zones. To toggle the zone bypass, enter the 2 digit zone number, e.g. `05`. When zone 5 is lit up, it will be bypassed. Press `#` to return to ready state.
118
151
152
+
- While working/testing the alarm, disconnect the internal / external speakers, and replace it with a 10K resistor. This will avoid disturbing the neighbours.
0 commit comments