scholtzan / homebridge-rusty-spotify

Spotify plugin for Homebridge written in Rust
MIT License
14 stars 5 forks source link

No accessory showing in homebridge #14

Open hansthart opened 3 years ago

hansthart commented 3 years ago

This is what my lines look like now, but when I go to accessories list in the Hoops menu (homebridge), no accessory is added or showing. What is wrong?

{ "platform": "Spotify", "name": "Spotify", "service_type": "light", "client_id": "<51xxxxxxxxxxxxxxxx00>", "client_secret": "<5xxxxxxxxxxxxxxx4>", "refresh_token": "<2xxxxxxxxxxxxxxxxxxxx2>", "plugin_map": { "plugin_name": "homebridge-rusty-spotify" } }

deepin125 commented 3 years ago

I've noticed that you need to have spotify running on your computer (logged in as your user) or have the app open on your phone/devices for it appear in the accessories menus. Also make sure that you are copying into the right part of the xml, I would expect you to be in a block like: "platforms": [ { "platform": "Spotify", "name": "Spotify", "service_type": "light", "client_id": "xxxxxxxxxxxxxxxxxxxxxxx", "client_secret": "xxxxxxxxxxxxxxxxxxxxxxxxxxxx", "refresh_token": "xxxxxxxxxxxxxxxxxx-xxxxxxxxxxx-xxxxxxxxxxxxxxx" } ] }

lacer2k commented 3 years ago

Hi have this in the log:

[1/26/2021, 11:54:38 AM] [Spotify] Initializing Spotify platform... [1/26/2021, 11:54:38 AM] Loading 5 accessories... (this is ok)

but i have no accessories in the homebrdge list (running on raspi 3b+) what could be the problem? all the best. livio a

vvzvlad commented 3 years ago

I agree, I don't see any devices in my app either. [11/4/2021, 2:07:49 AM] [Spotify] Initializing Spotify platform... [11/4/2021, 2:07:49 AM] Loading 5 accessories...

vvzvlad commented 3 years ago

after several hours i got new error: [11/4/2021, 2:16:40 AM] Homebridge v1.3.5 (Homebridge) is running on port 51826. [11/4/2021, 2:20:01 AM] [Homebridge UI] [admin] Accessory layout changes saved. Error while authenticating to Spotify API: JsValue("Error executing fetch request") [11/4/2021, 5:14:30 AM] [Homebridge UI] Running scheduled instance backup... [11/4/2021, 5:14:30 AM] [Homebridge UI] Creating temporary backup archive at /tmp/homebridge-backup-2FS1Wa/homebridge-backup-CC223DE3CE30.tar.gz Error while authenticating to Spotify API: JsValue("Error executing fetch request") Error while retrieving access token from Spotify API. Response was: JsValue(Object({"error":"temporarily_unavailable","error_description":""})) Error while authenticating to Spotify API: JsValue("Error while retrieving access token from Spotify API. Response was: JsValue(Object({"error":"temporarily_unavailable","error_description":""}))")