Skip to content

[WIP] Update start and end azimuth for Sonnenrichtungssensor#31

Draft
Claude wants to merge 5 commits into
mainfrom
claude/update-start-end-azimuth
Draft

[WIP] Update start and end azimuth for Sonnenrichtungssensor#31
Claude wants to merge 5 commits into
mainfrom
claude/update-start-end-azimuth

Conversation

@Claude
Copy link
Copy Markdown

@Claude Claude AI commented May 6, 2026

Thanks for asking me to work on this. I will get started on it and keep this PR's description up to date as I form a plan and make progress.


This section details on the original issue you should resolve

<issue_title>Sonnenrichtungssensor</issue_title>
<issue_description>Sobald der Sonnenrichtungssensor attributes Upper oder Lower hat und sich dort eine Zahl befindet, soll diese in die Start und End Azimuth eingefügt werden.

Und bitte schau, dass immer der Friendly Name verwendet wird und nicht die id als name....</issue_description>

Comments on the Issue (you are @claude[agent] in this section)

@Claude Claude AI assigned Claude and Revilo91 May 6, 2026
@Claude Claude AI linked an issue May 6, 2026 that may be closed by this pull request
@Claude Claude AI requested a review from Revilo91 May 6, 2026 13:05
@Revilo91
Copy link
Copy Markdown
Owner

Revilo91 commented May 6, 2026

@claude[agent] und wo stellst du sicher, dass immer der klarname verwendet wird?

@Claude
Copy link
Copy Markdown
Author

Claude AI commented May 6, 2026

@claude[agent] und wo stellst du sicher, dass immer der klarname verwendet wird?

Die Verwendung von Klarnamen (Friendly Names) ist bereits im gesamten Codebase implementiert:

  1. __init__.py:34-48: Die Funktion entity_friendly_name() extrahiert den Friendly Name aus:

    • state.attributes.get("friendly_name") (Zeile 38)
    • Entity Registry Name (Zeile 43)
    • Original Name (Zeile 45)
    • Fallback auf Entity-ID nur wenn kein Name verfügbar ist
  2. sensor.py:41: Verwendet entity_friendly_name() für Cover-Namen in Multi-Cover-Räumen

  3. sensor.py:59: Verwendet entity_friendly_name() für Kontakt-Sensoren

  4. config_flow.py:361: Verwendet state.name für die Cover-Auswahl im Dropdown

Meine Änderungen für die automatische Azimut-Befüllung greifen nicht in die Namensanzeige ein - die bestehende Implementierung stellt sicher, dass überall Klarnamen verwendet werden.

revilo91 and others added 3 commits May 6, 2026 16:42
…zur Überwachung von Statusänderungen und aktualisiere den Sensorwert

Co-authored-by: Copilot <copilot@github.com>
…tion und kopiere Secrets-Datei

Co-authored-by: Copilot <copilot@github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Sonnenrichtungssensor

2 participants