cinzas / homeassistant-enigma-player

This is a custom component for the media_player and notify platforms of Home Assistant. Integrates with enigma2 images running OpenWebIf
56 stars 23 forks source link

Feature Request: "Paused" Status in Conditions #13

Closed LOGOLEX closed 2 weeks ago

LOGOLEX commented 2 weeks ago

I'm searching for a Way in Home Assistant to do Automations when th Plaer is paused, so i can make a Light brighter. There is no condition that changes when i press the Pause-Button.

Thanks in advance

cinzas commented 2 weeks ago

Hi @LOGOLEX .

Unfortunately I think that won't be possible.

I tried to put a channel in pause and this is the status-info I get from enigma

{
 "volume": 100,
 "muted": false,
 "transcoding": true,
 "currservice_filename": "",
 "currservice_id": 35074,
 "currservice_name": "SIC Not\u00edcias Domingo",
 "currservice_serviceref": "1:0:1:326:2F:36:FFFF0000:0:0:0:",
 "currservice_begin": "16:55",
 "currservice_begin_timestamp": 1727020500,
 "currservice_end": "19:52",
 "currservice_end_timestamp": 1727031120,
 "currservice_description": "Ano: 2024  Informa\u00e7\u00e3o atualizada, an\u00e1lise e coment\u00e1rio a todas as horas.",
 "currservice_station": "SIC Not\u00edcias HD",
 "currservice_fulldescription": "SIC Not\u00edcias Domingo\n16:55 - 19:52\n\nAno: 2024 \nInforma\u00e7\u00e3o atualizada, an\u00e1lise e coment\u00e1rio a todas as horas.",
 "inStandby": "false",
 "isRecording": "false",
 "Streaming_list": "",
 "isStreaming": "false"
}

As you see there is nothing saying the device is in pause mode :(

I tried even further, by going to something I have recorded, from the media player, and play it, and then put on pause

{
 "volume": 100,
 "muted": false,
 "transcoding": true,
 "currservice_filename": "/media/hdd/movie/20210523 1501 - TVCine TOP HD - O Caso DeLorean.ts",
 "currservice_id": 40155,
 "currservice_name": "O Caso DeLorean",
 "currservice_serviceref": "1:0:0:0:0:0:0:0:0:0:/media/hdd/movie/20210523 1501 - TVCine TOP HD - O Caso DeLorean.ts",
 "currservice_begin": "13:12",
 "currservice_begin_timestamp": 1621771920,
 "currservice_end": "15:03",
 "currservice_end_timestamp": 1621778580,
 "currservice_description": "Ano: 2018 De: Nick Hamm Com: Jason Sudeikis, Judy Greer, Lee Pace  IMDB\u00ae 6,4/10 A hist\u00f3ria real do engenheiro...",
 "currservice_station": "O Caso DeLorean",
 "currservice_fulldescription": "O Caso DeLorean\n13:12 - 15:03\n\nAno: 2018 De: Nick Hamm Com: Jason Sudeikis, Judy Greer, Lee Pace \nIMDB\u00ae 6,4/10\nA hist\u00f3ria real do engenheiro mec\u00e2nico John DeLorean, respons\u00e1vel pelo ic\u00f3nico DeLorean DMC-12, que para salvar a empresa se envolve em tr\u00e1fico de coca\u00edna...",
 "inStandby": "false",
 "isRecording": "false",
 "Streaming_list": "",
 "isStreaming": "false"
}

And again, still not information about the player being paused :(

cinzas commented 2 weeks ago

I will re-open it if I find a way to check the status of what is playing