Skip to content
This repository was archived by the owner on Mar 4, 2021. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 34 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,15 +1,45 @@
# MusicCastControl
MQTT interface for Yamaha MusicCast

Receives events from the MusicCast device when a value changes and publishes them to MQTT.
Receives events from the MusicCast device when a value changes and publishes them to MQTT.

Publishes topics in the format:

## Get started

Clone the repository:

```
git clone git@github.com:Iture/MusicCastControl.git
```

Create and activate a virtual environment:

```
cd MusicCastControl
python3 -m venv env
source env/bin/activate
```

Edit the `config.json` file according to your own requirements, paying attention to:

* `"mqtt_host"`
* `"mc_devices"`

Run:

```
python3 MusicCastController.py
```

## Technical reference

Publishes topics in the format:

MusicCast/friendly_name/power

To set a value, use:
To set a value, use:

MusicCast/friendly_name/power/set
MusicCast/friendly_name/power/set

Example values from a Yamaha A2060 (Zone 3 with a friendly_name of dining_room):

Expand All @@ -27,7 +57,3 @@ MusicCast/dining_room/disable_flags:0
```

friendly_names, ip addresses and zones are defined in config.json

To start run:

python3 MusicCastController.py