Skip to content

Commit

Permalink
refact: code smells and update README
Browse files Browse the repository at this point in the history
  • Loading branch information
noahhusby committed Jul 24, 2024
1 parent b15b1ee commit 3fb5a03
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 2 deletions.
26 changes: 26 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,32 @@

This module implements a Python client for the Russound I/O (RIO) protocol used to control Russound audio controllers. RIO supports a superset of the RNET feature set, allows for push notifications of system changes and supports TCP/IP and RS232 communication.

## Supported Devices
- Russound MBX-PRE
- Russound MBX-AMP
- Russound MCA-C3
- Russound MCA-C5
- Russound MCA-66
- Russound MCA-88
- Russound MCA-88x
- Russound XSource (untested)
- Russound XZone4 (untested)
- Russound XZone70V (untested)
- Russound XStream-X5 (untested)
- Russound ACA-E5 (untested)

If your model is not on the list of supported devices, and everything works correctly then add it to the list by opening a pull request.

## Communication
The library supports the RIO protocol communication over TCP/IP or RS232 (Serial).

### TCP/IP
The built-in ethernet port on the Russound device natively support the RIO protocol. **Note:** It is strongly recommended that the controller has a static IP address configured.

### RS232 (Serial)

The RS232 port must be configured to use the RIO protocol instead of the RNET protocol for the library to function properly. This can be configured using the SCS-C5 configuration tool or the controller's Web GUI.

## Acknowledgements
This is the continuation of the `russound_rio` package. This wouldn't be possible without the excellent work from [@wickerwaka](https://github.com/wickerwaka) and [@chphilli](https://github.com/chphilli).

1 change: 0 additions & 1 deletion aiorussound/const.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
)


# TODO: Add features 1.06.00 and up
class FeatureFlag(Enum):
SUPPORT_POWER_MGMT = 1
SUPPORT_ZONE_PARAMETERS = 2
Expand Down
2 changes: 1 addition & 1 deletion examples/basic.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ async def demo(loop, host):
await source.watch()
print("%s: %s" % (source_id, source.name))

for i in range (5):
for _ in range(5):
con: Zone = c.zones.get(1)
await con.volume_up()
await asyncio.sleep(1.0)
Expand Down

0 comments on commit 3fb5a03

Please sign in to comment.