Skip to content

Instantly share code, notes, and snippets.

@dotWee
Last active September 15, 2024 16:45
Show Gist options
  • Save dotWee/147366eb064bdf9934f4e2531140c1ad to your computer and use it in GitHub Desktop.
Save dotWee/147366eb064bdf9934f4e2531140c1ad to your computer and use it in GitHub Desktop.
[Home Assistant Blueprint] Denon AVR Quick Select Buttons

[Blueprint] Denon AVR Quick Select Buttons

Control Quick Select Modes on Your Denon AVR with Home Assistant!

I’ve created a Home Assistant blueprint that allows you to easily create buttons to trigger Quick Select options (1-4) on Denon AVR devices supported by Home Assistant.
If you're already using your Denon AVR with Home Assistant, this blueprint will simplify setting up automations or widgets to control Quick Select modes directly from the UI.

Features

  • Control Quick Select: Trigger Quick Select modes 1 through 4 on any Denon AVR with network control (tested with AVR-X3800H).
  • Simple Setup: Just select your Denon AVR from a dropdown and choose the Quick Select option (1-4).
  • Customisable: You can create multiple buttons for different Quick Select options, perfect for easily switching between input modes and settings.

How to Use

  1. Import the Blueprint
    • Use the import button to import the blueprint:

      Open your Home Assistant instance and show the blueprint import dialog with a specific blueprint pre-filled.

    • Alternatively: Go to Configuration > Blueprints > Import Blueprint, and enter the GitHub Gist link: https://gist.github.com/dotWee/147366eb064bdf9934f4e2531140c1ad

    • To import manually, copy the YAML from here and save it as denon_avr_quick_select.yaml in your Home Assistant’s blueprints/automation folder.

Create Automations

  1. Create Automations
    Once imported, you can create automations using the blueprint:

    • Select your Denon AVR entity from the dropdown.
    • Choose the Quick Select number (1-4) you want to trigger.
  2. Example Automation
    Here’s a sample automation using Quick Select 1:

alias: Quick Select 1 for Denon AVR
use_blueprint:
  path: your_blueprints/denon_avr_quick_select.yaml
  input:
    denon_entity: media_player.YOUR_DENON_AVR
    quick_select: 1

Just replace YOUR_DENON_AVR with the entity ID of your Denon receiver.

Example Lovelace Button Card

You can also create buttons in your Lovelace dashboard to trigger these Quick Select modes:

type: vertical-stack
cards:
  - type: button
    name: Quick Select 1
    tap_action:
      action: call-service
      service: denonavr.get_command
      service_data:
        entity_id: media_player.YOUR_DENON_AVR
        command: "/goform/formiPhoneAppDirect.xml?MSQUICK1"

  - type: button
    name: Quick Select 2
    tap_action:
      action: call-service
      service: denonavr.get_command
      service_data:
        entity_id: media_player.YOUR_DENON_AVR
        command: "/goform/formiPhoneAppDirect.xml?MSQUICK2"
        
  - type: button
    name: Quick Select 3
    tap_action:
      action: call-service
      service: denonavr.get_command
      service_data:
        entity_id: media_player.YOUR_DENON_AVR
        command: "/goform/formiPhoneAppDirect.xml?MSQUICK3"
        
  - type: button
    name: Quick Select 4
    tap_action:
      action: call-service
      service: denonavr.get_command
      service_data:
        entity_id: media_player.YOUR_DENON_AVR
        command: "/goform/formiPhoneAppDirect.xml?MSQUICK4"

Why This is Useful

The Quick Select feature on Denon receivers allows you to store your preferred settings, like input source, audio mode, and volume level.

This blueprint makes it easy to switch between these presets with a simple button press in Home Assistant.

Requirements

  • Denon AVR with network control (tested with AVR-X3800H, should work with many other models)
  • Home Assistant (Core or Supervised)

Feedback & Contributions

Feel free to try it out and let me know if you have any issues or improvements! You can also contribute to this blueprint by providing feedback or comments via the GitHub Gist.

blueprint:
name: Denon AVR Quick Select Buttons
description: Create buttons to trigger Quick Select options (1-4) on Denon AVR devices.
domain: automation
input:
denon_entity:
name: Denon AVR Entity
description: The entity ID of your Denon AVR.
selector:
entity:
domain: media_player
quick_select:
name: Quick Select Option
description: The Quick Select option to trigger (1 to 4).
selector:
number:
min: 1
max: 4
mode: slider
source_url: https://gist.github.com/dotWee/147366eb064bdf9934f4e2531140c1ad
mode: single
trigger:
platform: state
entity_id: !input denon_entity
action:
- service: denonavr.get_command
data:
entity_id: !input denon_entity
command: >-
{% if is_number(quick_select) %}
/goform/formiPhoneAppDirect.xml?MSQUICK{{ quick_select | int }}
{% endif %}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment