Skip to content

Melodious 1.3

Choose a tag to compare

@schlambos schlambos released this 30 Oct 21:25
30819e1

Melodious keeps a rooted Logitech Harmony Hub working on your own network, with no Logitech app, account or cloud. It has four parts: software on the hub, a web app the hub serves, an Android app and a macOS app. 1.3 brings Home Assistant devices, a full editor for the Harmony Touch, and apps that can update themselves (and, from the Mac, the hub).

Downloads

File What it is
melodious-hub-1.3.0.zip The hub software and its installers (Python and PowerShell), with the Logitech catalog helper for other computers. Unzip it on a computer on the same network as the hub.
melodious-1.3.0.apk The Android app, for Android 8.0 and later.
Melodious-1.3.0-arm64.dmg The macOS app for Apple silicon (M1 and later).
Melodious-1.3.0-x64.dmg The macOS app for Intel.
Melodious-1.3.0-arm64.zip, Melodious-1.3.0-x64.zip The same macOS apps, zipped.
melodious-update.json What the apps read to update: versions, the APK's signing certificate, and each hub file's destination and SHA-256.
SHA256SUMS.txt SHA-256 checksums of every file above.

The Android app is signed with the Melodious release key (certificate SHA-256 7a766509ca8424065c5f6c7ae4214369862a5a18881ee00e434c9f833e0bd2de), the same key as 1.1.0, so it installs over it.

This release is not signed. SHA256SUMS.txt shows a download is intact; the apps download only from this repository's GitHub releases and check every file against it.

The macOS app needs macOS 13 or later. The Android app needs Android 8.0 or later.

Install

You need a Harmony Hub rooted with harmony-hub-root, the SSH key it creates (harmony_owner_* in ~/.ssh), and the numeric Hub ID it prints.

Hub:

  1. Unzip melodious-hub-1.3.0.zip.

  2. Install Melodious on the hub:

    • Linux or macOS: python3 install_webui.py --hub-host <hub-ip> --hub-id <hub-id>
    • Windows: double-click Install_Harmony_Control.cmd, or in PowerShell run .\install_webui.ps1 -HubHost <hub-ip> -HubId <hub-id>

    The first install turns on the cloud blocker, leaves MQTT off and reboots the hub once.

  3. Open http://<hub-ip>:8080/ on your phone or computer.

Android app: download melodious-1.3.0.apk on your phone and open it. Android asks you to allow installs from your browser or file manager. The app finds the hub on your network, or you can type its address.

macOS app:

  1. Open the .dmg for your Mac and drag Melodious to Applications (or unzip the .zip).
  2. The app is not signed with an Apple Developer ID, so macOS asks before the first launch:
    • Finder: Control-click Melodious → Open. Where macOS no longer offers Open, use System Settings → Privacy & Security → Open Anyway.
    • Or in Terminal: xattr -dr com.apple.quarantine /Applications/Melodious.app
  3. macOS asks whether Melodious may find and connect to devices on your local network. Choose Allow: without it the app cannot reach the hub.
  4. Melodious looks for your hub on the network, or you type its address. If your hub has a sign-in, enter it once; it is kept encrypted in your Keychain.

Updating from 1.1

  • Hub: unzip the new release and run the installer again. It keeps your configuration, activities and devices.
  • Android: 1.3.0 installs over 1.1.0.
  • Mac: replace the app in Applications with the new one.
  • From 1.3.0 on, the apps can do this for you (see Updates below). This one time, install 1.3.0 by hand: older apps don't have the updater.

What's new since 1.1

1.2.0 was prepared but never published, so this covers both.

Updates

  • Update checks (opt-in): both apps ask once whether to check GitHub for new releases. If you say yes, they check once a day and say when a newer app or hub is out. Nothing downloads until you choose to install.
  • Android installs its own updates: Install downloads the APK from the GitHub release, checks it against SHA256SUMS.txt and the Melodious signing key, and installs it over the app. After you allow "Install unknown apps" for Melodious once, later updates take one tap (Android 12+).
  • The Mac app replaces itself: Install and Restart downloads the new version, checks it, swaps it in and relaunches. Settings and sign-ins stay.
  • Update hub… (Mac): when a newer hub release is out, the Mac app updates the hub over SSH with the installer's key (~/.ssh/harmony_owner_*) and your known_hosts. It sends only the files that changed and does the installer's steps on the hub: copies in RAM, a handoff backup, a health check, and the old files put back if the check fails. The Android app only tells you a hub update is out; it never holds the hub's SSH key.
  • The hub reports its version at GET /api/version and on the System page.

Security

  • No more installs over HTTP: the hub's /api/update-begin, -chunk and -apply routes are gone. With sign-in off they let any device on the network replace a hub program. The hub now installs software only through the installer or the Mac app, both over SSH.

32 MB hubs (thanks to @s7thamon, #72)

  • The IR pages no longer need 12 MB: the hub grew each device's command list as needed instead of reserving room for 32 devices × 160 commands up front. On 32 MB hubs the old layout could be killed for lack of memory, which left pages half-loaded.
  • The installer's RAM check counts reclaimable cache, so it no longer refuses to install on 32 MB hubs that have room.

Home Assistant

  • Home Assistant entities as hub devices: lights, switches and media players from Home Assistant become devices on the hub. Put them in activities and on remote buttons like any other device; the hub sends their commands to Home Assistant on your network.
  • The Home Assistant integration, schlambos/ha-melodious, adds and updates those devices from Home Assistant. It needs this hub release.

Remotes

  • The Harmony Touch syncs offline: the hub answers the Touch's connectivity check, its time check and its requests for device records itself, so a Sync from the Touch finishes without Logitech's servers.
  • Device screens for every device: each device, including Home Assistant ones, gets its own screen on the Touch, with its commands and hard keys.
  • The Touch & HA controls editor: for each activity, set the Touch's on-screen buttons, hard keys and gestures, with any device. Choose how a key acts when held: Standard, One-shot (fires once however long you hold it, which stops toggles from firing twice) or a separate hold command.
  • Hard keys reach the remote: an activity's hard buttons now arrive on the Harmony Touch, not only on the hub.
  • Activity setup keeps what it didn't make: saving an activity keeps the extra keys, hold actions and gestures you set elsewhere.

Reliability

  • Slow saves are no longer undone: the hub waits up to two minutes for a save and never rolls back one that may still land, and the editor checks what the hub has before it says whether a save worked.
  • Writer requests take turns: two saves at once no longer overwrite each other.
  • The hub binary is rebuilt from source with the pinned official Zig 0.16.0 toolchain, and the build is reproducible.

See the README for details and screenshots.

Known limits

  • Remotes: validated on hardware only with the Harmony Touch. Other Harmony remotes get the same configuration but have not been tested.
  • Slow saves: with an activity running, a save can take up to two minutes while the hub reloads its engine. If the hub still hasn't finished, the app says so; reload a minute later to check before saving again.
  • Gestures and toggles: gestures can't use One-shot, so a toggle on a gesture can fire twice. Use On/Off or Up/Down on gestures.
  • Home Assistant needs this hub release and the ha-melodious integration.
  • Trusted network only: the web app is plain HTTP, sign-in is optional and off by default, the hub does not check where requests come from, and updates are not signed.
  • The macOS app is ad-hoc signed. After it updates itself, macOS may ask once more to let Melodious use "Melodious Safe Storage" in your Keychain; choose Always Allow. Updating needs the app in a folder you can write, such as Applications.
  • Updates: to update the hub, run the installer from a newer release, or use Update hub… in the Mac app. The hub's web app doesn't update the hub.
  • Catalog protocols: Logitech catalog codes import only if the hub already has their IR protocol. The others are listed as skipped.

License

Melodious code is under the MIT License. Code from the upstream project, Ripthulhu/harmony-hub-control (up to commit d87ceba), is all rights reserved by its authors. Third-party components keep their own licences. See LICENSE.