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
This commit is contained in:
eigger committed 2026-08-28 21:55:05 +09:00
1 parent 5659408d8d
commit b4fc6f799f
5 files changed
+229 -10

No files matched your search

+3 -2
View File
@@ -140,7 +140,7 @@ Every entry in `devices` must have a `source` field that selects the data path.
on_change_only: true
min_interval: 5s
sensors: [...]
controls: [...] # gatt_notify / obd only
controls: [...] # gatt_notify / obd / advertisement(action only)
```
| Field | Type | Required | Description |
@@ -493,7 +493,8 @@ controls:
| `name` | string | ❌ | Display name in HA. Auto-generated from key if omitted. |
| `icon` | string | ❌ | MDI icon string. |
| `entity_category` | string | ❌ | `config` or `diagnostic`. |
| `command` | object | ✅ | Command map. Keys depend on type (see examples above). |
| `command` | object | ❌* | Command map. Keys depend on type (see examples above). Required when `action` is omitted. |
| `action` | enum | ❌* | Internal app action trigger (`advertise` \| `stop_advertise`). Omit `command` when `action` is specified. |
| `options` | list | select only | Options list for `select` type. |
| `min` | float | number only | Minimum value for `number` type. |
| `max` | float | number only | Maximum value for `number` type. |