Commit graph

15 commits

Author SHA1 Message Date
Adam Moussa
44fa4aa027
Merge pull request #5 from Sea-Haven-Industries/feature/fix-stack-name
Rename stack to kebab-case
2026-05-01 18:57:14 -04:00
Adam Moussa
204881cb5f Rename stack to kebab-case
Requires deleting the old SeaHavenDoorUnlockStack before deploying.
2026-05-01 18:56:59 -04:00
Adam Moussa
839b92ffe3
Add lockdown mode and CI/CD pipeline (#3)
* Add lockdown profile toggle endpoints with T58W linekey support

Add a new Lambda handler that toggles Elements lockdown profiles
(Bohemia and Ronkonkoma) via the Elements API, with status
verification before and after each toggle. Returns Yealink XML
to control linekey LEDs (green=inactive, red=locked down).

Also brings both Lambda handlers into compliance with system
standards: Node 22.x runtime, arm64 architecture, 60-day log
retention, and kebab-case function names.

* Add lockdown poller Lambda and fix lockdown handler responses

- Add VPC-connected poller Lambda that monitors lockdown status via
  Elements API every 15 seconds (4 polls per 1-min EventBridge schedule)
- Handle Elements API rate limits (429) with retry-after support
- Fix lockdown handler to use TextScreen XML instead of Execute XML
  (Execute shows globe icon on T58W, TextScreen renders properly)
- Fix Elements API status parsing to be case-insensitive
- Trust toggle action instead of re-checking status (eventual consistency)
- Configure push_xml.server = any in T58W template for Push XML support
- Clear action_url.setup_completed (poller replaces boot-time check)
- Update README with lockdown architecture and known LED limitation

Note: T58W line key LED color does not change to reflect lockdown
status. Execute LED commands are transient on the T58W - the phone's
XML Browser key type immediately overrides them.

* Add buildspec for CodePipeline CI/CD

* Update README with CI/CD pipeline details
2026-05-01 18:52:37 -04:00
dependabot[bot]
c6f32c1fdb
Bump esbuild from 0.24.2 to 0.25.0 (#1)
Bumps [esbuild](https://github.com/evanw/esbuild) from 0.24.2 to 0.25.0.
- [Release notes](https://github.com/evanw/esbuild/releases)
- [Changelog](https://github.com/evanw/esbuild/blob/main/CHANGELOG-2024.md)
- [Commits](https://github.com/evanw/esbuild/compare/v0.24.2...v0.25.0)

---
updated-dependencies:
- dependency-name: esbuild
  dependency-version: 0.25.0
  dependency-type: direct:development
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2026-04-28 18:04:03 -04:00
Adam Moussa
5bd66f257d
Merge pull request #2 from Sea-Haven-Industries/feature/fix-stack-naming
Fix stack and API naming to kebab-case
2026-04-28 15:16:10 -04:00
Adam Moussa
c89040592a Fix stack and API naming to follow kebab-case convention
Pin existing CloudFormation stack name via stackName property so
the live stack is not affected. Construct ID and API Gateway name
now follow the org kebab-case standard.
2026-04-28 14:43:48 -04:00
Adam Moussa
9a061535f4 Apply display settings to T58W template to match T54W templates
Backlight dims to level 1 after 5 min, screensaver and power saving
disabled.
2026-04-27 13:47:49 -04:00
Adam Moussa
a8cc62e81d Enable BLF list subscriptions in T58W template
Add phone_setting.blf_list_enable = 1 which was present in the T54W
template but missing from the stock T5x base. Without it, BLF and
shared parking keys show X's instead of green/red status.
2026-04-27 13:26:30 -04:00
Adam Moussa
665a523283 Fix T58W template: use y1 prefix for custom y-file and clean up names
Change y000000000150.cfg → y100000000150.cfg across all three references
(deviceconfig filename, model filename, auto_provision.common_file_name)
to avoid conflicting with the stock 3CX template, consistent with the
T54W templates. Also update the second data section friendly name.
2026-04-27 13:10:24 -04:00
Adam Moussa
cdf3230106 Add Yealink T58W door unlock 3CX template
Based on the official 3CX T5x template, stripped to T58W-only with the
door unlock URL hardcoded on line key 2 (type 17/URL). Keys 3+ remain
managed by 3CX BLF as usual.
2026-04-27 13:08:57 -04:00
Adam Moussa
442143bedb Apply display settings to SP template — both templates now match
Backlight dims to level 1 after 5 min, screensaver and power saving disabled.
2026-04-23 11:00:00 -04:00
Adam Moussa
c29db2b0f4 Add display settings to door-unlock template and update README
- Backlight dims to level 1 after 5 min, never fully sleeps
- Screensaver and power saving disabled
- README updated with T54W references and SP template manual steps
2026-04-22 20:01:09 -04:00
Adam Moussa
6d5f66546e Add 3CX provisioning templates for Yealink T54W with door unlock key
Two variants:
- yealinkT54W-door-unlock.ph.xml — line key 2 as door unlock URL
- yealinkT54W-door-unlock-with-sp.ph.xml — line key 2 as door unlock, keys 3-5 as shared parking SP1-3
2026-04-22 19:43:26 -04:00
Adam Moussa
d90f191032 Add README with architecture overview, SSM parameters, and phone setup instructions 2026-04-22 14:37:38 -04:00
Adam Moussa
12eb0ff9be Add door unlock API — Yealink DSS key triggers LenelS2 Elements TemporaryUnlock via API Gateway + Lambda 2026-04-22 14:36:55 -04:00