NEWS
Sonos Adapter probleme
-
Hier startet der Adapter zwar, meckert aber einiges an:
2024-06-02 12:05:36.075 - warn: admin.0 (817993) sonos has an invalid jsonConfig: [{"instancePath":"/items/devicesTab/items/_sendto","schemaPath":"#/definitions/sendToProps/additionalProperties","keyword":"additionalProperties","params":{"additionalProperty":"timeout"},"message":"must NOT have additional properties"},{"instancePath":"/items/devicesTab","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/8/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"","schemaPath":"#/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}] 2024-06-02 12:05:36.587 - info: sonos.0 (829438) starting. Version 3.0.0 in /opt/iobroker/node_modules/iobroker.sonos, node: v20.14.0, js-controller: 6.0.1-alpha.0-20240529-9dbeeb628 2024-06-02 12:05:36.691 - info: sonos.0 (829438) Method "createDevice" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.793 - info: sonos.0 (829438) Method "createChannel" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.803 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.827 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.847 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.865 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.884 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.906 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead
Das ganze mit nodejs@20.
-
@dominik_neu und, Problem gelöst? Keine Ahnung ob der Entwickler des Sonos Adapters das hier im Forum mitliest.
-
Ich hatte die selben Meldungen ..
Lösung: Instanz UND Adapter löschen und neu einrichten. Nur die Instanz löschen und wieder anlegen hat es nicht gebracht.
-
@mameier1234 Dann gibt es wohl eine neue Version einer Abhängigkeit, welche das Problem behebt.
Wäre sinnvoll wenn der Entwickler eine neue Version freigibt damit das Update automatisch passiert
-
@thomas-braun said in Sonos Adapter probleme:
Hier startet der Adapter zwar, meckert aber einiges an:
2024-06-02 12:05:36.075 - warn: admin.0 (817993) sonos has an invalid jsonConfig: [{"instancePath":"/items/devicesTab/items/_sendto","schemaPath":"#/definitions/sendToProps/additionalProperties","keyword":"additionalProperties","params":{"additionalProperty":"timeout"},"message":"must NOT have additional properties"},{"instancePath":"/items/devicesTab","schemaPath":"#/properties/items/patternProperties/%5E.%2B/allOf/8/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"},{"instancePath":"","schemaPath":"#/if","keyword":"if","params":{"failingKeyword":"then"},"message":"must match \"then\" schema"}] 2024-06-02 12:05:36.587 - info: sonos.0 (829438) starting. Version 3.0.0 in /opt/iobroker/node_modules/iobroker.sonos, node: v20.14.0, js-controller: 6.0.1-alpha.0-20240529-9dbeeb628 2024-06-02 12:05:36.691 - info: sonos.0 (829438) Method "createDevice" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.793 - info: sonos.0 (829438) Method "createChannel" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.803 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.827 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.847 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.865 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.884 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead 2024-06-02 12:05:36.906 - info: sonos.0 (829438) Method "createState" is deprecated and will be removed in js-controller 7, use "extendObject/setObjectNotExists" instead
Das ganze mit nodejs@20.
Du hast wahrscheinlich js-controller 6 installiert. Mit js-controller 6 werden diese Methoden deprecated funktionieren aber weiter. Ergo bitte nur ein Issue im Aapzter Repo eröffnen wenn es noch nicht existiert.
-
-
@mameier1234 DANKKEEE. Das hat bei mir jetzt auch funktioniert.
-
Hat jemand eine Idee für Docker ? Da hat Instanz & Adapter löschen bisher leider nichts gebracht
docker official image - v9.1.2
admin: v6.17.14
js-controller: 5.0.19
Node.js: v18.20.3
NPM: 10.8.1Habe ich vielleicht ein Problem mit den Ports ??
sonos.0 2024-06-30 12:10:16.455 debug Process channel: sonos.0.root.192_168_178_88 sonos.0 2024-06-30 12:10:16.408 debug Process channel: sonos.0.root.192_168_178_87 sonos.0 2024-06-30 12:10:16.358 debug Process channel: sonos.0.root.192_168_178_86 sonos.0 2024-06-30 12:10:16.307 debug Process channel: sonos.0.root.192_168_178_89 sonos.0 2024-06-30 12:10:16.307 debug Channels of root: [{"type":"channel","common":{"role":"media.music","name":"Sonos Play:1 Terrasse"},"native":{"ip":"192.168.178.89"},"from":"system.adapter.sonos.0","user":"system.user.admin","ts":1719742183531,"_id":"sonos.0.root.192_168_178_89","acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}},{"type":"channel","common":{"role":"media.music","name":"Sonos AMP Badezimmer"},"native":{"ip":"192.168.178.86"},"from":"system.adapter.sonos.0","user":"system.user.admin","ts":1719742183595,"_id":"sonos.0.root.192_168_178_86","acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}},{"type":"channel","common":{"role":"media.music","name":"Sonos AMP Hobbyraum"},"native":{"ip":"192.168.178.87"},"from":"system.adapter.sonos.0","user":"system.user.admin","ts":1719742183855,"_id":"sonos.0.root.192_168_178_87","acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}},{"type":"channel","common":{"role":"media.music","name":"Sonos AMP Hobbyraum"},"native":{"ip":"192.168.178.88"},"from":"system.adapter.sonos.0","user":"system.user.admin","ts":1719742184125,"_id":"sonos.0.root.192_168_178_88","acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}}] sonos.0 2024-06-30 12:10:16.257 debug Initialize known devices: [{"type":"device","common":{"name":"root"},"native":{},"from":"system.adapter.sonos.0","user":"system.user.admin","ts":1719739575452,"_id":"sonos.0.root","acl":{"object":1636,"owner":"system.user.admin","ownerGroup":"system.group.administrator"}}] sonos.0 2024-06-30 12:10:16.164 debug Search can't be optimized because wildcard not at the end, fallback to keys!: function(doc) { if (doc.type === 'state') emit(doc._id, doc) } sonos.0 2024-06-30 12:10:16.140 info starting. Version 3.0.0 in /opt/iobroker/node_modules/iobroker.sonos, node: v18.20.3, js-controller: 5.0.19 sonos.0 2024-06-30 12:10:16.021 debug States connected to redis: 127.0.0.1:9000 sonos.0 2024-06-30 12:10:15.918 debug States create User PubSub Client sonos.0 2024-06-30 12:10:15.917 debug States create System PubSub Client sonos.0 2024-06-30 12:10:15.884 debug Redis States: Use Redis connection: 127.0.0.1:9000 sonos.0 2024-06-30 12:10:15.826 debug Objects connected to redis: 127.0.0.1:9001 sonos.0 2024-06-30 12:10:15.822 debug Objects client initialize lua scripts sonos.0 2024-06-30 12:10:15.722 debug Objects create User PubSub Client sonos.0 2024-06-30 12:10:15.722 debug Objects create System PubSub Client sonos.0 2024-06-30 12:10:15.720 debug Objects client ready ... initialize now sonos.0 2024-06-30 12:10:15.671 debug Redis Objects: Use Redis connection: 127.0.0.1:9001
-
tatsächlich .... ein Problem mit den Ports .....
-
@steffensammet Welche Ports werden denn benötigt? Muss ich die explizit freigeben?
Danke für eine kurze Info.. -
laut meinem Log war es 9000 und 9001;
in der Realität habe ich den Container aber von Host zu einer Bridge umgezogen und hatte somit alle Ports verfügbar.Ich hoffe dies hilft dir weiter.
Es halt komisch ist, bei Home Assistant funktioniert es "out-of-the-box" ...