Add Claude-friendly export format for Home Assistant data
Adds a new 'Export für Claude (AI)' button that generates a well-structured Markdown file optimized for pasting into Claude. The export includes: - System information - Statistics overview - Entities grouped by domain with details - Installed components - Available services - Helpful hints for Claude on how to use the data
This commit is contained in:
parent
140ef2000d
commit
eb77fdd17d
2 changed files with 128 additions and 11 deletions
|
|
@ -397,10 +397,13 @@
|
|||
|
||||
<div style="margin-top: 20px;">
|
||||
<button class="btn btn-success" onclick="downloadReport('json')">
|
||||
📥 Als JSON herunterladen
|
||||
Als JSON herunterladen
|
||||
</button>
|
||||
<button class="btn btn-success" onclick="downloadReport('txt')">
|
||||
📥 Als Text herunterladen
|
||||
Als Text herunterladen
|
||||
</button>
|
||||
<button class="btn btn-primary" onclick="downloadReport('claude')" style="background: linear-gradient(135deg, #d97706 0%, #ea580c 100%); border: none;">
|
||||
Export für Claude (AI)
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
|
|
@ -557,13 +560,15 @@
|
|||
const downloadUrl = window.URL.createObjectURL(blob);
|
||||
const a = document.createElement('a');
|
||||
a.href = downloadUrl;
|
||||
a.download = `ha_overview.${format}`;
|
||||
// Setze korrekte Dateiendung
|
||||
const extension = format === 'claude' ? 'md' : format;
|
||||
a.download = `ha_overview.${extension}`;
|
||||
document.body.appendChild(a);
|
||||
a.click();
|
||||
window.URL.revokeObjectURL(downloadUrl);
|
||||
document.body.removeChild(a);
|
||||
|
||||
showAlert('✓ Download gestartet!', 'success');
|
||||
|
||||
showAlert('Download gestartet!', 'success');
|
||||
} else {
|
||||
showAlert('✗ Download fehlgeschlagen', 'error');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue