open_workshop/open_workshop_mqtt/services
matthias.lotz b46fed0f8e feat: SessionDetector Integration - Live-Tracking & Timeout Worker
Integriert SessionDetector vollständig in iot_bridge_service:

iot_bridge_service.py:
- SessionDetector Import & _detectors Dictionary
- Timeout Worker Thread für automatisches Session-Ende
- _restore_detector_states() bei Service-Start
- _get_or_create_detector() Factory Methode
- _process_session() ruft detector.process_power_event(env, power, ts)
- _timeout_worker_loop() prüft alle 10s auf Timeouts

models/mqtt_session.py:
- current_power_w Field für Live-Power Updates
- current_state Field für State Machine Status (idle/starting/standby/working/stopping)
- last_message_time Field für Timeout Detection

tests/__init__.py:
- Import test_session_detector Module

Diese Änderungen sind essentiell für SessionDetector!
Ohne sie würde der Detector nicht aufgerufen werden.
2026-01-30 16:49:50 +01:00
..
parsers feat: MQTT integration - auto-start, session detection, UI fixes 2026-01-24 23:40:03 +01:00
__init__.py feat: MQTT integration - auto-start, session detection, UI fixes 2026-01-24 23:40:03 +01:00
iot_bridge_service.py feat: SessionDetector Integration - Live-Tracking & Timeout Worker 2026-01-30 16:49:50 +01:00
mqtt_client.py WIP: MQTT Tests - Mocked approach created but needs better testing strategy 2026-01-25 10:15:52 +01:00
session_detector.py fix: Repariere alle Unit Tests - SessionDetector jetzt produktionsreif 2026-01-30 16:46:35 +01:00