Skip to content

v1.13.17-beta.1 - Logging Consolidation

Pre-release
Pre-release

Choose a tag to compare

@pvyleta pvyleta released this 03 Feb 22:14

🎯 v1.13.17-beta.1 - Logging Consolidation

This pre-release significantly reduces log verbosity while preserving all essential information.

📊 Changes

Entity Creation Logging (70% reduction)

  • Consolidated entity creation from 3 lines to 1 line per entity
  • Affected platforms: sensor, switch, select, number, button
  • All key information preserved (name, ID, class, unit, value)

Before (3 lines per sensor):
\
DEBUG [custom_components.xcc.sensor] 🔧 Creating sensor: xcc_example
INFO [custom_components.xcc.sensor] 🏗️ SENSOR: EXAMPLE -> 'Example' | ID:xcc_example | ...
INFO [custom_components.xcc.sensor] ✅ Successfully created sensor: EXAMPLE (xcc_example)
\\

After (1 line per sensor):
\
INFO [custom_components.xcc.sensor] ✅ Sensor: Example | ID:xcc_example | Class:temperature/measurement | Unit:°C | Value:22.5
\\

Coordinator Logging (75% reduction)

  • Consolidated page parsing, descriptor stats, and page grouping
  • Reduced from 4+ lines per page to 2-3 lines total for all pages

Before (4 lines per page):
\
DEBUG Parsed 88 entities from page BAZEN21.XML
DEBUG 📄 BAZEN21.XML: ✅16 WITH | ❌72 WITHOUT descriptors
DEBUG BAZEN21.XML -> BAZEN2 (16 entities)
DEBUG BAZEN2: 16 entities
\\

After (2-3 lines total for ALL pages):
\
DEBUG 📄 Parsed 350 entities from 8 pages: MAIN.XML:45, BAZEN21.XML:88, FVE.XML:35, ...
DEBUG 📊 Descriptors: 350 entities, 280 configs | BAZEN21.XML(✅16/❌72) | FVE.XML(✅35) | ...
DEBUG 📊 Page grouping: BAZEN2:16 | FVE:35 | XCC_HIDDEN_SETTINGS:84
\\

✅ Testing

  • All tests passing (6 passed, 1 skipped)
  • No functional changes, only logging improvements

📝 Files Changed

  • \custom_components/xcc/sensor.py\
  • \custom_components/xcc/switch.py\
  • \custom_components/xcc/select.py\
  • \custom_components/xcc/number.py\
  • \custom_components/xcc/button.py\
  • \custom_components/xcc/coordinator.py\
  • \custom_components/xcc/manifest.json\ (version bump to 1.13.17)

🔗 Installation

This is a pre-release for testing. Please report any issues at https://github.com/pvyleta/xcc-integration/issues

Note: This release builds on v1.13.16-beta.1 which included setup order and timeout handling fixes.