Commit Graph
5 Commits
Author SHA1 Message Date
eiggerandClaude Opus 5 9e55c585f9 feat(door): add door_event event entity for pass-through timestamps
Validate YAML Configs / Validate YAML Schema (push) Failing after 11m0s
door_status stays at the same value on every pass, so HA never moves
last_changed and the logbook cannot show when the door was actually used.
An event entity's state is the timestamp of the last occurrence, so a repeated
event_type still updates it, and it is not restored across HA restarts — no
stale "entering" coming back after a reboot.

Both entities are derived from the same advertisement: door_status for the
current state, door_event for when it happened. heartbeat: 60s lets the same
event_type fire again after 60s, which is once per pass in practice.

Also teach scripts/validate.py the event platform, mirroring the app's
ConfigValidator rules: event_types required (error), map values missing from
event_types, absent decode.map, numeric metadata, and a publish rule whose
on_change_only suppresses repeats (warnings). The inherited publish rule
(sensor > device > defaults) is now threaded down to sensor validation.

Requires HassBle 1.5.0 or newer — event_types is a new key and older versions
parse config.yaml in strict mode.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
2026-09-09 22:40:52 +09:00
eiggerandCursor d2e399afc2 feat(parking): set APT SmartKey advertise local_name
parking_beacon requests include Complete Local Name. Requires HassBle 1.4.1.

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-02 08:11:17 +09:00
eiggerandCursor c596db47bf feat(parking): persist request counter and 0x41/0x40 payload phases
Co-authored-by: Cursor <cursoragent@cursor.com>
2026-09-01 15:55:50 +09:00
eigger b4fc6f799f feat(advertise): add BLE advertising TX schema, templates, and validation
- Update scripts/validate.py with advertise block and control action validation
- Update templates.yaml with mytown_parking_beacon advertising TX template
- Add commented parking beacon TX/RX example to config.yaml
- Document advertise schema, counter_mode, counter_start, and control actions in README.md / README.ko.md
2026-08-28 21:55:05 +09:00
eigger 9658db3bcc ci: add YAML schema and validation checks for config and templates 2026-08-27 20:18:14 +09:00