Skip to content

v3.11.0 – Faster MTX polling with bass/treble cache

Choose a tag to compare

@FX6W9WZK FX6W9WZK released this 16 Mar 23:12

Improvement

MTX polling is now 5-6x faster for most update cycles.

Problem

Every 60s poll sent 19 TCP commands to the MTX device (3 bulk + 16 individual bass/treble queries), taking 15-20 seconds. HA warned: Update is taking over 10 seconds.

Solution

Bass and treble values rarely change, so they are now cached and only refreshed every 5th poll (~5 minutes).

Poll type Commands Duration Frequency
Normal (cached B/T) 3 bulk ~2-3s 4 out of 5 polls
Full refresh 3 bulk + 16 B/T ~15-20s Every 5th poll

Cache behavior

  • Cache populated on first poll and refreshed every 5th poll
  • set_bass() / set_treble() immediately update the cache (no stale values)
  • Cache reset on reconnect
  • No impact on accuracy — bass/treble barely change in normal operation