RogerSelwyn / Home_Assistant_SkyQ_MediaPlayer

Home Assistant SkyQ Media player component
MIT License
104 stars 16 forks source link

Error during Volume change #169

Closed patricknitsch closed 6 months ago

patricknitsch commented 6 months ago

Describe the bug

If I press the Buttons to change the Volume I get an error: maximum recursion depth exceeded. It's not possible to change it.

To reproduce

1) Open the Media Card 2) Press Volume + or Volume -

Expected bahavior

Support to solve the problem

What version of SkyQ has the issue?

2.11.7

What was the last working version of Sky Q Integration?

No response

What version of Home Assistant Core has the issue?

core-2024.4.4

Configuration type

UI

Configuration UI

{
  "home_assistant": {
    "installation_type": "Home Assistant OS",
    "version": "2024.4.4",
    "dev": false,
    "hassio": true,
    "virtualenv": false,
    "python_version": "3.12.2",
    "docker": true,
    "arch": "x86_64",
    "timezone": "Europe/Berlin",
    "os_name": "Linux",
    "os_version": "6.6.25-haos",
    "supervisor": "2024.04.0",
    "host_os": "Home Assistant OS 12.2",
    "docker_version": "25.0.5",
    "chassis": "vm",
    "run_as_root": true
  },
  "custom_components": {
    "kostal_piko": {
      "version": "1.10",
      "requirements": []
    },
    "skyq": {
      "version": "v2.11.7",
      "requirements": [
        "pyskyqremote==0.3.26"
      ]
    },
    "frigate": {
      "version": "5.1.0",
      "requirements": [
        "pytz"
      ]
    },
    "climate_group": {
      "version": "1.0.5",
      "requirements": []
    },
    "scheduler": {
      "version": "v0.0.0",
      "requirements": []
    },
    "proxmoxve": {
      "version": "3.4.1",
      "requirements": [
        "proxmoxer==2.0.1"
      ]
    },
    "tapo_control": {
      "version": "5.4.13",
      "requirements": [
        "pytapo==3.3.19"
      ]
    },
    "browser_mod": {
      "version": "2.3.0",
      "requirements": []
    },
    "miele": {
      "version": "2024.3.0",
      "requirements": [
        "flatdict==4.0.1",
        "pymiele==0.1.7"
      ]
    },
    "senec": {
      "version": "2024.3.0",
      "requirements": [
        "xmltodict>=0.12.0",
        "packaging>=21.0",
        "python-dateutil>=2.8.0"
      ]
    },
    "ui_lovelace_minimalist": {
      "version": "v1.3.9",
      "requirements": [
        "aiofiles==0.8.0",
        "aiogithubapi>=22.2.4"
      ]
    },
    "hacs": {
      "version": "1.34.0",
      "requirements": [
        "aiogithubapi>=22.10.1"
      ]
    },
    "dwains_dashboard": {
      "version": "3.7.0",
      "requirements": []
    }
  },
  "integration_manifest": {
    "domain": "skyq",
    "name": "Sky Q",
    "codeowners": [
      "@rogerselwyn"
    ],
    "config_flow": true,
    "dependencies": [
      "ssdp"
    ],
    "documentation": "https://github.com/RogerSelwyn/Home_Assistant_SkyQ_MediaPlayer",
    "integration_type": "device",
    "iot_class": "local_polling",
    "issue_tracker": "https://github.com/RogerSelwyn/Home_Assistant_SkyQ_MediaPlayer/issues",
    "quality_scale": "silver",
    "requirements": [
      "pyskyqremote==0.3.26"
    ],
    "ssdp": [
      {
        "nt": "urn:schemas-nds-com:device:GatewaySkyControl:2"
      },
      {
        "nt": "urn:schemas-nds-com:device:MRSkyControl:2"
      }
    ],
    "version": "v2.11.7",
    "is_built_in": false
  },
  "data": {
    "config_entry_data": {
      "host": "sky.receiver",
      "name": "Sky Q"
    },
    "config_entry_options": {
      "output_programme_image": true,
      "live_tv": true,
      "get_live_record": true,
      "generate_switches_for_channels": true,
      "volume_entity": "media_player.sky_q",
      "advanced_options": true,
      "channel_sources": [
        "Das Erste HD",
        "ZDF HD",
        "3sat HD",
        "arte HD",
        "DMAX HD",
        "PHOENIX HD",
        "sixx HD",
        "TLC HD",
        "Das Erste",
        "ZDF",
        "RTL",
        "VOX",
        "SAT.1",
        "ProSieben",
        "kabel eins",
        "zdf_neo",
        "RTLZWEI",
        "RTLup",
        "SAT.1 Gold",
        "NITRO",
        "3sat",
        "DMAX",
        "kabel eins Doku",
        "sixx",
        "ProSieben MAXX",
        "TLC",
        "Comedy Central",
        "HOME & GARDEN TV",
        "Sky Sport Bundesliga 1 HD",
        "Sky Sport Bundesliga 2 HD",
        "Sky Sport Bundesliga 3 HD",
        "Sky Sport Bundesliga 4 HD",
        "Sky Sport Bundesliga 5 HD",
        "Sky Sport Bundesliga 6 HD",
        "Sky Sport Bundesliga 7 HD",
        "Sky Sport Bundesliga 8 HD",
        "Sky Sport Bundesliga 9 HD",
        "Sky Sport Bundesliga 10 HD",
        "Sky Sport 1 HD",
        "Sky Sport 2 HD",
        "Sky Sport 3 HD",
        "Sky Sport 4 HD",
        "Sky Sport 5 HD",
        "Sky Sport 6 HD",
        "Sky Sport 7 HD",
        "Sky Sport 8 HD",
        "Sky Sport 9 HD",
        "Sky Sport 10 HD",
        "TELE 5",
        "Super RTL",
        "KiKA",
        "WELT HD",
        "ntv HD",
        "WELT",
        "ntv",
        "N24 Doku"
      ],
      "tv_device_class": true,
      "country": "DEU",
      "epg_cache_len": 20,
      "add_backup": false
    },
    "device_information": {
      "ASVersion": "Q260.000.05.00-AS_31.0.0",
      "IPAddress": "192.168.90.142",
      "countryCode": "DEU",
      "used_country_code": "DEU",
      "hardwareModel": "ESd-160c",
      "hardwareName": "Amidala",
      "deviceType": "GATEWAYSTB",
      "gateway": true,
      "gatewayIPAddress": "not MR",
      "manufacturer": "HUMAX",
      "modelNumber": "Q260.000.05.00L (5sdpqlw)",
      "serialNumber": "11154368445557",
      "versionNumber": "6763A5",
      "bouquet": 2,
      "subbouquet": 0,
      "wakeReason": "ECO",
      "systemUptime": 56382,
      "hdrCapable": true,
      "uhdCapable": true,
      "presentLocalTimeOffset": 7200,
      "utc": 1714502425,
      "futureLocalTimeOffset": 3600,
      "futureTransitionUtc": 1729990800
    }
  }
}

Configuration YAML

No response

Anything in the logs that might be useful for us?

logfile.json

Additional information

No response

RogerSelwyn commented 6 months ago

The Sky q box has no volume capability (speakers) itself, so the volume_entity config setting should be set to a media_player with volume controls. As you have it configured at the moment, you have SkyQ controlling the volume of SkyQ which is trying to control the volume of SkyQ, etc, etc. Hence the recursion.