Skip to main content

Control a Libratone Zipp speaker with a Python library

Project description

Libratone Zipp controller library in Python

This aims to control a Libratone Zipp speaker with a Python library, potentially usable in Home Assistant with this module.

Install it with pip install python-libratone-zipp - pip page

Usage

See example in CLI.py. You have to be able to listen to 3333/udp and 7778/udp!

Roadmap

Nothing is guaranteed here!

Module improvement

  • Clean text variables, declare variable on top instead of using text like "play"
  • Create a client
  • Handle exit properly - currently threads can be locking
  • Use discovery method instead of fixed IP

Functionality coverage

  • v1.0
    • Set basic playback status: play, pause, stop, next, prev
    • Play a Favorite
    • Calculate state - But this is not use in HA
    • Make it work with Home Assistant
    • Publish on PyPi
  • v1.1
    • Set a Voicing
  • v2.0
    • Retrieve basic playback status: play, pause, stop, next, prev
    • Set volume
    • Retrieve volume
    • Set to immediate standby
    • Retrieve and set Voicing
    • Retrieve current firmware, IP, serial number
    • Retrieve actual speaker state (approximately)
  • v3.0
    • Make the module async

Other functionalities:

  • Current Playback info
    • Retrieve current playback source
    • Retrieve current title
    • Retrieve media type: bluetooth, spotify, aux, radio, ...
  • Standby
    • Set a standby timer
    • Retrieve a standby timer
  • Voicing & Room Setting
    • Set Room Setting
    • Retrieve current Room Setting
  • Favorites
    • Set a Favorite
  • Extended current playback info
    • Set extended playback status: shuffle, repeat
    • Retrieve extended playback status: shuffle, repeat
    • Set Source
    • Retrieve current source
  • Speaker configuration
    • Retrieve speaker name
    • Retrieve speaker color
    • Set speaker name
    • Set speaker color
    • Retrieve current IP, serial number
    • Retrieve current battery and AC information
  • Network
    • Retrieve current wifi information
    • Set wifi information
  • Multi-room
    • Implement SoundSpace Link

Acknowledgment

This work is based on the following:

License

See LICENSE file

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

python_libratone_zipp-2.0.0.tar.gz (11.2 kB view hashes)

Uploaded Source

Built Distribution

python_libratone_zipp-2.0.0-py3-none-any.whl (10.6 kB view hashes)

Uploaded Python 3

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page