foxriver76 / ioBroker.denon

Denon AVR adapter for ioBroker
MIT License
19 stars 9 forks source link

Some information about state? #18

Closed GermanBluefox closed 6 years ago

GermanBluefox commented 6 years ago

The only thing what I miss now to show such a widget: image is playerState. Where can read about it?

foxriver76 commented 6 years ago

With Player state you still mean the detection of isPaused?

foxriver76 commented 6 years ago

in AVR Protocol on page 8 at the bottom you will find the desired commands. The behavior for the most commands is that you get some kind of acknowledge, but the media controls are declared as command only, which means that you won't get a response as far as I know (otherwise I would have implemented this).

You can check by yourself, set the Adapter to Debug, press the button for pause, and look for an incoming message which confirms it. I tried it just now, but cant play music on it right now, because I only have access via VPN. But I'm like 99% sure that you wont get an acknowledge.

When you are using HEOS, there exists a completly different protocol, which maybe enables this. But this shouldn't be a part of this adapter, because HEOS is not only AVR releated.

GermanBluefox commented 6 years ago

Yes it is about isPlaying/isPaused. Thank you. Will check it. I don't know If I have a HEOS.. :)

GermanBluefox commented 6 years ago

I don'have heos. May be it is possible via NSAx/Ex commands to read the display and guess...

foxriver76 commented 6 years ago

The results of NSE are contained in the states display.displayContentX. Maybe it is possible to make a suggestion, because when you are playing music with every polling the progress time should change in the related displayContent state.

But its very fuzzy and newer AVR's which support HEOS unfortunately don't receive any information via NSE. So I don't think it should be a function of the adapter to guess the isPaused state.

Whats your opinion on this?

GermanBluefox commented 6 years ago

Ok... I think I should give up and just accept it is not a player.... Thank you :)

пт, 27 июл. 2018 г. в 21:29, Max Hauser notifications@github.com:

The results of NSE are contained in the states display.displayContentX. Maybe it is possible to make a suggestion, because when you are playing music with every polling the progress time should change in the related displayContent state.

But its very fuzzy and newer AVR's which support HEOS unfortunately don't receive any information via NSE. So I don't think it should be a function of the adapter to guess the isPaused state.

Whats your opinion on this?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/foxriver76/ioBroker.denon/issues/18#issuecomment-408517103, or mute the thread https://github.com/notifications/unsubscribe-auth/AEXqgORKHNZZhU4Kk4xJ9fqNP1KX0v2lks5uK2oPgaJpZM4Vi-tT .

foxriver76 commented 6 years ago

This wasn't a thoughtful comment of mine. :man_facepalming: