mirror of
https://github.com/Laxilef/OTGateway.git
synced 2026-11-30 10:13:04 +05:00
Track 89 settings and state fields with partial structure snapshots and a fixed-capacity map of publication timestamps. Publish changed or expired values in bounded passes, updating snapshots only after successful queue acceptance and keeping failed fields eligible for retry. Refresh fields after reconnecting and affected temperatures after unit or Equitherm mode changes. Keep the status heartbeat independent, cache DHW limits for MQTT and API consumers, and clear non-finite retained readings. Default the forced publication interval to 60 seconds and accept 15 to 3600 seconds in the API and UI. Set Home Assistant state expiration to twice this interval and refresh discovery when the interval changes. Remove network connection and dedicated fault/diagnostic availability publications. Use existing active states and RSSI for HA availability.