Skip to content

EXPERIMENTAL - Platform Blocking Fix

Pre-release
Pre-release

Choose a tag to compare

@noiwid noiwid released this 13 Nov 13:51
ef6d2e2

This release fixes critical bugs in the platform blocking functionality. Testing required to verify if it actually works with Microsoft's API.

🐛 Bug Fixes

  • Fixed incorrect API parameter types for override_device()
  • Now uses proper OverrideTarget enum (WINDOWS/MOBILE/XBOX)
  • Now uses proper OverrideType enum (UNTIL/CANCEL)
  • Properly converts duration to datetime for valid_until

🔄 Breaking Changes

Switch entities changed from per-device to per-platform:

  • Before: switch.desktop_9n6pnll
  • Now: switch.maceo_windows

Services updated:

  • Now require account_id + platform instead of device_id
  • Platform options: windows, mobile, xbox

🧪 How to Test

  1. Install v0.5.1
  2. Delete and recreate the integration
  3. You'll see platform switches (e.g., "Macéo Windows")
  4. Try toggling the switch OFF for 5 minutes
  5. Check if the device actually blocks

⚠️ Important Notes

  • If blocking doesn't work, fall back to v0.6.0 (monitoring only)
  • API confirmed by pyfamilysafety developer as correct
  • Microsoft's API may still not work despite correct parameters

Install: Installation Guide