feat(zap): PT2260 lighting controls — Tasks 1–5 (no hardware) - #13
Merged
metaframework-dispatch-bot[bot] merged 9 commits intoJul 15, 2026
Merged
Conversation
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
…nt, PWA/Caddy details) Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Tasks 1–5 from the implementation plan — no hardware required. Tasks 6 & 7 (RTL-SDR capture, lamp verification) stay Tom-in-the-loop and land after this merges.
resolve_code()(per-unit codes underunits.<name>.codes.on/off) insrc/device.py.pulsespayload builder with firmware-mirrored validation limits (µs 1..100000, 1..256 pairs,repeat_count1..100, total-duration budget ≤ 5,000,000 µs).{pulses, repeat_count}shape onPOST /transmitinfirmware/src/main.cpp. Legacy{bits, timing}and/fan/*routes untouched. Watchdog fed inside the pulse-pair loop; PT2260 sync pair is the last element and every pair ends LOW (per spec §4).cli.py) routes PT2260 profiles through the pulse-train payload path; validates commands per encoding (fanon/off/hi/med/lo, PT2260 codes live underunits.<unit>.codes.<command>).scripts/export_web_devices.pyderives the PWA'sdevices.jsonfromdevices/zap_lights.yaml— one source of truth.Firmware code compiles but requires a Tom flash before Task 7 (lamp verification). All host-side tests pass.
Test plan
rtl_433 -f 433.92M -A -S unknownon the living-room remote's 8 buttons, populatedevices/zap_lights.yamlcodespython cli.py PROFILE UNIT COMMANDfor each of the four outletsCaptured test run (showboat)
Issue #12 Tasks 1-5 test run
2026-07-14T00:53:52Z by Showboat 0.6.1
Closes #12
🤖 Generated with Claude Code