Home Assistant Integration fรผr aktivitรคtsbasierte Steuerung von AV-Gerรคten. Eine Open-Source-Alternative zu Logitech Harmony und Roomie Remote.
Kernfunktionen:
- ๐ Multiroom-Unterstรผtzung - Unabhรคngige Steuerung mehrerer Rรคume
- ๐ฌ Aktivitรคtsbasierte Szenen - "Film schauen", "Musik hรถren", "Gaming", etc.
- ๐ Schritt-fรผr-Schritt-Konfiguration - Granulare Kontrolle mit 11 verschiedenen Schritt-Typen
- ๐ฏ Intelligentes Aktivitรคtswechsel-Management - Automatisches Ausschalten ungenutzter Gerรคte
- ๐๏ธ Mehrere Entity-Typen - Media Player, Lichter, Steckdosen und Rolllรคden
- ๐ข Schritt-Reihenfolge - Prรคzise Kontrolle รผber die Ausfรผhrungssequenz
- ๐พ Persistente Konfiguration - Alle Einstellungen bleiben nach HA-Neustart erhalten
- ๐ Lautstรคrke & Sound Mode - Lautstรคrke und Tonmodus pro Aktivitรคt konfigurierbar
- ๐ก Lichtsteuerung - Helligkeit, Farbtemperatur und รbergรคnge
- ๐ช Rollladen-Steuerung - Position und Neigung basierend auf Aktivitรคt
- โก Flexible Delays - Individuelle Wartezeit nach jedem Schritt (0-60 Sekunden)
- ๐๏ธ Input Source Management - Automatischer Input-Wechsel
- โ๏ธ Call Action - Beliebige Home Assistant Services in Aktivitรคten einbinden
- โ๏ธ Edit Step - Nachtrรคgliche Bearbeitung aller Schritt-Parameter
- ๐ Aktivitรคt kopieren - Schnelles Duplizieren bestehender Aktivitรคten
- ๐๏ธ Raum lรถschen - Vollstรคndige Entfernung von Rรคumen mit allen Aktivitรคten
- ๐ Sensor Entities - Vollstรคndige Transparenz รผber Konfiguration in Lovelace
- ๐ฅ๏ธ UI-basierte Konfiguration - Kein YAML erforderlich
- ๐ฉ๐ช Vollstรคndig auf Deutsch - Komplette deutsche รbersetzung
- รffne HACS in Home Assistant
- Gehe zu "Integrationen"
- Klicke auf die drei Punkte oben rechts
- Wรคhle "Benutzerdefinierte Repositories"
- Fรผge hinzu:
- Repository:
https://github.com/mkshb/ha_av_scenes - Kategorie: Integration
- Repository:
- Klicke auf "AV Scenes" in der Liste
- Klicke auf "Herunterladen"
- Starte Home Assistant neu
- Lade die neueste Version von Releases herunter
- Entpacke die Dateien
- Kopiere den
custom_components/av_scenesOrdner in deinconfig/custom_components/Verzeichnis - Starte Home Assistant neu
- Gehe zu Einstellungen โ Gerรคte & Dienste
- Klicke auf + Integration hinzufรผgen
- Suche nach "AV Scenes"
- Klicke auf Konfigurieren um Rรคume und Aktivitรคten einzurichten
- Wรคhle einen bestehenden Home Assistant Bereich oder erstelle einen eigenen Raum
- Klicke auf Neuen Raum hinzufรผgen
- Wรคhle einen Raum
- Klicke auf Neue Aktivitรคt hinzufรผgen
- Gib einen Namen ein (z.B. "Film schauen")
- Fรผge Schritte hinzu:
- Wรคhle Schritt-Typ aus 11 verfรผgbaren Optionen:
- Turn on device - Gerรคt einschalten
- Set input source - Eingangsquelle wรคhlen (Media Player)
- Set volume - Lautstรคrke setzen (Media Player)
- Set sound mode - Tonmodus setzen (Media Player) ๐
- Set brightness/color - Helligkeit/Farbe setzen (Light)
- Set color temperature - Farbtemperatur setzen (Light)
- Set position - Position setzen (Cover)
- Set tilt - Neigung setzen (Cover)
- Call action - Beliebige Home Assistant Action aufrufen ๐
- Wait/Delay - Wartezeit einfรผgen
- Wรคhle Gerรคt (auรer bei Wait/Delay und Call Action)
- Konfiguriere schritt-spezifische Parameter
- Setze Verzรถgerung nach dem Schritt (0-60 Sekunden)
- Wรคhle Schritt-Typ aus 11 verfรผgbaren Optionen:
- Schritte bearbeiten (optional):
- Wรคhle "Edit step" um Parameter anzupassen
- Alle Einstellungen kรถnnen nachtrรคglich geรคndert werden
- Schritt-Reihenfolge anpassen (optional):
- Wรคhle "Change step order"
- Verschiebe Schritte nach oben/unten
- Schritte werden von oben nach unten ausgefรผhrt
- Aktivitรคt kopieren (optional):
- Nutze "Copy activity" um eine Aktivitรคt zu duplizieren
- Alle Schritte und Einstellungen werden kopiert
- Ideal fรผr รคhnliche Aktivitรคten (z.B. "Film HD" โ "Film 4K")
Fรผr jede Aktivitรคt wird automatisch eine Szene erstellt:
# Beispiel: Szene aktivieren
service: scene.turn_on
target:
entity_id: scene.wohnzimmer_film_schauenAktivitรคt starten:
service: av_scenes.start_activity
data:
room: wohnzimmer
activity: film_schauenAktivitรคt stoppen:
service: av_scenes.stop_activity
data:
room: wohnzimmerNeu laden:
service: av_scenes.reloadJeder Raum erhรคlt einen Switch fรผr den Aktivitรคtsstatus:
# Status prรผfen
{{ states('switch.wohnzimmer_activity') }}
# Aktuelle Aktivitรคt
{{ state_attr('switch.wohnzimmer_activity', 'current_activity') }}
# Aktivitรคt stoppen
service: switch.turn_off
target:
entity_id: switch.wohnzimmer_activityJeder Raum erhรคlt einen Konfigurations-Sensor fรผr vollstรคndige Transparenz:
# Aktueller Status
{{ states('sensor.wohnzimmer_configuration') }}
# Alle Aktivitรคten
{{ state_attr('sensor.wohnzimmer_configuration', 'activity_names') }}
# Detaillierte Aktivitรคts-Info
{{ state_attr('sensor.wohnzimmer_configuration', 'activities') }}
# Lovelace Entity Card
type: entity
entity: sensor.wohnzimmer_configuration
# Lovelace Markdown fรผr formatierte Anzeige
type: markdown
content: |
## {{ states('sensor.wohnzimmer_configuration') }}
**Aktivitรคten:** {{ state_attr('sensor.wohnzimmer_configuration', 'total_activities') }}
{% for activity in state_attr('sensor.wohnzimmer_configuration', 'activity_names') %}
- {{ activity }}
{% endfor %}Sensor Attributes enthalten:
activity_names- Liste aller Aktivitรคtenactivities- Vollstรคndige Details mit Gerรคten, Reihenfolge und allen Einstellungencurrent_activity- Name der aktuell laufenden Aktivitรคtstatus- "active" oder "idle"total_activities- Anzahl der konfigurierten Aktivitรคten
Gerรคte:
- Receiver (Input: BD/DVD, Lautstรคrke: 65%)
- Beamer (Input: HDMI1)
- Blu-ray Player
Was passiert:
- Alle Gerรคte werden eingeschaltet
- Verzรถgerungen werden eingehalten
- Receiver-Lautstรคrke wird auf 65% gesetzt
- Receiver wechselt auf BD/DVD Input
- Beamer wechselt auf HDMI1
Laufende Aktivitรคt "Apple TV":
- Beamer einschalten
- AV Receiver einschalten
- AV Receiver Input: Apple TV
- AV Receiver Lautstรคrke: 60%
- Apple TV einschalten
Neue Aktivitรคt "Sonos":
- AV Receiver einschalten
- AV Receiver Input: Sonos
- AV Receiver Lautstรคrke: 50%
- Sonos einschalten
Intelligentes Aktivitรคtswechsel-Management:
- โ Beamer wird AUSGESCHALTET (nicht mehr benรถtigt)
- โ Apple TV wird AUSGESCHALTET (nicht mehr benรถtigt)
- โ AV Receiver bleibt AN โ Nur Input-Wechsel Apple TVโSonos, Lautstรคrke 60%โ50%
- โ Sonos wird eingeschaltet
Problem:
- TV ist an Steckdose angeschlossen
- TV schaltet sich ein bevor Steckdose aktiv ist
- TV startet nicht richtig
Lรถsung mit Schritt-Reihenfolge:
- Turn on Steckdose (delay_after: 5s)
- Set position Rollladen 60% (delay_after: 1s)
- Set brightness Licht 8% (delay_after: 1s)
- Turn on TV (delay_after: 2s)
- Set source TV โ HDMI_IN_4 (delay_after: 1s)
- Turn on Apple TV (delay_after: 2s)
Was passiert:
- Steckdose wird eingeschaltet โ Wartet 5 Sekunden
- Rollladen fรคhrt auf 60% โ Wartet 1 Sekunde
- Licht geht auf 8% โ Wartet 1 Sekunde
- TV schaltet sich ein (hat jetzt Strom!) โ Wartet 2 Sekunden
- TV wechselt auf HDMI_IN_4 โ Wartet 1 Sekunde
- Apple TV schaltet sich ein โ Wartet 2 Sekunden
type: vertical-stack
cards:
- type: entities
title: Wohnzimmer Aktivitรคten
entities:
- entity: switch.wohnzimmer_activity
name: Aktueller Status
- type: section
- entity: scene.wohnzimmer_film_schauen
name: ๐ฌ Film schauen
- entity: scene.wohnzimmer_musik_hoeren
name: ๐ต Musik hรถren
- entity: scene.wohnzimmer_gaming
name: ๐ฎ Gaming
- entity: scene.wohnzimmer_tv
name: ๐บ TV schauenautomation:
- alias: "Film um 20 Uhr"
trigger:
- platform: time
at: "20:00:00"
condition:
- condition: state
entity_id: binary_sensor.jemand_zuhause
state: "on"
action:
- service: av_scenes.start_activity
data:
room: wohnzimmer
activity: film_schauen- Source-Wechsel funktioniert nur wenn das Gerรคt das
source_listAttribut unterstรผtzt - Lautstรคrkeregelung funktioniert nur wenn das Gerรคt den
volume_setService unterstรผtzt - Rolllรคden mit Neigungsfunktion benรถtigen Unterstรผtzung fรผr
set_cover_tilt_positionService
- Media Player (media_player.*) - Vollstรคndige Unterstรผtzung mit Input-Auswahl und Lautstรคrkeregelung
- Lichter (light.*) - Helligkeit, Farbtemperatur und รbergangszeit
- Steckdosen (switch.*) - Ein/Aus Steuerung mit konfigurierbarer Verzรถgerung
- Rolllรคden (cover.*) - Position und Neigungssteuerung
Contributions sind willkommen! Bitte:
- Forke das Repository
- Erstelle einen Feature Branch (
git checkout -b feature/AmazingFeature) - Committe deine รnderungen (
git commit -m 'Add some AmazingFeature') - Pushe zum Branch (
git push origin feature/AmazingFeature) - รffne einen Pull Request
Siehe CHANGELOG.md fรผr Details zu รnderungen.
Dieses Projekt ist unter der MIT-Lizenz lizenziert - siehe LICENSE fรผr Details.
- ๐ Issues
- ๐ก Feature Requests
Core Functionality:
- ๐ Multi-room Support - Independent control of multiple rooms
- ๐ฌ Activity-based Scenes - "Watch Movie", "Listen to Music", "Gaming", etc.
- ๐ Step-by-Step Configuration - Granular control with 11 different step types
- ๐ฏ Intelligent Activity Switching Management - Automatic shutdown of unused devices
- ๐๏ธ Multiple Entity Types - Media Players, Lights, Switches and Covers
- ๐ข Step Order Control - Precise control over execution sequence
- ๐พ Persistent Configuration - All settings persist after HA restart
- ๐ Volume & Sound Mode - Volume and sound mode configurable per activity
- ๐ก Light Control - Brightness, color temperature and transitions
- ๐ช Cover Control - Position and tilt based on activity
- โก Flexible Delays - Individual wait time after each step (0-60 seconds)
- ๐๏ธ Input Source Management - Automatic input switching
- โ๏ธ Call Action - Integrate any Home Assistant service in activities
- โ๏ธ Edit Step - Modify all step parameters afterwards
- ๐ Copy Activity - Quick duplication of existing activities
- ๐๏ธ Delete Room - Complete removal of rooms with all activities
- ๐ Sensor Entities - Complete transparency of configuration in Lovelace
- ๐ฅ๏ธ UI-based Configuration - No YAML required
- ๐ฉ๐ช Fully Translated - Complete German translation
- Open HACS in Home Assistant
- Go to "Integrations"
- Click the three dots in the top right
- Select "Custom repositories"
- Add:
- Repository:
https://github.com/mkshb/ha_av_scenes - Category: Integration
- Repository:
- Click on "AV Scenes" in the list
- Click "Download"
- Restart Home Assistant
- Download the latest release from Releases
- Unzip the files
- Copy the
custom_components/av_scenesfolder to yourconfig/custom_components/directory - Restart Home Assistant
- Go to Settings โ Devices & Services
- Click + Add Integration
- Search for "AV Scenes"
- Click Configure to set up rooms and activities
- Select an existing Home Assistant area or create a custom room
- Click Add new room
- Select a room
- Click Add new activity
- Enter a name (e.g., "Watch Movie")
- Add steps:
- Choose step type from 11 available options:
- Turn on device - Turn on a device
- Set input source - Select input source (Media Player)
- Set volume - Set volume (Media Player)
- Set sound mode - Set sound mode (Media Player) ๐
- Set brightness/color - Set brightness/color (Light)
- Set color temperature - Set color temperature (Light)
- Set position - Set position (Cover)
- Set tilt - Set tilt (Cover)
- Call action - Call any Home Assistant action ๐
- Wait/Delay - Insert wait time
- Select device (except for Wait/Delay and Call Action)
- Configure step-specific parameters
- Set delay after step (0-60 seconds)
- Choose step type from 11 available options:
- Edit steps (optional):
- Select "Edit step" to adjust parameters
- All settings can be modified afterwards
- Adjust step order (optional):
- Select "Change step order"
- Move steps up/down
- Steps execute from top to bottom
- Copy activity (optional):
- Use "Copy activity" to duplicate an activity
- All steps and settings are copied
- Ideal for similar activities (e.g., "Movie HD" โ "Movie 4K")
A scene is automatically created for each activity:
# Example: Activate scene
service: scene.turn_on
target:
entity_id: scene.living_room_watch_movieStart activity:
service: av_scenes.start_activity
data:
room: living_room
activity: watch_movieStop activity:
service: av_scenes.stop_activity
data:
room: living_roomReload:
service: av_scenes.reloadEach room gets a switch for activity status:
# Check status
{{ states('switch.living_room_activity') }}
# Current activity
{{ state_attr('switch.living_room_activity', 'current_activity') }}
# Stop activity
service: switch.turn_off
target:
entity_id: switch.living_room_activityEach room gets a configuration sensor for full transparency:
# Current status
{{ states('sensor.living_room_configuration') }}
# All activities
{{ state_attr('sensor.living_room_configuration', 'activity_names') }}
# Detailed activity info
{{ state_attr('sensor.living_room_configuration', 'activities') }}
# Lovelace Entity Card
type: entity
entity: sensor.living_room_configuration
# Lovelace Markdown for formatted display
type: markdown
content: |
## {{ states('sensor.living_room_configuration') }}
**Activities:** {{ state_attr('sensor.living_room_configuration', 'total_activities') }}
{% for activity in state_attr('sensor.living_room_configuration', 'activity_names') %}
- {{ activity }}
{% endfor %}Sensor Attributes contain:
activity_names- List of all activitiesactivities- Complete details with devices, order and all settingscurrent_activity- Name of currently running activitystatus- "active" or "idle"total_activities- Number of configured activities
Devices:
- Receiver (Input: BD/DVD, Volume: 65%)
- Projector (Input: HDMI1)
- Blu-ray Player
What happens:
- All devices power on
- Delays are respected
- Receiver volume is set to 65%
- Receiver switches to BD/DVD input
- Projector switches to HDMI1
Running Activity "Apple TV":
- Turn on Projector
- Turn on AV Receiver
- AV Receiver Input: Apple TV
- AV Receiver Volume: 60%
- Turn on Apple TV
New Activity "Sonos":
- Turn on AV Receiver
- AV Receiver Input: Sonos
- AV Receiver Volume: 50%
- Turn on Sonos
Intelligent Activity Switching Management:
- โ Projector turns OFF (no longer needed)
- โ Apple TV turns OFF (no longer needed)
- โ AV Receiver stays ON โ Only input change Apple TVโSonos, Volume 60%โ50%
- โ Sonos turns on
Problem:
- TV is connected to power outlet
- TV powers on before outlet is active
- TV doesn't start properly
Solution with Step Order:
- Turn on Outlet (delay_after: 5s)
- Set position Cover 60% (delay_after: 1s)
- Set brightness Light 8% (delay_after: 1s)
- Turn on TV (delay_after: 2s)
- Set source TV โ HDMI_IN_4 (delay_after: 1s)
- Turn on Apple TV (delay_after: 2s)
What happens:
- Outlet powers on โ Waits 5 seconds
- Cover moves to 60% โ Waits 1 second
- Light dims to 8% โ Waits 1 second
- TV powers on (now has power!) โ Waits 2 seconds
- TV switches to HDMI_IN_4 โ Waits 1 second
- Apple TV powers on โ Waits 2 seconds
type: vertical-stack
cards:
- type: entities
title: Living Room Activities
entities:
- entity: switch.living_room_activity
name: Current Status
- type: section
- entity: scene.living_room_watch_movie
name: ๐ฌ Watch Movie
- entity: scene.living_room_listen_music
name: ๐ต Listen to Music
- entity: scene.living_room_gaming
name: ๐ฎ Gaming
- entity: scene.living_room_watch_tv
name: ๐บ Watch TVautomation:
- alias: "Movie at 8 PM"
trigger:
- platform: time
at: "20:00:00"
condition:
- condition: state
entity_id: binary_sensor.someone_home
state: "on"
action:
- service: av_scenes.start_activity
data:
room: living_room
activity: watch_movie- Source switching only works if device supports
source_listattribute - Volume control only works if device supports
volume_setservice - Covers with tilt function require support for
set_cover_tilt_positionservice
- Media Players (media_player.*) - Full support with input selection and volume control
- Lights (light.*) - Brightness, color temperature and transition time
- Switches (switch.*) - On/off control with configurable delay
- Covers (cover.*) - Position and tilt control
Contributions are welcome! Please:
- Fork the repository
- Create a feature branch (
git checkout -b feature/AmazingFeature) - Commit your changes (
git commit -m 'Add some AmazingFeature') - Push to the branch (
git push origin feature/AmazingFeature) - Open a Pull Request
See CHANGELOG.md for details on changes.
This project is licensed under the MIT License - see LICENSE for details.
- ๐ Issues
- ๐ก Feature Requests