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 usable in Home Assistant.

Install it with pip install python-libratone-zipp and use it with ``!

Acknowledgment

This work is based on the following:

Usage

Functions return True if they are successful

Command Action
Initialization
from python_libratone_zipp import LibratoneZipp Import the library
zipp = LibratoneZipp('192.168.1.99', "Zipp") Instanciate the LibratoneZipp class
Properties
zipp.name Name of the speaker
zipp.host IP adress of the speaker
Playback commands
zipp.state State of the speaker - see below
zipp.play() Play command
zipp.pause() Pause command
zipp.stop() Stop command
zipp.next() Next track command
zipp.prev() Previous track command
Voicing (sound mode) commands
zipp.voicing Current voicing
zipp.voicing_list List of all <voicing_id>
zipp.voicing_set(<voicing_id>) Set the speaker to <voicing_id>

States

State variable Variable content Description
STATE_OFF "OFF" The speaker is off or cannot be reached
STATE_SLEEP "SLEEP" The speaker is in sleep mode (nightingale is off)
STATE_IDLE "IDLE" The speaker is active but don't play anything
STATE_PLAY "PLAY" The speaker is playing
STATE_PAUSE "PAUSE" The speaker is on pause - Not sure if it's a "true" state

Roadmap

Module

  • Clean text variables, declare variable on top instead of using text like "play"
  • Create a client
  • Use discovery method instead of fixed IP

Functionnality coverage

  • v1.0
    • Set basic playback status: play, pause, stop, next, prev
    • Set a Favorite
    • Calculate state - But this is not use in HA
    • Make it work with Home Assistant
    • Publish on PyPi
  • v2.0
    • Retrieve basic playback status: play, pause, stop, next, prev
  • v3.0
    • Make the module async

Other functionalities:

  • Volume
    • Set volume
    • Retrieve volume
  • Current Playback info
    • Retrieve current playback source
    • Retrieve current title
    • Retrieve media type: bluetooth, spotify, aux, radio, ...
  • Standby
    • Set to immediate standby
    • Set a standby timer
    • Retrive a standby timer
  • Voicing & Room Setting
    • Set a Voicing
    • Retrieve current Voicing
    • Set Room Setting
    • Retrieve current Room Setting
  • Favorites
    • Play a favorite
    • 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 firmware, IP, serial number
    • Retrieve current battery and AC information
  • Network
    • Retrieve current wifi information
    • Set wifi information

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-1.1.0.tar.gz (7.3 kB view details)

Uploaded Source

Built Distribution

python_libratone_zipp-1.1.0-py3-none-any.whl (7.1 kB view details)

Uploaded Python 3

File details

Details for the file python_libratone_zipp-1.1.0.tar.gz.

File metadata

  • Download URL: python_libratone_zipp-1.1.0.tar.gz
  • Upload date:
  • Size: 7.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for python_libratone_zipp-1.1.0.tar.gz
Algorithm Hash digest
SHA256 d721a131a1bc57d72698a2eb42aa917d56ec07ebf4875dd081c61e7e3b26fc5d
MD5 717af7a92560a0b570d3e7cc566f1415
BLAKE2b-256 0baef836ca7419fe933b320ae56ed7274e6fcd93bcee1ecdad18496b9c3565cb

See more details on using hashes here.

File details

Details for the file python_libratone_zipp-1.1.0-py3-none-any.whl.

File metadata

  • Download URL: python_libratone_zipp-1.1.0-py3-none-any.whl
  • Upload date:
  • Size: 7.1 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.4.1 importlib_metadata/4.0.1 pkginfo/1.7.0 requests/2.25.1 requests-toolbelt/0.9.1 tqdm/4.60.0 CPython/3.8.5

File hashes

Hashes for python_libratone_zipp-1.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 1fd99f954ea62278dc51f10d8168ce74e36b77e7a920978b69dadf304fd91e2a
MD5 7f6f778982c0c94997b08eaeacf640bd
BLAKE2b-256 478017a8c2c4bb29cbf2ae657e31d6a96d2472611fbbd38754f069010942b4ec

See more details on using hashes here.

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