github noiwid/HAFamilyLink v1.2.13
v1.2.13 - School Time today-override sync fix (#140) + noVNC hang fix (#136)

latest release: v1.2.14-rc1
15 hours ago

Promotes v1.2.13-rc1 to stable and adds the School Time sync fix.

School Time switch no longer springs back ON (#140)

Turning School Time off in Home Assistant posted a correct "today only" override to Google, but nothing ever read it back. On the next refresh the switch recomputed its state from the weekly schedule, ignored the change, and returned to ON, which looked like Home Assistant and the Family Link app had drifted apart.

The equivalent fix for bedtime landed in #113, but it could not cover school time. Both override types share the same type code, yet bedtime ones are keyed by an opaque CAEQxx day-code string while school time ones carry a [weekday, rule_id] list instead. The bedtime reader's filter therefore never matched a school time override, and school time silently kept using the weaker path. It now has its own reader, with the same "most recent override wins" rule.

"It switches on automatically at 08:00" was the same root cause seen from another angle. The field the switch relied on only reports "a school time window is scheduled today", not "school time is enabled", so it went true at the window's start hour regardless of any override. That value is now tracked separately and no longer decides the switch state on its own.

Worth knowing: the weekly toggle staying ON is expected

The switch changes School Time for today only, exactly like the "Today" toggle in the Family Link app, and deliberately leaves the weekly schedule untouched. So after toggling from Home Assistant, the weekly School time setting in the app legitimately stays as it was.

To make that visible rather than confusing, the School Time switch now exposes two attributes in Developer Tools, States:

  • school_time_enabled_weekly: the weekly policy toggle, what the app shows
  • school_time_scheduled_today: whether today has a school time window at all

When these disagree with the switch itself, a "today only" override is in effect and everything is working as intended.

Reported by @Piepke82.

Auth add-on 1.8.0: noVNC no longer hangs on "Connecting..." (#136)

Previously shipped in the v1.2.13-rc1 pre-release, now promoted to stable. TigerVNC becomes the default display backend, with automatic fallback to the legacy Xvfb + x11vnc stack, removing the component that crashed the instant a VNC client connected. Silent display-stack failures are now logged and checked, stale X99 state is cleaned on start, and the VNC password length mismatch is handled explicitly.

The crash was confirmed via strace by @wookash.

Upgrading

A full Home Assistant restart is required, not just a reload of the integration. Reloading will not pick up the new code.

Note

The school time override parser was validated against synthetic payloads reproducing the reported scenario, but has not yet been confirmed against a live Google response. If School Time still looks out of sync after upgrading, please open an issue with debug logs enabled:

logger:
  logs:
    custom_components.familylink: debug

Full changelog: v1.2.12...v1.2.13

Don't miss a new HAFamilyLink release

NewReleases is sending notifications on new releases.