Skip to content

robin-schoch/sonos-rest-api-wrapper

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

46 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages