Closed eyannakis closed 5 years ago
It looks like the issue is in the player/get_now_playing_media
command. type
describes what is playing and should always be populated according to the spec (even if nothing is playing -- it should be blank). I bet if you start playing music or change the source to something else on HS_Office
, this problem goes away.
While the problem is occurring, can you telnet this command paste the output?
heos://player/get_now_playing_media?pid=-1872939096
As requested, this is the telnet output with the condition present.
heos://player/get_now_playing_media?pid=-1872939096
{"heos": {"command": "player/get_now_playing_media", "result": "success", "message": "pid=-1872939096"}, "payload": {"type": "station", "song": "Chromecast", "station": "Chromecast", "album": "", "artist": "", "image_url": "", "album_id": "inputs/", "mid": "inputs/optical_in_1", "qid": 1, "sid": 1027, "gid": 2134769675}, "options": []}
Following your intuition, I'm currently playing music on HS_Office and ran the telnet command again, the output is know:
heos://player/get_now_playing_media?pid=-1872939096
{"heos": {"command": "player/get_now_playing_media", "result": "success", "message": "pid=-1872939096"}, "payload": {"type": "station", "song": "1999 ft. Troye Sivan", "station": "95.9 Virgin Radio", "album": "", "artist": "Charli XCX", "image_url": "http://cdn-profiles.tunein.com/s31213/images/logoq.png?t=155377", "album_id": "s31213", "mid": "http://playerservices.streamtheworld.com/pls/CJFMFMAAC.pls?DIST=TuneIn&TGT=TuneIn&maxServers=2&tdtok=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiIsImtpZCI6ImZTeXA4In0.eyJpc3MiOiJ0aXNydiIsInN1YiI6IjIxMDY0IiwiaWF0IjoxNTU2ODU0OTY3LCJ0ZC1yZWciOmZhbHNlfQ.Rw-vuRz_IuVk7Cw", "qid": 1, "sid": 3}, "options": [{"play": [{"id": 19, "name": "Add to HEOS Favorites"}]}]}
Hmm, there's nothing wrong with the payloads you posted. Are you still having the issue in HA? Perhaps I grabbed the wrong player ID...
Can you run it for the other player IDs and post if one doesn't have "type":
in the response?
Sorry it may be a tad tedious... I want to make sure we find the payload that's being returned without type
because there may be other missing elements I need to account for.
No worries... Thank you for getting this component out!
So I think we're on to something here... Out of the 10 players there is 1 that doesn't have a "type:"
in the response. Is the HS_FamilyRoom.
This particular zone is running out from HEOS Super Link, connected to the inputs of a Yamaha receiver. Now, because the HEOS app cannot control the Yamaha receiver (like other Denon receivers) it might be acting weird.
I will check on my end if I can change the configuration on that specific player, in the meantime, here is the telnet output
heos://player/get_now_playing_media?pid=-1200888214
{"heos": {"command": "player/get_now_playing_media", "result": "success", "message": "pid=-1200888214"}, "payload": {}, "options": []}
Thanks - it's odd the entire payload is empty "payload": {}
. I will update the library to handle this case, but then you won't see the now playing information. I have also asked Denon to take a look at this issue.
Home Assistant release with the issue: 0.92.2
Last working Home Assistant release (if known): Got HEOS to work with 0.92.1, but it stopped working overnight. Updated to 0.92.2 but the problems persists.
Operating environment (Hass.io/Docker/Windows/etc.): Ubuntu with Hass.io
Component/platform: HEOS
Description of problem: Configured HEOS component yesterday using (Configuration --> Integrations) . It worked! All of my Heos components showed up (10 total). Not sure what happened overnight but all my heos media_player entities disappeared. So I decided to remove the components created by "integrations" add my component as a new entry in configuration.yaml.
Problem-relevant
configuration.yaml
entries and (fill out even if it seems unimportant):Traceback (if applicable):
Additional information: HEOS firmware on all devices is the latest 1.505.140
Telnet info
Adding all the HEOS debug logs