I just installed a new Nest Hub.
The settings from other Nest speakers cannot be used on the Nest Hub for some reason.
I copied the same settings from my other nest spreaker and only changed the name (copied from developer tools and is correct)
Can someone confirm what is causing the issue?
Part of my config:
type: custom:mini-media-player
entity: media_player.nesthub7858
artwork: material
soundmode: icon
style: |
.mmp__bg {
opacity: 1 !important;
background: url("/local/images/radio/music_background3.jpg") center center / cover !important;
}
info: short
icon: mdi:music-circle-outline
hide:
icon: true
shortcuts:
columns: 4
buttons:
- name: XXXXX
icon: mdi:spotify
type: service
id: spotcast.start
data:
entity_id: media_player.nesthub7858
uri: spotify:playlist: XXXXXXXX
When I try to play this I get the following notification on my Home Assistant screen
Failed to call service spotcast.start. Could not find device with name NestHub7858
Error logs:
This error originated from a custom integration.
Logger: custom_components.spotcast.spotcast_controller
Source: custom_components/spotcast/spotcast_controller.py:234
Integration: Spotcast (documentation, issues)
First occurred: 9:21:09 PM (1 occurrences)
Last logged: 9:21:09 PM
Could not find device NestHub7858 from hass.data
Logger: homeassistant.components.websocket_api.http.connection
Source: custom_components/spotcast/spotcast_controller.py:88
Integration: Home Assistant WebSocket API (documentation, issues)
First occurred: 9:21:09 PM (1 occurrences)
Last logged: 9:21:09 PM
[2604076264] Could not find device with name NestHub7858
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 200, in handle_call_service
await hass.services.async_call(
File "/usr/src/homeassistant/homeassistant/core.py", line 1755, in async_call
task.result()
File "/usr/src/homeassistant/homeassistant/core.py", line 1798, in _execute_service
await self._hass.async_add_executor_job(
File "/usr/local/lib/python3.10/concurrent/futures/thread.py", line 58, in run
result = self.fn(*self.args, **self.kwargs)
File "/config/custom_components/spotcast/__init__.py", line 190, in start_casting
spotify_device_id = spotcast_controller.get_spotify_device_id(
File "/config/custom_components/spotcast/spotcast_controller.py", line 234, in get_spotify_device_id
spotify_cast_device = SpotifyCastDevice(
File "/config/custom_components/spotcast/spotcast_controller.py", line 62, in __init__
self.castDevice = self.getChromecastDevice(device_name)
File "/config/custom_components/spotcast/spotcast_controller.py", line 88, in getChromecastDevice
raise HomeAssistantError(
homeassistant.exceptions.HomeAssistantError: Could not find device with name NestHub7858
Edit: got it working by switching to device_id. However this is different behaviour compared to other devices and doesn’t work after a while since the spotify_device_id will dissapear from Spotify after power-off the Hub