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
+27-20Lines changed: 27 additions & 20 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -3,11 +3,8 @@ All notable changes to this project will be documented in this file.
3
3
4
4
The format is based on [Keep a Changelog](http://keepachangelog.com/)
5
5
and this project adheres to [Semantic Versioning](http://semver.org/).
6
-
7
-
## [1.0.6 P5] - 2021-01-10
8
-
-[X] CORE: Improve names of components in menu config build.
9
-
-[X] STSTK: DSC panels have no special command to disarm just the code is used. Sending the code while armed disarms and while disarmed will arm. To deal with this quirk on DSC if the panel is already DISARMED and the ST Disarm button is pushed the code will not send anything to the panel.
10
-
## [Unreleased] WIP
6
+
## [Unreleased] Open issues
7
+
-[ ] CORE: Certificate store or some way to avoid having to store fixed static public keys for twilio, pushover and other REST api plugins.
11
8
-[ ] CORE: FIXME: Setting HOST NAME when using static IP over ethernet not working.
12
9
-[ ] CORE: FIXME: reboot of esp32 causes connected ser2sock clients to hang. So far various attempts to fix have been unsuccessful. Will need to do some network captures to determine the problem.
13
10
-[ ] CORE: HUP/RESTART needs to be centralized so cleanup ex(_fifo_destroy) can happen first. How to connect with STSDK having its own restart calls.
@@ -23,16 +20,26 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
23
20
-[ ] CORE: TODO: better hardware abstraction. Need to remove _esp_ specific code to make it easier to port to other hardware. Trying to keep the code as POSIX as possible with the limited resources I have.
24
21
-[ ] CORE: TODO: ```'ping'``` command could come in handy. Again today needed this with ST MQTT servers seeming to be down.
25
22
-[ ] STSDK: TODO: Add SmartThings Zone devices.
26
-
## [1.0.6 P4] - 2021-01-08
23
+
## [Unreleased] WIP Sean Mathews @f34rdotcom
24
+
-[X] CORE: Move log mode init.
25
+
-[X] API: Event format string for no match case to show event ID.
26
+
-[X] CORE: Modify changelog(this file) to include info for blame.
27
+
-[X] TWILIO: Fix syntax use newer format used in pushover module. Add simple HTTP response testing and and reporting to aid in setup.
28
+
-[X] PUSHOVER & TWILIO: Fix bug in NV storage. Someday cleanup and make the prefix an arg to the NV routines. Would require less use if 'key' var but would it be easier to read?
29
+
-[X] TWILIO: Update api.twilio.com public key. Uggg! This already changed :(. I need allow update of this key via CLI and I need to find a way to get the key to lookup the root certificate...
30
+
## [1.0.6 P5] - 2021-01-10 Sean Mathews @f34rdotcom
31
+
-[X] CORE: Improve names of components in menu config build.
32
+
-[X] STSTK: DSC panels have no special command to disarm just the code is used. Sending the code while armed disarms and while disarmed will arm. To deal with this quirk on DSC if the panel is already DISARMED and the ST Disarm button is pushed the code will not send anything to the panel.
33
+
## [1.0.6 P4] - 2021-01-08 Sean Mathews @f34rdotcom
27
34
-[ ] CORE: ad2term arg to reset AD2 device and then start the terminal. Any argument string will send hold the reset line on the AD2pHat board low for 1 second as the terminal is started causing the AD2* to hard reset. Useful when firmware on the AD2* gets corrupted and its hard to get into the boot loader.
28
-
## [1.0.6 P3] - 2021-01-08
35
+
## [1.0.6 P3] - 2021-01-08 Sean Mathews @f34rdotcom
29
36
-[X] CORE: Consolidate some common functions from Twilio and Pushover clients into ad2_utils functions.
30
37
-[X] PUSHOVER: New notification component Pushover.net. A simple HTTPS request much like SendGrid or Twilio but I prefer this command format and will be changing other commands to match soon.
31
-
## [1.0.6 P2] - 2020-12-29
38
+
## [1.0.6 P2] - 2020-12-29 Sean Mathews @f34rdotcom
32
39
-[X] CORE: refactor where serial starts to allow to enter ad2term mode early before any other code starts. This allows to update firmware over the USB cable in ad2term mode using the GUI app or other AD2* firmware update tool.
33
-
## [1.0.6 P1] - 2020-12-21
40
+
## [1.0.6 P1] - 2020-12-21 Sean Mathews @f34rdotcom
34
41
-[X] OTA: Some change in mbedtls happend at some point causing OTA to now fail. Releaseing P1 to fix.
35
-
## [1.0.6] - 2020-12-19
42
+
## [1.0.6] - 2020-12-19 Sean Mathews @f34rdotcom
36
43
-[X] SER2SOCKD: Add new component ser2sock daemon.
37
44
-[X] README
38
45
-[X] CMD
@@ -41,7 +48,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
41
48
-[X] QA/TESTING
42
49
-[X] API: Refactor api. Simplify subscriber storage class. Add new subscriber callback type. Added ON_RAW_RX_DATA so subscribers can get a raw AD2* stream needed by ser2sockd to avoid writing in ser2sock client and uart client routines.
43
50
-[X] CORE: Extract ser2sock fragments and move into ser2sock component.
44
-
## [1.0.5] - 2020-12-15
51
+
## [1.0.5] - 2020-12-15 Sean Mathews @f34rdotcom
45
52
-[X] CORE: Tidy: Improve Kconfig menuconfig.
46
53
-[X] API: System specific nibble was a bit. Fixed.
47
54
-[X] API: ON_LOW_BATTERY() toggle ON/OFF with no battery on on test panel. This one keeps poping up...
@@ -58,7 +65,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
58
65
-[X] TWILIO: Missed log refactor after serialize refactor. No logic changes.
59
66
-[X] TWILIO: Fix ~250 byte memory leak in Twilio json code.. No logic changes.
60
67
-[X] CORE: tidy.
61
-
## [1.0.4] - 2020-11-08
68
+
## [1.0.4] - 2020-11-08 Sean Mathews @f34rdotcom
62
69
-[X] CORE: Tidy QA testing.
63
70
-[X] TWILIO: Improve docs and ```twsas``` command report format as valid commands with comments.
64
71
-[X] TWILIO: Need to add ability to trigger on common states FIRE, ALARM, DISARM, ARM, CHIME etc in new twsas command.
@@ -84,7 +91,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
84
91
-[X] API: FIX: Improve FIRE and ALARM tracking issue with state toggle.
85
92
-[X] TWILIO: TODO: Add class based command line configurable notifications to Twilio. Allow to enable/disable event messages for different event types.
86
93
87
-
## [1.0.3 P2 WIP] - 2020-10-31 (no release)
94
+
## [1.0.3 P2 WIP] - 2020-10-31 (no release) Sean Mathews @f34rdotcom
88
95
-[X] API: New class AD2EventSearch and support functions to subscribe. I spent a few days on this. A bit of a unicorn hunt. I could write discrete API and CLI code for every possible message type from the AlarmDecoder protocol but this seems excessive. The task is the same on every message so a single CLI and API to create custom tracking of all messages using REGEX and simple state logic was what I ended up with. This new class when constructed becomes a virtual contact with OPEN/CLOSE/FAULT states. These states are updated based upon user supplied regex patterns and simple user provided logic hints.
89
96
-[X] API: RFX message expand hex to bin for easy parsing.
90
97
-[X] API: Added message type tracking during parse for post processing.
@@ -98,14 +105,14 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
98
105
-[X] STSDK: Wired BYPASS to the bypass component contact capability.
99
106
-[X] STSDK: remove battery fault contact from device profile in ST dev portal.
100
107
101
-
## [1.0.3 P1] - 2020-10-20
108
+
## [1.0.3 P1] - 2020-10-20 Sean Mathews @f34rdotcom
102
109
-[X] CORE: Add command feedback to commands that require a restart to take effect.
103
110
-[X] STSDK: Remove restart for enable. Add warnings about restarting.
104
111
-[X] CORE: Fix: build error JSON.h issue using esp4.x.
105
112
-[X] STSDK: Fix: Not enabling by default.
106
113
-[X] TWILIO: Fix: mbedtls_x509_crt_parse is broken when building esp 4.x with return code -0x2180. The PEM parsing routine expects the last byte to be null but under 4.x build it is `-`. Using EMBED_TXTFILES automatically puts a \0 at the end of the block of memory and it is included in the size of the buffer. This is the setting that is used in the 3.x build component mk file.
107
114
108
-
## [1.0.3] - 2020-10-19
115
+
## [1.0.3] - 2020-10-19 Sean Mathews @f34rdotcom
109
116
-[X] STSDK: Improve: Connect Panic Alarm and Medical Alarm buttons each requires 3 taps with 5 second timeout.
110
117
-[X] STSDK: Improve: Connect DISARM button.
111
118
-[X] STSDK: Improve: Connect ARM STAY, ARM AWAY buttons.
@@ -130,7 +137,7 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
130
137
-[X] CORE: Fix deprecated stsdk api calls.
131
138
-[X] CORE: Fix: building with espidf 4.x Currently testing only on 3.x branch but will switch to 4.x as soon as some warnings are sorted out.
132
139
133
-
## [1.0.2] - 2020-10-11
140
+
## [1.0.2] - 2020-10-11 Sean Mathews @f34rdotcom
134
141
-[X] CORE: New: Command: ```'netmode <[W,E,N]> <ARGS>'```. If SmartThings is disabled allow control of network settings.
135
142
-[X] CORE: Improve: Add util function ```ad2_query_key_value``` for N/V parsing. Will be used to store settings in NV in a easy to use text only way.
136
143
-[X] CORE: Improve: Filled in empty wifi init function and added ```hal_event_handler```.
@@ -147,16 +154,16 @@ and this project adheres to [Semantic Versioning](http://semver.org/).
147
154
-[X] STSDK: Fix: Finish wiring smokeDetector capability and test FIRE alarm to show if smoke/clear events.
148
155
-[X] STSDK: Tidy: Function name fix ```connection_start_task```.
149
156
150
-
## [1.0.1 p1] - 2020-09-27
157
+
## [1.0.1 p1] - 2020-09-27 Sean Mathews @f34rdotcom
# Profile #1 SMS/Text message using api.twilio.com
378
-
twsid 1 Abcdefg012345....
379
-
twtoken 1 Abcdefg012345....
380
-
twfrom 1 15555551234
381
-
twto 1 15555551234
382
-
twtype 1 M
368
+
twilio sid 1 Abcdefg012345....
369
+
twilio token 1 Abcdefg012345....
370
+
twilio from 1 15555551234
371
+
twilio to 1 15555551234
372
+
twilio type 1 M
383
373
384
374
# Profile #2 Voice Twiml call using api.twilio.com
385
-
twsid 2 Abcdefg012345....
386
-
twtoken 2 Abcdefg012345....
387
-
twfrom 2 15555551234
388
-
twto 2 15555551234
389
-
twtype 2 C
375
+
twilio sid 2 Abcdefg012345....
376
+
twilio token 2 Abcdefg012345....
377
+
twilio from 2 15555551234
378
+
twilio to 2 15555551234
379
+
twilio type 2 C
390
380
```
391
381
- Send notifications from profile in slot #0 for 5800 RF sensor with SN 0123456 and trigger on OPEN(ON), CLOSE(OFF) and FAULT REGEX patterns. In this example the Text or EMail sent would event contain the user defined message.
392
382
```console
393
383
Twilio SmartSwitch #1 report
394
384
# Set notification slot [N] to #0.
395
-
twsas 1 N 0
385
+
twilio switch 1 N 0
396
386
# Set default virtual switch state [D] to 'CLOSED'(0)
397
-
twsas 1 D 0
387
+
twilio switch 1 D 0
398
388
# Set auto reset time in ms [R] to 'DISABLED'
399
-
twsas 1 R 0
389
+
twilio switch 1 R 0
400
390
# Set message type list [T]
401
-
twsas 1 T RFX
391
+
twilio switch 1 T RFX
402
392
# Set pre filter REGEX [P]
403
-
twsas 1 P !RFX:0123456,.*
393
+
twilio switch 1 P !RFX:0123456,.*
404
394
# Set 'OPEN' state REGEX Filter [O] #01.
405
-
twsas 1 O 1 !RFX:0123456,1.......
395
+
twilio switch 1 O 1 !RFX:0123456,1.......
406
396
# Set 'CLOSED' state REGEX Filter [C] #01.
407
-
twsas 1 C 1 !RFX:0123456,0.......
397
+
twilio switch 1 C 1 !RFX:0123456,0.......
408
398
# Set 'FAULT' state REGEX Filter [F] #01.
409
-
twsas 1 F 1 !RFX:0123456,......1.
399
+
twilio switch 1 F 1 !RFX:0123456,......1.
410
400
# Set output format string for 'OPEN' state [o].
411
-
twsas 1 o RF SENSOR 0123456 OPEN
401
+
twilio switch 1 o RF SENSOR 0123456 OPEN
412
402
# Set output format string for 'CLOSED' state [c].
413
-
twsas 1 c RF SENSOR 0123456 CLOSED
403
+
twilio switch 1 c RF SENSOR 0123456 CLOSED
414
404
# Set output format string for 'FAULT' state [f].
415
-
twsas 1 f RF SENSOR 0123456 FAULT
405
+
twilio switch 1 f RF SENSOR 0123456 FAULT
416
406
```
417
407
- Send notifications from profile in slot #2 in the example a Call profile when EVENT message "FIRE ON" or "FIRE OFF" are received. Use a Twiml string to define how the call is processed. This can include extensive external logic calling multiple people or just say something and hangup.
418
408
```console
419
409
Twilio SmartSwitch #2 report
420
410
# Set notification slot [N] to #2.
421
-
twsas 2 N 2
411
+
twilio switch 2 N 2
422
412
# Set default virtual switch state [D] to 'CLOSED'(0)
423
-
twsas 2 D 0
413
+
twilio switch 2 D 0
424
414
# Set auto reset time in ms [R] to 'DISABLED'
425
-
twsas 2 R 0
415
+
twilio switch 2 R 0
426
416
# Set message type list [T]
427
-
twsas 2 T EVENT
417
+
twilio switch 2 T EVENT
428
418
# Set 'OPEN' state REGEX Filter [O] #01.
429
-
twsas 2 O 1 FIRE ON
419
+
twilio switch 2 O 1 FIRE ON
430
420
# Set 'CLOSED' state REGEX Filter [C] #01.
431
-
twsas 2 C 1 FIRE OFF
421
+
twilio switch 2 C 1 FIRE OFF
432
422
# Set output format string for 'OPEN' state [o].
433
-
twsas 2 o <Response><Say>Notification alert FIRE ALARM</Say></Response>
423
+
twilio switch 2 o <Response><Say>Notification alert FIRE ALARM</Say></Response>
434
424
# Set output format string for 'CLOSED' state [c].
435
-
twsas 2 c <Response><Say>Notification alert FIRE CLEAR</Say></Response>
425
+
twilio switch 2 c <Response><Say>Notification alert FIRE CLEAR</Say></Response>
436
426
```
437
427
- Send notifications from profile in slot #2 in the example a Call profile when EVENT message "POWER BATTERY" or "POWER AC" are received. Use a Twiml string to define how the call is processed. This can include extensive external logic calling multiple people or just say something and hangup.
438
428
```console
439
429
Twilio SmartSwitch #3 report
440
430
# Set notification slot [N] to #2.
441
-
twsas 3 N 2
431
+
twilio switch 3 N 2
442
432
# Set default virtual switch state [D] to 'CLOSED'(0)
443
-
twsas 3 D 0
433
+
twilio switch 3 D 0
444
434
# Set auto reset time in ms [R] to 'DISABLED'
445
-
twsas 3 R 0
435
+
twilio switch 3 R 0
446
436
# Set message type list [T]
447
-
twsas 3 T EVENT
437
+
twilio switch 3 T EVENT
448
438
# Set 'OPEN' state REGEX Filter [O] #01.
449
-
twsas 3 O 1 POWER AC
439
+
twilio switch 3 O 1 POWER AC
450
440
# Set 'CLOSED' state REGEX Filter [C] #01.
451
-
twsas 3 C 1 POWER BATTERY
441
+
twilio switch 3 C 1 POWER BATTERY
452
442
# Set output format string for 'OPEN' state [o].
453
-
twsas 3 o <Response><Say>Notification alert ON MAIN AC POWER</Say></Response>
443
+
twilio switch 3 o <Response><Say>Notification alert ON MAIN AC POWER</Say></Response>
454
444
# Set output format string for 'CLOSED' state [c].
455
-
twsas 3 c <Response><Say>Notification alert ON BATTERY BACKUP POWER</Say></Response>
445
+
twilio switch 3 c <Response><Say>Notification alert ON BATTERY BACKUP POWER</Say></Response>
456
446
```
457
447
- Existing search verbs. ```RFX``` and others are not useful here as they can be filtered by message type ```RFX``` directly. The more useful verbs contain a modifier such as ON/OFF. TODO: Add ZONE tracking verbs and algorithm.
0 commit comments