Thanks, to be honest I did think the problem would be me Iām just not sure what has caused it, was working fine until I did some router work and changed some ipās etc and now its not working
Seems as though it cannot connect to the external network but everything else works fine including all nest and other google integrations so really donāt know what went wrong here
I hear the āconnectedā sound on the Mini but then this error. This error happens with a playlist created by myself, but with a Spotify playlist (Release radar etc.), it works ! Same behaviour with the Spotify playlist card.
Iāve also tested with the usual uri : spotify:playlist:2YtF5Pi7JG5hjoOt0iBUpy
Maybe Iām missing somethingā¦ Thanks for your help !
Apologize for this question, but i havent been able to figure it out: im creating a scene and want to play a playlist on a speaker. But i can only choose 1 device in the source, despite having multiple google home devices in my home and seeing them in HA.
It is possible to play latest podcast from automation/script with Spotcast on a given device? It would be great to add in the automations for the morning.
Great component that has worked well for me. However for some reason in a new script, it does start the device to play music with the selected uri, but it returns a state for the media_player as āunknownā when it has been off for an extended period (in this case the night). Which means the automation for turning on the amplifier that looks for āplayingā doesnāt work and neither does the conditional player I have in the frontend. If I run the script again, some time later it does work, if I run it again immediately it usually still doesnāt. I may be able to solve it by using the āunknownā state, but I would rather have it start up with the correct state. Anything I should change to have this happen?
core-2021.1.5, supervisor-2021.01.7, Spotcast 3.4.6
# Play wake up sounds as selected
script:
wakeup_sound:
variables:
wakeup_uri: >
{% if is_state("input_select.wake_up_sounds", "Birds") %} spotify:track:5vg5nnqYefY17aJZPmO0AI
{% elif is_state("input_select.wake_up_sounds", "Frogs") %} spotify:user:kenaisea:playlist:6KnSydeZaP2eQwl60VoPgr
{% elif is_state("input_select.wake_up_sounds", "Crickets") %} spotify:user:mimiwogu:playlist:0vpYZLnwJs8dhy1HJhezX1
{% elif is_state("input_select.wake_up_sounds", "Rain") %} spotify:user:sonymusicentertainment:playlist:7sXrmazSWcD5jGDX64EpqG
{% elif is_state("input_select.wake_up_sounds", "Ocean") %} spotify:user:gary96:playlist:4JuHQCzZqpDyVmk39hlMBq
{% elif is_state("input_select.wake_up_sounds", "Nature") %} spotify:user:spotify:playlist:37i9dQZF1DX4PP3DA4J0N8
{% endif %}
sequence:
# Play if sounds are turned on in the frontend
- condition: state
entity_id: input_boolean.wake_up_sounds_on
state: 'on'
# Only if no music is playing already
- condition: state
entity_id: binary_sensor.allow_alarm_start
state: 'on'
- service: spotcast.start
data:
device_name: 'Slaapkamer Stereo'
uri: '{{ wakeup_uri }}'
- wait_template: '{{ is_state("media_player.slaapkamer_stereo", "playing") }}'
timeout: '00:00:30'
continue_on_timeout: 'true'
- service: media_player.volume_set
data:
entity_id: media_player.slaapkamer_stereo
volume_level: '{{ ((states("input_number.wake_up_sound_volume") | int /100)) | int }}'
Thank you so much for this component, works like a charm and have been using it with the default account for a while now. Now I am trying to expand it so that my wife and I can both use it with each our account. When adding the account to the script, however, I get the error below:
Ny automatisering: Error executing script. Unexpected error for call_service at pos 1: 'NoneType' object has no attribute 'get'
While executing automation automation.ny_automatisering
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 250, in _async_step
await getattr(
File "/usr/src/homeassistant/homeassistant/helpers/script.py", line 457, in _async_call_service_step
await service_task
File "/usr/src/homeassistant/homeassistant/core.py", line 1445, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1484, in _execute_service
await self._hass.async_add_executor_job(handler.job.target, service_call)
File "/usr/local/lib/python3.8/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/spotcast/__init__.py", line 281, in start_casting
access_token, expires = get_token_instance(account).get_spotify_token()
File "/config/custom_components/spotcast/__init__.py", line 130, in get_token_instance
dc = accounts.get(account).get(CONF_SP_DC)
AttributeError: 'NoneType' object has no attribute 'get'
Removing account from the script works as it has so far with the default user/account. What I am trying to do here is use the two accounts so that when my automation is triggered, it does not pause the music playing elsewhere in the house. So thinking of doing something like āif my spotify is playing, use my wifes spotify in the automation and vice versaā. Is there a better way to achieve this?
Hello,
This component sounds great, unfortunatley i cannot make it work. I am very new to HA and tons of questions are poping up
i have managed to get the sp_dc and the sp_key.
then pasted them in config/configuration.yaml via file editor.
What i need to after that?
sorry for the so basic question. i have tried to follow the documentation on the readme file for this component but i cannot get it to work
thank you in advance.
if someone has the time to help me a bit i will appreciate it a lot.
I have the Spotify integration on my HA as well as Chromecast Audio integration.
Spotcast is one of the best custom component I have used. Thank you very much! I have been using it for months now.
Unfortunately, for the last couple of days I am struggling to make it work again.
I am keep getting an error 'Could not find a version that satisfies the requirement spotify_token==1.0.0ā.
Spotcast refuses to load upā¦
I am using Home Assistant OS 5.11 on a Virtual Machine (Old Windows 10 laptop).
*I have tried removing and reinstalling spotcast
*Changed the sp_dc sp_key multiple times (incognito, new login etcā¦)
Any suggestions please how to proceed or what to do?
Thanks