מקור טכני באנגלית, מסונכרן אוטומטית מהמאגר. GitHub
Feature 012 — Settings, study notifications and pre-candle reminders
Accepted scope
Administrator-configured SMS/app push for climate studies and Shabbat/Yom Tov plan observations. Use already-installed Twilio capability; no integration installation, credentials collection, device action or automatic enablement. Provider adapter: installed Twilio SMS UI 1.0.3 service contract (twilio_sms_ui.send_message, target/message/from_number), inspected on host. No third-party source is copied or package added.
Functional requirements
- SN-FR-001: For the SMS channel, discover a loaded Twilio SMS UI provider with a registered send service and at least one configured E.164 sender. Never infer capability from a service name alone. Unsupported/missing providers or sender configuration produce a visible unavailable reason and prevent enablement; recheck immediately before sending.
- SN-FR-002: Provide private admin-only settings shared by both study types: SMS enabled (default false), configured sender, one E.164 recipient, English/Hebrew, per-type participation and started/stopped/completed event toggles. Explicit Save is required. Saving settings sends no message and does not start observations. Recipients and notification metadata stay out of study exports and public repository.
- SN-FR-003: Record notifications only for lifecycle transitions committed after settings are enabled: observing starts, explicit early stop, automatic completion. Scheduled plan creation is not actual collection start. No retroactive completed-run messages or duplicate completion/stop messages.
- SN-FR-004: Optional SMS completion/stop report link uses configured HTTPS external HA URL and the frozen run ID. It opens an admin-authenticated report with PDF/Print and JSON controls; never publish PDFs or mint bearer download URLs. Without a safe external URL, explain and omit links while retaining SMS status support.
- SN-FR-005: Surface disabled, available/configured, unavailable, provider-submitted/unconfirmed, failed, interrupted/unknown and cancelled outcomes. Provider acceptance does not prove handset delivery; this adapter may swallow upstream errors. No test messages or delivery claims without explicit evidence.