Hi, tks for the answer, no I don’t have that.
I’m not exactly sure then
Is everything broke? I mean, have you tried playlist and stations?
May I see your gmusic_config.yaml
as you have it configured.
Can you try this:
- delete directory:
custom_components/gmusic_player/__pycache__
- delete file:
custom_components/gmusic_player/media_player.py
- reinstall
custom_components/gmusic_player/media_player.py
- restart homeassistant
Tks here goes my config, I replaced my user and pwd obviously:
## Google Music Media Player
## Use this 'package.yaml' file to configure "gmusic_player"
media_player:
- platform: gmusic_player
username: "myuser"
password: "mypwd"
device_id: "c06474b3ae52d68191e3fbe08a559a6b8898b56f647a38200556cd89be29f647"
input_select:
gmusic_player_speakers:
name: Speakers
icon: mdi:speaker
## Add your media_players below
options: # Example media_players
- Grupo_Toda_la_casa
- Grupo_Sin_Cuarto
- Grupo_Sala_y_pérgola
- Grupo_Jardín_y_Pérgola
- Bocina_de_la_sala
- Bocina_de_Samsung
- Video_pérgola
I’ll try the reinstall later on and let you know.
Do you have a different device id to try.
device_id: "c06474b3ae52d68191e3fbe08a559a6b8898b56f647a38200556cd89be29f647"
This might need android device id. It should be something shorter like this.
device_id: "21150e2000000456"
Quick question which feels a little stupid. What media players are valid targets
Here is my config:
## Google Music Media Player
## Use this 'package.yaml' file to configure "gmusic_player"
media_player:
- platform: gmusic_player
username: !secret gmusic_username
password: !secret gmusic_password
device_id: !secret gmusic_device_id
input_select:
gmusic_player_speakers:
name: Speakers
icon: mdi:speaker
## Add your media_players below
options: # Example media_players
- media_player.dining_room_speaker
I’m getting this from my google home target using the entity id above
Log Details (ERROR)
Wed Oct 09 2019 15:02:13 GMT-0500 (Central Daylight Time)
(media_player.dining_room_speaker) is not a valid media player.
edit: by the way nice job on this
edit2: NVM figured it out remove media_player. from the entity id
That was it!!! Thank you very much!!!
Hello, I a hoping that someone can help me out here. I have installed the component through hacs, followed all the instructions and the component is failing to load. There are a couple of entries in the log:
Fri Oct 11 2019 21:10:26 GMT-0600 (Mountain Daylight Time)
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/gmusic_player/media_player.py”, line 355, in _update_sources
self._update_playlists()
File “/config/custom_components/gmusic_player/media_player.py”, line 377, in _update_playlists
self.hass.services.call(input_select.DOMAIN, input_select.SERVICE_SET_OPTIONS, data)
File “/usr/src/homeassistant/homeassistant/core.py”, line 1171, in call
self._hass.loop,
File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 428, in result
return self.__get_result()
File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
raise self._exception
File “/usr/src/homeassistant/homeassistant/core.py”, line 1211, in async_call
processed_data = handler.schema(service_data)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 272, in call
return self._compiled([], data)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: length of value must be at least 1 for dictionary value @ data[‘options’]
And
Fri Oct 11 2019 21:10:13 GMT-0600 (Mountain Daylight Time)
Setup failed for gmusic_player: No setup function defined.
Anyone have any ideas?
Currently running the latest version 0.100
maybe try installing it manually by downloading from git put the appropriate files in custom_components and packages and make sure you edit the files with the proper email and password. I actually went this route after i used hacs. I had issues initially but i don’t think it was bc i used hacs rather i didnt configure it properly
I suspect you are missing gmusic_player.yaml
I can play my playlists but not stations. I tried the edit in one of the previous posts to allow stations not in your library to be shown but that also has not helped.
I get.
failed to get URL for track: (Tiqjltan2c3qplewwvcwcu3ig2y)
Connection lost. Reconnecting…
Nope, I have both of those set up, and input my user name, app password, device id,. I actually got the device id from the error log, after a successful login. I will try without have, and see if I have more success.
I have tried to reinstall multiple times, and still get errors. Playlist and station lists are blank. I am not sure what I am doing wrong. Packages are in correct folder, and it appears to be logging in, as it will return device_ids. I am using an app password for login. and have even rolled back to HA version 0.99.2.
Log Details (ERROR)
Mon Oct 14 2019 20:55:07 GMT-0600 (Mountain Daylight Time)
Error doing job: Future exception was never retrieved
Traceback (most recent call last):
File “/usr/local/lib/python3.7/concurrent/futures/thread.py”, line 57, in run
result = self.fn(*self.args, **self.kwargs)
File “/config/custom_components/gmusic_player/media_player.py”, line 355, in _update_sources
self._update_playlists()
File “/config/custom_components/gmusic_player/media_player.py”, line 377, in _update_playlists
self.hass.services.call(input_select.DOMAIN, input_select.SERVICE_SET_OPTIONS, data)
File “/usr/src/homeassistant/homeassistant/core.py”, line 1172, in call
self._hass.loop,
File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 435, in result
return self.__get_result()
File “/usr/local/lib/python3.7/concurrent/futures/_base.py”, line 384, in __get_result
raise self._exception
File “/usr/src/homeassistant/homeassistant/core.py”, line 1212, in async_call
processed_data = handler.schema(service_data)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 272, in call
return self._compiled([], data)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 594, in validate_dict
return base_validate(path, iteritems(data), out)
File “/usr/local/lib/python3.7/site-packages/voluptuous/schema_builder.py”, line 432, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: length of value must be at least 1 for dictionary value @ data[‘options’].
Sorry your having so much trouble with this. Then only thing I can see different is your using python 3.7. I’m not sure if that matters or not. (I use Python 3.6). I’m out of town for work until Saturday so I want have much time this week but Ill try to spin up HA with python 3.7 and see if I can reproduce your errors.
Have you added a device id to ‘gmusic_ config.yaml’
I ask because you should only see device id in the log if
- You have not entered a device id
- You have entered an incorrect device id
Yes, after receiving the error, I copied the device_id from the error log, and placed it in the file. After doing that that error no longer was in the log. Just the one posted above. I actually tried each device_id. Just to make sure.
## Google Music Media Player
## Use this 'package.yaml' file to configure "gmusic_player"
media_player:
- platform: gmusic_player
username: myusername
password: mypassword
device_id: 3b34bcdc096104a9
input_select:
gmusic_player_speakers:
name: Speakers
icon: mdi:speaker
## Add your media_players below
options: # Example media_players
- living_room_speaker_mini
- living_room_speaker
Another note. It is actually creating the entities:
media_player.gmusic_player
sensor.gmusic_receiver
Sorry, one more post. HA is also creating the .gmusic_authtoken. Which does seem to be updating each time. I reboot.
Anybody have any thoughts on why lists work but not stations work for me. I’m using the shorter Android Google device ID?
@trevor1 Hopefully this weekend I can try installing with python 3.7
@dasbooter Have you added any stations to your library? Because the list of stations was over 150 entries I made it so this will only add stations you have added to your library. I will soon be adding an option to the configuration to remove this limitation but for now try adding a couple stations to your library
Yes thanks for asking I’ve added a few for testing and although they show none of them plays.
always getting
Failed to get URL for track: (Teakbbutzvyc7tzli4moenexcda)
playlists play though