Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Denon AVR Source Select dropdown cleared on save #104

Closed
1 task done
geransmith opened this issue Oct 3, 2023 · 6 comments
Closed
1 task done

[bug] Denon AVR Source Select dropdown cleared on save #104

geransmith opened this issue Oct 3, 2023 · 6 comments
Assignees
Labels
bug Something isn't working web configurator Web configurator related issue

Comments

@geransmith
Copy link

Is there an existing issue for this?

  • I have searched the existing issues

Description

With the Denon AVR-X3700H configured inside Home Assistant, when trying to configure macros or activities, if I add the "Input Source" command and select a source in the dropdown, the value I choose is not persisted after leaving the page. This leads to an error executing the macro or activity.

How to Reproduce

Prerequisites: Have Home Assistant configured with the Denon addon and multiple sources on the AVR setup.

  1. In the Web Configurator, select the option to add a Macro
  2. Add the Denon Receiver entity from Home Assistant
  3. Select the command "Input Source"
  4. Choose a source in the dropdown
  5. Back out of the macro using the UIs back arrow
  6. Attempt to run the Macro

Expected behavior

The source should persist and be saved.

System version

1.3.3

What part of the system affected by the problem?

Integration

Additional context

No response

@geransmith geransmith added the bug Something isn't working label Oct 3, 2023
@github-actions github-actions bot added the integration Integration driver related issue label Oct 3, 2023
@splattner
Copy link

splattner commented Oct 4, 2023

I think its not only with DenonAVR/homeassistant but all Select Source Commands? Have the same issue with my own implemented media player for denon

When I look on the payload made by the web-configurator I don't see the source parameter:

{
  "name": {
    "de": "Watch TV",
    "en": "Watch TV"
  },
  "icon": "uc:activity",
  "description": {},
  "options": {
    "entity_ids": [
      "denonavr.main.mediaplayer",
      "uc.main.9948bdad-ab48-4908-a118-2b154e6113f9",
      "uc_androidtv_driver.main.D4F8292E8A2C"
    ],
    "sequences": {
      "on": [
        {
          "command": {
            "cmd_id": "POWER_ON",
            "entity_id": "uc.main.9948bdad-ab48-4908-a118-2b154e6113f9"
          },
          "type": "command"
        },
        {
          "command": {
            "cmd_id": "media_player.on",
            "entity_id": "denonavr.main.mediaplayer",
            "params": {}
          },
          "type": "command"
        },
        {
          "command": {
            "cmd_id": "media_player.on",
            "entity_id": "uc_androidtv_driver.main.D4F8292E8A2C",
            "params": {}
          },
          "type": "command"
        },
        {
          "command": {
            "cmd_id": "media_player.select_source",
            "entity_id": "denonavr.main.mediaplayer",
            "params": {}
          },
          "type": "command"
        }
      ],
      "off": [
        {
          "command": {
            "cmd_id": "POWER_OFF",
            "entity_id": "uc.main.9948bdad-ab48-4908-a118-2b154e6113f9"
          },
          "type": "command"
        },
        {
          "command": {
            "cmd_id": "media_player.off",
            "entity_id": "denonavr.main.mediaplayer",
            "params": {}
          },
          "type": "command"
        },
        {
          "command": {
            "cmd_id": "media_player.off",
            "entity_id": "uc_androidtv_driver.main.D4F8292E8A2C",
            "params": {}
          },
          "type": "command"
        }
      ]
    },
    "prevent_sleep": true
  }
}

@Tim-GitHub
Copy link

Tim-GitHub commented Oct 5, 2023

I am seeing this same behavior with my Onkyo AVR and my LG TV, which are both configured in Home Assistant (in my case the command is labled "Input source" rather than "Select source" but I assume they are the same thing). Adding via Activity or Macro the input is not saved. If I save it and close the Activity (hoping it is saved) and attempt to run the Activity via the Remote Two, I get a red error "BadRequest Invalid or missing params.source attri...". Also when adding a button for the Activity UI, while is does save the input name, it does not seem to work either. (There is no drop down, I had to free type the input name).

Also, maybe consider renaming this issue to "Select source dropdown cleared on save" since it seems to impact more than just Denon?

@zehnm zehnm self-assigned this Oct 5, 2023
@zehnm
Copy link

zehnm commented Oct 5, 2023

I'm on it. Got the same equipment, should be easy to reproduce and fix it.

@Seexelas
Copy link

Seexelas commented Oct 6, 2023

I have the same issue, with my Zidoo UHD5k, Integra AVR 5.4, Apple Tv4k Gen3 and Panasonic GZ2000. The Apple Tv is in integration and the rest via Home Assistant.

What is weird is that existing Activity can be modified without issue, only the new or duplicate one.

@zehnm
Copy link

zehnm commented Oct 6, 2023

Confirmed: the web-configurator doesn't set the selected item into the command.params.source field when updating the activity after selection.

It's a generic error for all media player entities with input source feature.
I've also noticed, that the dropdown selection is only shown in the activity sequence and not in the UI editor. Here it's a free text input field:

image

I'll add this to our backlog as well.

@zehnm zehnm added web configurator Web configurator related issue and removed integration Integration driver related issue labels Oct 6, 2023
@zehnm zehnm added this to the Roadmap October 2023 milestone Oct 16, 2023
@zehnm
Copy link

zehnm commented Oct 16, 2023

Fixed in 1.4.2
Please note that the input source dropdown box is only shown in the activity sequences. It will be added to the UI component and button mapping editor in a future release.

@zehnm zehnm closed this as completed Oct 16, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working web configurator Web configurator related issue
Projects
Status: Done
Development

No branches or pull requests

5 participants