Skip to content

Stack-held Calendar drives Schedule exception (#1758) (1.0.7) - #19

Merged
sws-chipkin merged 1 commit into
mainfrom
calendar-stack-held
Sep 23, 2026
Merged

sws-chipkin merged 1 commit into
mainfrom
calendar-stack-held

Conversation

@sws-chipkin

Copy link
Copy Markdown
Collaborator

Uses the stack-held Calendar objects from cas-bacnet-stack#1758 (IFC-045), now on issues/runbook.

Changes

  • Stack pin: issues/runbook @ 00aa2d0e, ahead of 6.x (still reports 6.0.22). Move back to 6.x once #1758 lands there.
  • Calendar 1 ("Cream") is now held by the stack. BACnetStack_AddCalendarObject hands it over, and one Date_List entry (December 25, every year) is added. Date_List is writable (property 23). The stack now derives Present_Value, so the app's callback for it is gone.
  • Schedule 1 ("Saffron")'s exception is now a calendar reference to Cream (...WithCalendarReference) instead of the inline date form.
  • New tests/calendar_reference_check.py.
  • #2051's stack-side change is documentation only; the root cause was fixed in the example in 1.0.6.
  • Docs updated: TODO (the Calendar gap is removed and the remaining items renumbered), README, TUTORIAL, AGENTS, objects.json and PICS (regenerated).
  • Version 1.0.6 -> 1.0.7.

Known issue on this pin

Startup logs a one-off burst of Failed to set the date/time lines, and each Calendar Date_List access logs a BACnetDateRange pair. It's harmless. I bisected it to stack commit 4c793c15 (#2207) and filed cas-bacnet-stack#2381. It's tracked here as #18.

Testing (Windows, live, bacpypes3)

  • tests/calendar_reference_check.py PASS: Cream FALSE -> TRUE, Chartreuse 20.0 -> 5.0 (exception value) -> 20.0 after the date list is restored.
  • tests/sched_e_b_remote_peer.py PASS.
  • Trend Log 1 and Trend Log Multiple 1 recorded 28 and 29 records.
  • ReadPropertyMultiple(Device, ALL) OK.

Closes #14

🤖 Generated with Claude Code

…mp to 1.0.7

Stack issue #1758 is fixed on issues/runbook (IFC-045). The stack pin
moves to issues/runbook @ 00aa2d0e, ahead of 6.x, to pick it up.

- Calendar 1 (Cream): BACnetStack_AddCalendarObject + one Date_List
  entry (Dec 25, any year) via AddCalendarDateEntry; Date_List made
  writable (property 23). The app no longer serves Cream's Present_Value;
  the stack derives it from Local_Date.
- Schedule 1 (Saffron): exception switched from the inline
  ...WithCalendarEntry form to ...WithCalendarReference -> Cream.
- tests/calendar_reference_check.py: writes today into Date_List, checks
  Cream TRUE -> Chartreuse 5.0 (exception), restores -> 20.0. PASS.
- #2051's stack change on this branch is doc-only (root cause was the
  example, fixed in 1.0.6); nothing to change here.
- New log noise on this pin, bisected to stack commit 4c793c15 (#2207):
  a one-off startup burst of "Failed to set the date/time", plus a
  BACnetDateRange pair per Date_List access. Filed as
  cas-bacnet-stack#2381, tracked as #18 / TODO item 1.
- TODO old item 3 (Calendar gap) removed and later items renumbered;
  README, TUTORIAL, AGENTS, objects.json and PICS updated.

Re-verified live: Trend Log 1/TLM 1 record (28/29), RPM(Device, ALL)
OK, tests/sched_e_b_remote_peer.py PASS.

Closes #14

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@sws-chipkin
sws-chipkin merged commit 9092822 into main Sep 23, 2026
3 checks passed
@sws-chipkin
sws-chipkin deleted the calendar-stack-held branch October 21, 2026 21:56
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Calendar 1 ("Cream") Date_List can't be populated or referenced - blocked on cas-bacnet-stack#1758

1 participant