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

Player status #13

Open
JohannCR opened this issue Dec 30, 2020 · 6 comments
Open

Player status #13

JohannCR opened this issue Dec 30, 2020 · 6 comments

Comments

@JohannCR
Copy link

JohannCR commented Dec 30, 2020

Hi !

Awesome, works very well. You deserve a thank you ! ^^
Two suggestions :

  • clarify a little the folder structure where to put the js file because I've had to try several times until I found the right one.
  • Is it possible to get a few sensors ?
    Like is the player on/off, is the tv on, which channel is showing, etc. Player on/off would be the most useful I think.

Cheers and thanks again

@JohannCR
Copy link
Author

JohannCR commented Jan 1, 2021

Also the code "back" for the back button doesn't seem to work... Is anyone else experiencing it too ?

Is there any way to pause for a second between commands ?
Thanks !

@JohannCR
Copy link
Author

JohannCR commented Jan 10, 2021

It appears some buttons work differently than those of the remote. For example :

  • on netflix and deezer, the "back" command goes back from internal menus but does not go back to the home page like the remote does.
  • the pause command works on deezer, but not on youtube.
    Are there particular reasons for this ?
    Thanks

@JohannCR
Copy link
Author

JohannCR commented Jan 10, 2021

Also, about the question of pausing between commands (got some weird behaviour when biulding long multiple commands) I found a solution by editing the init file that I thought worth sharing if someone needs it:

`async def async_freebox_player_remote(call):
        """Handle old player control (remote emulation)"""
        code_list = call.data.get('code')
        code_array = code_list.split(',')
        """Handle multiple codes, separated by comma"""
        for code in code_array:
            if code == ".":
                time.sleep(1)
            elif code != 'slow': 
                requests.get(player_path+code, verify=False)
                if code_array[0] == 'slow':
                    time.sleep(0.5)`

I use "." as a command to pause for a second at one point, and the command "slow" as first command in a list in order to pause systematically half a second between each code.
I'm open to suggestions if there is a better way to do it ^^

@totoantibes
Copy link

getting a sensor on status would really help build automations....

@Pouzor
Copy link
Owner

Pouzor commented Mar 18, 2021

Hi
I'm getting back on this, thx for the review, I'm gonna check how I can get info about status of the player.

@zobi
Copy link

zobi commented Sep 4, 2023

Hello, thanks for this it work's well ;)
I'm very interested to get the status of the player too ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants