グループを作成し、デバイス名に基づいてコーディネーターを指定したいと考えています。
import soco
devices = soco.discover()
for device in devices:
if device.player_name == 'Kitchen'
# Define a new group with a coordinator here...
# device.group...
break
その理由は、プログラムでキッチン (キッチンのみ) で特定の曲を再生したいのですが、デバイスは既にグループの一部であり、コーディネーターではありません。したがって、次のエラーが表示されます。
The method or property "play_uri" can only be called/used on the coordinator in a group
どんな助けでも大歓迎です。
ありがとう