core icon indicating copy to clipboard operation
core copied to clipboard

Zone output settings (Sonos / Squeezelite) lost after daily light reinitialize / Beta 9

Open simon2207 opened this issue 7 months ago • 3 comments

Version: v4.0.0-Beta.9

Description: After completing the initial configuration, zone output settings (Sonos and Squeezelite player assignments) are lost approximately every 24 hours, requiring a manual backup restore to recover.

Observed Behavior (from logs):

The daily light reinitialize (triggered at ~07:00) resets all zone state controllers back to internal, discarding the Sonos and Squeezelite output mappings. The outputs are only re-registered after the Loxone Miniserver sends a secure/peers/... command — however, this command is consistently logged as unhandled:

[WARN][LoxoneHttp|Router] [command=secure/peers/...] unhandled loxone command

Despite being unhandled, the Miniserver trigger partially triggers a reconfiguration via ConfigService (volume presets) and ConfigHandlers (player names), but the zone-to-output mappings (Sonos host IPs, Squeezelite player IDs) are not durably persisted and are lost on the next reinitialize cycle.

Additionally, Sonos state controllers consistently fail on startup with "Failed to connect" before falling back to internal, which suggests the output config is not written to disk and cannot be restored independently of a Miniserver push.

Expected Behavior: Zone output assignments should be persisted locally so they survive a light reinitialize without requiring a Miniserver trigger or manual backup restore.

Steps to Reproduce:

  1. Configure zone outputs (Sonos / Squeezelite)
  2. Wait for the daily light reinitialize (~07:00) or trigger it manually
  3. Observe that zone output assignments are gone

Suspected Root Cause:

  • secure/peers command is not fully handled, so output config is never written persistently
  • Zone output mappings are only held in memory and reconstructed from Miniserver push events
  • If the Miniserver push is absent, delayed, or incomplete after a reinitialize, the config remains empty

Environment:

  • Lox-Audioserver v4.0.0-Beta.9
  • Outputs: Sonos (multiple zones) + Squeezelite (PiCore Garage)
  • Loxone Miniserver firmware: 17.x
  • Loxone Audioserver firmware: 17.x

simon2207 avatar Apr 10 '26 12:04 simon2207

@rudyberends any feedback on that - Beta 9 is really annoying with that behavior. THX Simon

simon2207 avatar Apr 16 '26 08:04 simon2207

@rudyberends might found the solution - will test it for the next 24 hours and make a pull request.

simon2207 avatar Apr 16 '26 13:04 simon2207

Is fixed in the latest beta.

mr-manuel avatar Apr 28 '26 13:04 mr-manuel