Skip to main content

Status

Build StatusCoverage Status

pyws66i

Python3 interface implementation for Soundavo WS66i amplifier.

Notes

This is a 6-zone amplifier that is a direct upgrade from ws66i 6-zone amplifier. This is a fork off of pymonoprice that replaces the serial protocol for telnet.

It is intended to be used with Home-Assistant.

Usage

from pyws66i import get_ws66i

# Get a connection using the IP address of the WS66i amplifier
ws66i = get_ws66i('192.168.1.123')

# Open a connection
try:
    ws66i.open()
except ConnectionError:
    # Handle exception

# Valid zones are 11-16 for the main WS66i amplifier
zone_status = ws66i.zone_status(11)

# Print zone status
print('Zone Number = {}'.format(zone_status.zone))
print('Power is {}'.format('On' if zone_status.power else 'Off'))
print('Mute is {}'.format('On' if zone_status.mute else 'Off'))
print('Public Anouncement Mode is {}'.format('On' if zone_status.pa else 'Off'))
print('Do Not Disturb Mode is {}'.format('On' if zone_status.do_not_disturb else 'Off'))
print('Volume = {}'.format(zone_status.volume))
print('Treble = {}'.format(zone_status.treble))
print('Bass = {}'.format(zone_status.bass))
print('Balance = {}'.format(zone_status.balance))
print('Source = {}'.format(zone_status.source))
print('Keypad is {}'.format('connected' if zone_status.keypad else 'disconnected'))

# Turn off zone #11
ws66i.set_power(11, False)

# Mute zone #12
ws66i.set_mute(12, True)

# Set volume for zone #13
ws66i.set_volume(13, 15)

# Set source 1 for zone #14
ws66i.set_source(14, 1)

# Set treble for zone #15
ws66i.set_treble(15, 10)

# Set bass for zone #16
ws66i.set_bass(16, 7)

# Set balance for zone #11
ws66i.set_balance(11, 3)

# Restore zone #11 to it's original state
ws66i.restore_zone(zone_status)

# Done. Close the connection
ws66i.close()

Download files

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

Source Distribution

pyws66i-1.1.tar.gz (6.3 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pyws66i-1.1-py3-none-any.whl (5.9 kB view details)

Uploaded Python 3

File details

Details for the file pyws66i-1.1.tar.gz.

File metadata

  • Download URL: pyws66i-1.1.tar.gz
  • Upload date:
  • Size: 6.3 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for pyws66i-1.1.tar.gz
Algorithm Hash digest
SHA256 6dfc0dff1329a8ef34d72138dda1f40b4f7e7eefdb05f766cfa5b6af7e16ef9b
MD5 69c1e974e0545518279aaf711864ac09
BLAKE2b-256 bb17dd67a0caf020c6971ca719c01f693eff07ddbdf008a4f27ff6efe5b55f95

See more details on using hashes here.

File details

Details for the file pyws66i-1.1-py3-none-any.whl.

File metadata

  • Download URL: pyws66i-1.1-py3-none-any.whl
  • Upload date:
  • Size: 5.9 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.0 CPython/3.8.10

File hashes

Hashes for pyws66i-1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 0035f069801ecac74ee222319741cff1590859a968cbc213dd0aee657b396c6b
MD5 08c1f23f42786905b567d3960118471a
BLAKE2b-256 16a094fdee80f7597ed67f79ddd41de8398b4ccdbfcc220eadea247a0ce89aab

See more details on using hashes here.

Release history Release notifications | RSS feed

This release

1.1 This release

2 files

1.0

2 files

0.1

2 files

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page