sonosrestapi

sonos rest api wrapper


Keywords
sonos
License
MIT
Install
pip install sonosrestapi==0.0.6

Documentation

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()