Skip to content

Latest commit

 

History

History
28 lines (19 loc) · 490 Bytes

README.md

File metadata and controls

28 lines (19 loc) · 490 Bytes

Sonos - api wrapper

Run Sonos API Wrapper

Get all your housholds:

sonos = MySonos.from_config('config.json')
sonos.discover()

Get your groups and players. (As of now sonos does not provide names for housholds, usually you only have so index 0 should be fine)

household = sonos.households[0].get_groups_and_players()

Find your group

livingroom = household.find_group_by_name("Living room")

Play somthing

livingroom.play()