home-assistant / core

:house_with_garden: Open source home automation that puts local control and privacy first.
https://www.home-assistant.io
Apache License 2.0
70.08k stars 29.15k forks source link

Enigma2 (Openwebif) after the automatic migration it is not possible to change the channel in the media player card #121530

Closed Joao-Sousa-71 closed 2 weeks ago

Joao-Sousa-71 commented 2 weeks ago

The problem

I had this in the configuration.yaml working for a couple of years: `

What version of Home Assistant Core has the issue?

2024.7.1

What was the last working version of Home Assistant Core?

2024.4.4

What type of installation are you running?

Home Assistant Container

Integration causing the issue

Enigma2

Link to integration documentation on our website

https://www.home-assistant.io/integrations/enigma2

Diagnostics information

No response

Example YAML snippet

No response

Anything in the logs that might be useful for us?

No response

Additional information

No response

home-assistant[bot] commented 2 weeks ago

Hey there @autinerd, mind taking a look at this issue as it has been labeled with an integration (enigma2) you are listed as a code owner for? Thanks!

Code owner commands Code owners of `enigma2` can trigger bot actions by commenting: - `@home-assistant close` Closes the issue. - `@home-assistant rename Awesome new title` Renames the issue. - `@home-assistant reopen` Reopen the issue. - `@home-assistant unassign enigma2` Removes the current integration label and assignees on the issue, add the integration domain after the command. - `@home-assistant add-label needs-more-information` Add a label (needs-more-information, problem in dependency, problem in custom component) to the issue. - `@home-assistant remove-label needs-more-information` Remove a label (needs-more-information, problem in dependency, problem in custom component) on the issue.

(message by CodeOwnersMention)


enigma2 documentation enigma2 source (message by IssueLinks)

autinerd commented 2 weeks ago

Hello, it may be possible that the Bouquet didn't migrate because you specified it as the service reference.

You can fix it by going to the integration settings (https://my.home-assistant.io/redirect/integration/?domain=enigma2), click on Configure at the device and select the bouquet from the option "Bouquet to use as media source".

Joao-Sousa-71 commented 2 weeks ago

Hello, it may be possible that the Bouquet didn't migrate because you specified it as the service reference.

You can fix it by going to the integration settings (https://my.home-assistant.io/redirect/integration/?domain=enigma2), click on Configure at the device and select the bouquet from the option "Bouquet to use as media source".

I did that, and also have deleted the configuration an create from scratch and still the option does not appear in the card:

image

image

Do you need aditional info?

autinerd commented 2 weeks ago

Okay, that's interesting.

Can you check if the entity in the Developer tools -> States (https://my.home-assistant.io/redirect/developer_states/) has the attribute "source_list"?

Then please open the url http://<address of your STB>/api/bouquets in your browser, which should give you all the bouquets.

Then open the url http://<address of your STB>/api/epgnow?bRef=1:7:1:0:0:0:0:0:0:0:FROM%20BOUQUET%20"userbouquet.favourites.tv"%20ORDER%20BY%20bouquet with userbouquet.favourites.tv replaced by the bouquet file of your wanted bouquet. There you should see something like this:

{
 "events": [
  {
   "id": 49698,
   "begin_timestamp": 1720548900,
   "duration_sec": 5400,
   "title": "Donna Leon - Sch\u00f6ner Schein",
   "shortdesc": "Fernsehfilm Deutschland 2012",
   "longdesc": "....",
   "sref": "1:0:19:283D:3FB:1:C00000:0:0:0:",
   "sname": "Das Erste HD",
   "now_timestamp": 1720552387,
   "remaining": 1913,
   "genre": "Film/Drama: Film/Drama (allgemein)",
   "genreid": 16
  },
  // Truncated here ...
}
Joao-Sousa-71 commented 2 weeks ago

Can you check if the entity in the Developer tools -> States (https://my.home-assistant.io/redirect/developer_states/) has the attribute "source_list"?

It does not: image

Then please open the url http://<address of your STB>/api/bouquets in your browser, which should give you all the bouquets.

It does.

Then open the url http://<address of your STB>/api/epgnow?bRef=1:7:1:0:0:0:0:0:0:0:FROM%20BOUQUET%20"userbouquet.favourites.tv"%20ORDER%20BY%20bouquet with userbouquet.favourites.tv replaced by the bouquet file of your wanted bouquet. There you should see something like this:

It does as well:

http://192.168.1.114/api/epgnow?bRef=1:7:1:0:0:0:0:0:0:0:FROM%20BOUQUET%20%22userbouquet.favourites.tv%22%20ORDER%20BY%20bouquet

{
 "events": [
  {
   "id": 10118,
   "begin_timestamp": 1720555200,
   "duration_sec": 14400,
   "title": "CUBAVISION",
   "shortdesc": "Programa\u00e7\u00e3o que engloba v\u00e1rios temas da cultura, geografia, tradi\u00e7\u00e3o e atualidade de Cuba.",
   "longdesc": "CUBAVISION\u00a0\n",
   "sref": "1:0:1:834:6:6:CE40000:0:0:0:",
   "sname": "CUBAVISION INTERNACIONAL",
   "now_timestamp": 1720560995,
   "remaining": 8605,
   "genre": "",
   "genreid": 0
  },
  {
   "id": null,
   "begin_timestamp": 0,
   "duration_sec": 0,
   "title": "N/A",
   "shortdesc": "",
   "longdesc": "",
   "sref": "1:0:1:9C4:6:6:CE40000:0:0:0:",
   "sname": "TSA-Record TV HD",
   "now_timestamp": 0,
   "remaining": 0,
   "genre": "",
   "genreid": 0
  }
 ],
 "isplayable": [],
 "result": true
}
autinerd commented 2 weeks ago

Thanks! While checking, I encountered the problem on my side as well, I will look into it and write a fix for it.

Joao-Sousa-71 commented 2 weeks ago

Thanks @autinerd for you attention on this. There is another minor issue related with the deepstandby and logging messages every 10 seconds (this was fixed as well a few months ago in the prior version) but I will open a new issue for that.