r/logitechharmony • • 26d ago

Melodious 2.0: remote pairing, Android TV control, and two-way Home Assistant

Back again. Previous posts here and here if you missed them. 2.0 is a big one so I'll just get into it.

Remote pairing without the cloud. You can now pair Smart Control, Companion, and Elite remotes directly from the hub's web UI. Each remote gets its own section, keys stay in sync across remotes by default, and you can override individual keys per remote if you want. Companion remote support came from a bug report and testing by @sumps71.

Android TV / Google TV control over the network. Pair with and control Android/Google TV sets using the Android TV Remote v2 protocol. Power, D-pad, volume, inputs, all of it. Shows up as a regular device on the hub, put it in activities, assign buttons, whatever. No more relying on Bluetooth for Android TV boxes or TVs with Android TV built in like Hisense. Credit to @apnar for this one.

Two-way Home Assistant. This was the big focus and it basically turns the hub into a bridge device in your smart home.

The hub and Home Assistant now sync devices in both directions. Any device HA can control, the hub can control. Any device the hub can control, HA can control. So what does that actually mean?

Say you have an LG TV that the Harmony only controls over IR. Home Assistant can control that TV over LAN natively. Pull that HA device into the hub and now your Harmony remote controls the TV over LAN. No more line-of-sight IR.

Going the other way, say you have an IR soundbar or an old hifi amp from 2010. The hub can control those over IR no problem, but Home Assistant has no way to talk to them. The hub now ships those devices into HA as power switches, input selectors, and command buttons. You can build automations around them, control them from dashboards, whatever.

And since HA syncs to Google Home / Alexa, you can now voice control IR-only devices. "Hey Google, turn up the volume on the amplifier" and it goes HA → hub → IR blast. An amplifier from 2010 with no smarts whatsoever, controlled by voice.

Wire it all together and you get stuff like: start the Watch TV activity on the remote and it powers on the TV over LAN, turns on the soundbar over IR, switches inputs, and dims the lights through HA. Or set it up so unlocking your front door turns on the amp, lights up the kitchen, and bumps the heat. Come home, sit down, play music.

There's a loop guard built in so mirrored devices dont end up in a feedback loop between the two systems.

Other stuff:

  • Bluetooth consumer keys (Home, Back, etc) for Chromecast with Google TV (original draft by @danielvijge)
  • BT path fix for hubs where hciconfig lives in /usr/sbin (reported by @NemoN)
  • Touch gets on-screen buttons and a proper hold-command picker
  • Installer measures free flash before installing so it doesn't brick anything (reported by @danielvijge)
  • Security hardening on the recovery portal (prompted by @AXEBro's review)
  • Multi-subnet cloud blocker fix (thanks @danielvijge)

Downloads: https://github.com/schlambos/harmony-hub-control/releases/latest

Updating from 1.3 is straightforward, just re-run the installer for the hub, and the Android/Mac apps install over the old ones. Any bug reports or feedback is appreciated, just throw something on GH issues.

The project is moving fast and tagged releases sometimes lag behind what's on main. Certain fixes may not be in a tagged release yet. If you want the latest, you can clone the repo and install from that instead of the release zip. The process is the same.

Still requires a rooted hub via harmony-hub-root.

65 Upvotes

82 comments sorted by

6

u/HedgerowBustler 26d ago

I have been hoping for a project like this to come along for a long time! Haven't set it up yet, but I ordered an Ultimate off Ebay to back up my Companion. Hoping to stay with these remotes for a good long time, now that a system like this is available. Thanks!

4

u/matt4542 26d ago

May be for the best as the first release had a few bugs that needed to be ironed out, not to say this one doesn't... but it's been thrown into the wild and I've gotten some good feedback. Let me know how it goes for you if you get it installed.

4

u/Shaynoagogo 26d ago

Great work; this is amazing and has brought new life to my Harmony remotes.

4

u/matt4542 26d ago

Thank you! I got my hub to a point it worked ok but not great with the original project, and as I started digging deeper into the project I thought there has to be more of us out there who would want this haha, so I'm very happy to see it getting used by others.

2

u/MachEnergy 25d ago

This is just fantastic work . I have your previous versions installed and will definitely be updating. I just wish one of my Hubs didn't remember a remote I don't have anymore, because it won't let me get past pairing with the remote. I blame Logitech not you, lol. 

2

u/Shaynoagogo 17d ago

You can delete old remotes using v2.0.

2

u/_-MjW-_ 26d ago

Will definitely be testing this.
I have an unused hub with a companion remote to try it on.

3

u/matt4542 26d ago

Let me know how it goes! If you have any trouble, let me know. Happy to troubleshoot with you.

2

u/tbgoose 26d ago

I'm jelly, my harmony stopped working so I got a sofabaton. Very limited what it can do but at least it's something.

In Aus due to limited supply the harmonies have been outrageously expensive for many years now.

3

u/matt4542 26d ago

I got a SofaBaton not too long ago and that's what pushed me towards doing this project lol

1

u/tsaylor1 21d ago

How so? Does this project benefit Sofabaton users too? I think I'm missing the connection, but I'm considering that move too so I'm curious.

2

u/seven20p 25d ago

here me out:

do you think micro usb ethernet could be supported with otg power adapter. That would be something now to get rid of the wifi altogether and turn it into an ethernet hub. We already know usb data and power is supporte# on the micro usb

5

u/matt4542 24d ago

Update:

I have eth working with a Realtek adapter. All I have on hand, so I cannot validate anything else. I'm including Reaktek, ASIX and CDC generic LAN driver support to the repo later today. Realtek and ASIX are both fairly common in the cheap USB LAN adapters, and CDC should fill in the gaps.

1

u/dtpark 24d ago edited 24d ago

Can you let us know the specific one you got, I'd like to get one that's confirmed working for myself. Thanks.

4

u/redshirts40 26d ago

It would really help me out if someone could post a tutorial video on how to set this up, starting with rooting the hub.

1

u/Brokewithrichtaste 25d ago • Bravo

I asked Google Gemini to break it down with the GitHub links simply and it helped to do all the steps

2

u/redshirts40 24d ago

Well that certainly didn't work. I forgot to enable xmpp in the app first and ran the root tool and now I can't get the root to work and I also can't get the harmony hub set back up the way it was before. I even factory reset it and it gets to 33 percent of restoration and fails every time. Tried setting it up as a new remote and it just gets stuck in configuring the hub. Guess I just bricked my hub.

2

u/Brokewithrichtaste 23d ago

I'm not sure how that's possible when xmpp let's your laptop communicate and install the scripts in to the hub. Mine was enabled but it kept refusing to connect until i restarted the hub entirely. Maybe DM OP

2

u/redshirts40 23d ago

I got it working with the original software. The issue wasn't the hub it was the app on my android phone having issues. Had to use an iPhone to get it back running again. Tried again to root it and it doesn't seem to be opening the port even with xmpp enabled. Not sure what I'm doing wrong.

1

u/redshirts40 23d ago

Wow I have to give a big shout out to you for suggesting to use Gemini for help with this. I just tried it again and I was able to get it all installed. Got the web interface on the computer and the app on my phone and it works perfectly. Thanks again.

2

u/Brokewithrichtaste 23d ago

Glad you did! As much as AI gets a bad rep for certain things it's very useful for others

1

u/ParticularPop8599 23d ago

Try the rooting tools from https://github.com/iranl/harmony-ng. They are much more refined then the original ones from harmony-hub-root. Basically impossible to brick your Hub as the tools there can recover root from factory reset hubs, which the original cannot

1

u/redshirts40 23d ago

It didn't brick my hub, turns out it was my android app not working correctly. I got it working using my iPhone instead. I also was successful today in rooting the hub and getting melodious installed.

1

u/AncientsofMumu 25d ago edited 25d ago

Does this keep current device settings and activities or are you starting from scratch?

3

u/matt4542 25d ago

It keeps all your current settings, yes! I need to put this front and center, you're not the only one who's asked 😁

1

u/AncientsofMumu 25d ago

Then im going in.

And you really do need to highlight that by the way.

1

u/Hungry_Cabinet_4600 25d ago

Hi, is it possible in to assign Elite Home Control Buttons in this version, also is it possible to assign Smart Control --) button on the left and the E (or Enter) button on the right? Thank you.

2

u/matt4542 25d ago

I had a few people report that the home control buttons are working, but I can't validate myself, I only have the Touch and the Smart Control, which neither have those in their button map.

It's pretty easy for me to put a patch out for additional button maps, but I'm reliant on others running a quick command for me and grabbing the output.

1

u/Hungry_Cabinet_4600 24d ago edited 24d ago

Hello! First of all, thank you for the incredible work on Melodious. I am running Melodious 2.0 on a rooted Harmony Hub (firmware 4.15.600) and it has completely revived my setup. The MQTT integration and Home Assistant sync are working flawlessly.

 I have a Harmony Elite and Smart Control to provide data for the extra physical buttons. I have both remotes paired to my hub and I am happy to provide the exact telemetry and JSON data to help you add support for these buttons.

 Here is the detailed data extracted directly from my Hub's /data/resources/MapList.json.

 1. Harmony Elite (Skin 111, EquadID: 16414)

These buttons are currently present in the Logitech RootButtonMap but are not being read or exposed by Melodious (a grep for "HomeControl" in ActivityList.json returns 0).

 Root Map Data (from 16414Root):

 json

{"ButtonKey":"HomeControl1", "ButtonAction":{"__type":"ButtonHomeControlAction"}}

{"ButtonKey":"HomeControl2", "ButtonAction":{"__type":"ButtonHomeControlAction"}}

{"ButtonKey":"HomeControl3", "ButtonAction":{"__type":"ButtonHomeControlAction"}}

{"ButtonKey":"HomeControl4", "ButtonAction":{"__type":"ButtonHomeControlAction"}}

{"ButtonKey":"HomeControlPlus", "ButtonAction":{"__type":"ButtonHomeControlAction"}}

{"ButtonKey":"HomeControlMinus", "ButtonAction":{"__type":"ButtonHomeControlAction"}}

Details:

 These are the 6 physical buttons at the bottom of the Elite remote (the lamp and plug icons).

 In the original Logitech software, they map to ButtonHomeControlAction.

 Currently, Melodious UI does not show these keys in the "Hard keys" mapping section for Elite.

 2. Harmony Smart Control

The screenless Smart Control has two distinct buttons on the bottom row that are currently unsupported in the UI mapping.

 Root Map Data (from 16414Root - shared map):

Note: The ButtonAction payload is omitted here because it is just a custom user mapping, but the ButtonKey names are what the UI is missing.

 json

{"ButtonKey":"NumberPlus"}

{"ButtonKey":"NumberEnter"}

Details:

 -- button: Mapped in JSON as NumberPlus (physically the -- button on the left).

 E (Enter) button: Mapped in JSON as NumberEnter (physically the E button on the right).

 These are hardcoded in the Logitech engine, but Melodious currently does not expose them as assignable hard keys in the UI.

 3. Hub & Remote IDs (for testing/reference)

Hub ID: 18918141

 Elite Remote ID: 16414 (Skin 111, Name: Harmony remote with a screen)

 Smart Control Remote ID: 16422 (Slot 1, Name: Harmony Smart Control remote)

 Current UI Status:

In the Melodious Web UI, the "Hard keys" editor only shows the standard 36 keys. The HomeControl*, NumberPlus, and NumberEnter keys are missing from the UI.

I am more than willing to test custom builds, run specific SSH commands, or provide more log outputs. I can also test if the HomeControl buttons actually send RF signals when pressed (currently Melodious seems to swallow them silently).

Thank you again for your time and for keeping the Harmony hardware alive!

2

u/matt4542 24d ago

Champion, thanks for sharing. I'll take a deeper look.

1

u/matt4542 21d ago

thanks for pulling this together and offering to test

Quick update: HomeControl1-4 and HomeControlPlus/Minus actually just landed on main (after 2.0, so it's not in the release yet). I've only tested it on a 950 (skin 112), not a real Elite (skin 111), so having you test a build would be huge, especially to confirm which lamp/plug icon maps to HomeControl1-4.

NumberPlus (--) and NumberEnter (E) are a legit catch though, those are missing from Melodious right now. Before I add them, could you paste the full HardRemoteButton JSON for those two from MapList.json (and which map they're in) plus your rf.info output? Just want to check the FunctionGroupType and exact IDs, since 16414/16417/16422 look a little mixed up in the summary.

1

u/Hungry_Cabinet_4600 20d ago edited 20d ago

Thanks for the update! I've built the main branch and installed it on my hub. I can confirm the HomeControl buttons are now showing up in the UI for both "Every activity" and individual activities.

I tested the HomeControl buttons on my Elite (skin 111). Here is the physical layout I confirmed:

  • 1 dot = upper lamp symbol → HomeControl1
  • 2 dots = upper switch symbol → HomeControl2
  • 3 dots = bottom lamp symbol → HomeControl3
  • 4 dots = bottom switch symbol → HomeControl4

So in the Melodious UI, these correspond to the '1 dot', '2 dots', '3 dots', and '4 dots' buttons.

Regarding NumberPlus and NumberEnter, here is the exact JSON from my MapList.json. To avoid the ID mixup, I've noted the map they are in:

Map: 16414Root (This is the Elite's root map. Note: NumberPlus and NumberEnter are physically on the Smart Control, but they are mapped in the Elite's root map 16414Root because it's shared).

**NumberPlus (**-- button):

json

{"ButtonLongPressAction":null,"__type":"HardRemoteButton","ButtonKey":"NumberPlus","ButtonState":1,"FunctionGroupType":0,"ButtonDoublePressAction":null,"ButtonAction":{"DeviceId-":83927276,"__type":"ButtonCommandAction","FunctionId-":39,"Order":0,"CommandName":"Back","EventType":1}}

**NumberEnter (**E button):

json

{"ButtonLongPressAction":null,"__type":"HardRemoteButton","ButtonKey":"NumberEnter","ButtonState":1,"FunctionGroupType":0,"ButtonDoublePressAction":null,"ButtonAction":{"DeviceId-":83927276,"__type":"ButtonCommandAction","FunctionId-":85,"Order":0,"CommandName":"Info","EventType":1}}

Key details:

  • FunctionGroupType: 0 (for both)
  • DeviceId: 83927276 (This is my Roku device, but the key ID and FunctionGroupType are what matter for the backend).
  • Map: Both are in 16414Root. (I also see a 16417Root in my MapList which seems to be a duplicate/alias, but the active one where these keys live is 16414Root).

As for rf.info, the command doesn't exist on my Hub's BusyBox (-sh: rf.info: not found). I can provide dmesg**,** cat /proc/rf/info**, or any other log you need.**

Edit / Additional feedback after testing the Elite (skin 111):

The HomeControl buttons (1 dot to 4 dots) work perfectly within an activity. However, there are two issues compared to the original Logitech behavior:

  1. Global operation missing: In the stock Logitech app, these home control buttons work globally (even when no activity is running, e.g., when the Hub is in "Everything off" state). In Melodious, they currently only fire when an activity is active.
  2. "Every activity" is not editable: I tried to set them globally via Home control buttons → Every activity, but the UI only shows Set up elsewhere · kept as it is and doesn't allow me to edit/override the buttons for the "no activity" state.

Is this expected behavior for now, or is global support for the HomeControl buttons planned? Thanks again!

1

u/VineMan77 25d ago

Thank you for this! Any chance you can get the USB ethernet working, like the Harmony-ng project? that would be a match made in heaven. I know it's a completely different implementation, but just figured I'd ask

3

u/matt4542 25d ago

Just got myself an eth adapter for the hub, once it arrives in the mail I'll take a look into this.

1

u/VineMan77 25d ago

Thank you!

1

u/matt4542 24d ago

Got eth working. Only can validate with Realtek, all I have on hand. I'm going to add Realtek, ASIX and generic CDC drivers to the repo later today.

1

u/VineMan77 24d ago

Can you share the adapter you bought? I'd buy one so that when you release, it's in hand

1

u/matt4542 24d ago

I'm using a generic USB hub + NIC adapter, but the actual controller is Realtek RTL8153. Realtek in general should work. The kernel is 2.6, which Linux driver support was.... mid.... at that time, so there may be a few bumps to overcome.

1

u/VineMan77 24d ago

but a microusb ethernet adapter? or a microusb hub with a usb nic?

3

u/matt4542 24d ago

I got a USB OTG adapter with USB A ports and power pass thru, and then plugged in a USB A to eth adapter ^

1

u/VineMan77 25d ago

Another follow-up - would Melodious work on a factory reset hub/remote? Or does it need to have Logitech setup first?

3

u/matt4542 23d ago

factor reset hub/remote

Answer is yes. I factory reset a 950 last night and paired it to my hub. I also factory reset a hub and ran through the entire process end to end and now have a hub that is fully functional never having touched Logitech cloud. It's not a published release yet, just a few PRs I need to clean up, but I have it mapped.

1

u/VineMan77 23d ago

wait that's crazy. So hub is factory reset, you can completely connect it via melodious without needing Harmony app at ALL? That would make your project the most important Harmony project so far!

2

u/matt4542 21d ago

Yes, correct. I did the whole chain. Took a hub, reset it, rooted it (found another vector, doesn't require xmpp, which only runs once the hub has been provisioned, set it to a "provisioned" state and installed Melodious. I'm going to clean up the whole process, it's not the cleanest right now, but it's doable.

https://github.com/schlambos/harmony-hub-control/pull/130

1

u/matt4542 25d ago

Great question - I've never run through this flow myself. I am getting my hands on a 2nd hub tomorrow for development, so I'll factory reset that one when I get it and run through and build out a process for a freshly reset hub.

I want to imagine yes, since Melodious doesn't care what state your hub is in, as long as it's rooted, and I suspect rooting it works just fine on a freshly reset hub.

1

u/seven20p 25d ago edited 25d ago

One thing I enjoy is his and her remotes ( This obviously works natively with the Elite and a Companion. Do you think there is a way that two Elites and Hubs could be synced with current state activity in the same room, Or better yet, two elites on one hub, with same programming. I am fine with two hubs that would syncronize, but one hub with two elites would work very well too. I know you have the app but multiple remotes beyond logitech's restriction would be amazing. Think about the way this could be done. I believe logitech missed how great this function could be by never introducing a low power backlit companion style remote. Perhaps we can right that wrong with modern technology and ai assistance. I would imagine a watcher service could sync the states of the both remotes. We know now this is done via BT from the base the companion. and from elite /950/ pro to the base.

4

u/matt4542 24d ago

one hub with two elites would work very well too

Follow up on this - I successfully have paired a Harmony Touch and Harmony 950 to the same hub, both showing activities, both syncing, showing state, etc. I'm still testing this out, but it seems to be only one remote can control devices at a time with the current implementation. If both remotes are active at once, it's a gamble which remotes commands are received, while the other remote patiently queues the commands you sent, and then sends them once the first remote releases connection to the hub. One the first remote releases the hub, the second remote works no problem. Issue I'm having is the remote is releasing the hub after ~45 seconds, which for a TV remote, you just want to be able to pick up a remote and GO, not worry about the state of another remote and how long it's been since its released the hub.

You will have to factory reset the 2nd remote to pair it to the hub, as it cannot have an existing cloud association to another hub, otherwise it sits on the myharmony.com screen perpetually. A fresh remote can be paired quickly by pressing mute + menu at the same time and pairing thru the webgui settings.

We're on the way, we'll see how far I can take it.

1

u/seven20p 24d ago

Perhaps a watcher / sync service from one hub to the other is best course. It should be non-trivial to keep the states synced which is all that really matters if you want that functionality. You are the driver though. I will patiently wait to see what you stir up.

3

u/matt4542 23d ago

I have two remotes working outright. A Harmony Touch and Harmony 950 both controlling the same hub directly next to each other. I'd do about 30m of back and forth testing on the remotes and had no issues.

1

u/seven20p 23d ago

are the states syncing between both remote. ie. select activity and the second remote syncs to same activity. What type of delay did you sacrifice. You stated earlier there was a 45 second period or so where it was non responsive or could become unpaired.

2

u/matt4542 21d ago

Yup all resolved. The state sync is instant between the web app, the Touch, and the 950. I press off on one, it shows the activity stopping on all three, and when I start an activity it shows on all three.

There's no delay anymore, worked around that. I had to make changes to the hal on the hub, now both are instant. I was going back and forth between button presses with one remote in each hand without a hitch.

It'll be in the next major release.

1

u/matt4542 25d ago

I plan to test this actually. I have a friend who's throwing me their Elite + hub, and I already have a Touch, so I can work on getting around that limitation. I have no clue why they would have limited like that, maybe there's a reason I'll find, but it may just be to make you get another hub lol

1

u/seven20p 25d ago

From a hardware standpoint, The Elite pairs with the hub via RF or Wifi, and the companion or smart remote pairs via BT. That is the reason you can pair the companion / smart remote independently without reconfiguring the harmony software with just two buttons. It may be a limitation of the RF/Wifi radio on the hub. That is my speculation. That should not prevent you from creating a routine that syncs two hubs together and linking the state, if you know what you are doing though.

Like you , i am not 100% confident it is a hardware limitation, but if it can be done....it could also tremendously bog down the hub and or remote performance wise. No one wants that , so I guess we just hae to wait and see.

1

u/redshirts40 23d ago edited 17d ago

Does anyone know is it possible to run a 2nd remote off one hub. My main remote is the Elite, but I also have an ultimate. Would be nice if I can use either with this hub software off the same hub.

3

u/matt4542 21d ago

Yes. This will be coming in the next release. I currently have a Harmony 950 and a Harmony Touch, which is 99% the same as your configuration, working smoothly. I'll have an update out with several fixes and features in the coming days.

3

u/crixyd 25d ago

Very cool. Looking forward to trying this out. Can I test it with risking my elite set-up and bindings?

3

u/nixgut 17d ago

This is great, but is there some dedicated forum or something - instead of the comment section here? :-)

2

u/kalifabDE 25d ago

Wow this turns harmony into what it should be!! I hope it doesn't take too long until I manage to try it.

2

u/SavageSan 24d ago edited 24d ago

I already had my Harmony remotes working with Home Assistant using several integrations tied together, but this is a much more refined setup. The greatest benefit is not being tied to Logitech servers and their sketchy software support. I have a spare hub to test this with. Thank you.

Update: Successfully rooted and Hub still works with all settings.

1

u/Accurate_Good_2740 25d ago

I started a chat with you to try to resolve errors I am getting. I am probably out of my depth with this, but maybe you can help. Regardless, I really appreciate your work on this project.

1

u/dtpark 24d ago

On the Companion remote do the Home Control buttons work? My most often used buttons are the Home Control Buttons, for instance to turn on/off and dim my lights and just wanted to verify these are working as intended. Thanks.

2

u/sumps 24d ago

App creator said it was possible, however I have not been able to find a way to assign those buttons on my companion , otherwise it works great

3

u/sumps 24d ago

a contributor submitted a PR to add the home control buttons for the companion remote .. I just installed their fork on one of my hubs and can confirm that it works and provides full access to the hard buttons .. hopefully it will be merged into the main branch soon

1

u/dtpark 24d ago

Great! Thanks for the info, appreciate it. Another question if I may, do you know if the + and - buttons brighten and dim a light as intended? I'm constantly using that functionality and wanted to confirm.

2

u/sumps 24d ago

I currently do not have the +/- buttons assigned as I am not using it with a dimmer.. however I believe it will work the way you want it to.. the description in menu where you assign the home control buttons state: "+ and − adjust the light or plug button you pressed last when it has + / − actions; otherwise they do what “+ and −” says. Light and plug buttons fire once per press and don't repeat while held. A long press fires after you hold the button for about 0.7 seconds."

1

u/dtpark 24d ago

Thanks, appreciate the info, sounds like it should work then. 🤞

1

u/Accurate_Good_2740 24d ago

Can someone please help me with errors I am getting when trying to upload the Webui? I have tried everything to get this to work. I am beginning to wonder whether my Hub is properly rooted. Does this end to the dialog look correct?

== Opening Root Shell ==
If OpenSSH reports a changed host key, verify that this is your hub before replacing the known_hosts entry.

Opening root shell. Type 'exit' to leave it.
Warning: Permanently added '192.168.50.118' (ED25519) to the list of known hosts.

BusyBox v1.13.4 (2017-09-26 16:03:52 IST) built-in shell (ash)
Enter 'help' for a list of built-in commands.

1

u/Accurate_Good_2740 24d ago

These are the errors I am receiving when trying to install the Webui on the hub. I have tried both installing directly from Windows (double clicking on the file) and using Powershell:

At C:\melodious\install_webui.ps1:1076 char:80
+ ... tent install may proceed after this report ($NewSuffix copies, then s ...
+ ~~~~~~
Unexpected token 'copies' in expression or statement.
At C:\melodious\install_webui.ps1:1076 char:79
+ ... "Persistent install may proceed after this report ($NewSuffix copies, ...
+ ~
Missing closing ')' in expression.
At C:\melodious\install_webui.ps1:1071 char:39
+ if ($Verdict -eq $VerdictAllowed) {
+ ~
Missing closing '}' in statement block or type definition.
At C:\melodious\install_webui.ps1:1066 char:25
+ function Show-Verdict() {
+ ~
Missing closing '}' in statement block or type definition.
At C:\melodious\install_webui.ps1:1076 char:115
+ ... after this report ($NewSuffix copies, then same-directory renames)."
+ ~
Unexpected token ')' in expression or statement.
At C:\melodious\install_webui.ps1:1086 char:5
+ } elseif ($Verdict -eq $VerdictCapacity) {
+ ~
Unexpected token '}' in expression or statement.
At C:\melodious\install_webui.ps1:1086 char:46
+ } elseif ($Verdict -eq $VerdictCapacity) {
+ ~
Unexpected token '{' in expression or statement.
At C:\melodious\install_webui.ps1:1090 char:7
+ } elseif ($Verdict -eq $VerdictConfigUncertain) {

1

u/Accurate_Good_2740 24d ago

Chat GPT is suggesting this is a syntax error and is suggesting the following. Anyone know if I should make this change?

1. The problem is in install_webui.ps1

At line 1076, you currently have:

Info "Persistent install may proceed after this report ($NewSuffix copies, then same-directory renames)."

I recommend changing $NewSuffix to ${NewSuffix} to make the variable boundary explicit.

The corrected line is:

Info "Persistent install may proceed after this report (${NewSuffix} copies, then same-directory renames)."

1

u/Accurate_Good_2740 24d ago

It does not appear this is the solution. Any suggestions would be greatly appreciated!

1

u/Accurate_Good_2740 24d ago

I believe that I have confirmed that my hub is properly rooted. Now if I could only get this installed.

1

u/redshirts40 23d ago

Didn't think I would be able to get this working but thanks to the suggestion to use Gemini to help by "brokewithrichtaste" I was able to get it installed. Absolutely loving this so far. Now I don't have to worry about logitech shutting off their servers and bricking my remote.

1

u/DiscoRage 20d ago

Have you looked at using the Elite's display the way Unfolded Circle remotes do? Not just whichever activity is active, but two way communication like device states, ie. your receiver's volume level, which input is selected on your TV, etc. It should be possible. You can see real time light level updates for Hue bulbs, so why not other devices?

1

u/mattwaddy 7d ago

Love the idea of this to overhaul the UI and what it's capable of doing

1

u/seven20p 20d ago edited 19d ago

The Brickening of the Hub

Well I bricked my first harmony hub this morning. I rooted it got the web control app installed, and something was wrong, it wasnt deloeting any old activities, or making new ones, hub was online but just froze like a permissions issue every time i tried to save or add something. I am stuck in a loop now , where i can get it to connect to wifi , but USB has been disabled, i am guessing by the root script.

So, while it connects to wifi sometimes, and the ip address can be pinged whether its red or green, it just doesnt do anything else, ssh 22 is closed 8088 was open but wont work for xmpp , I did not make a backup as soon as I had root, I guess I should have, I mean I would have had I known its fairly easy to brick.

I believe my root issues was i am on a really old firmware on the hub. Its been in a drawer for a couple years now. Since usb wont work it cannot get a harmony hub id , If there is a way to pull it from the api LMK I will try it. The api appears to work but 8080 does not for the hub web page.

So its a brick unless I can get usb working again. I could flash if i had the hub id. Which strangly dissapeared from the .json file that it was stored in . Its not in the recycle bin. Well I could maybe flash. I am about ready to throw the tower in. With no usb, the only thing that works in the wifi and it crashes out on logitech recovery, setup, etc. The only port like i said seems to be open in 8088.

I have more hubs, just dont like loosing a soldier.

One Down (RIP) and Nine Remaining (Harmony Hubs)

Harmony Elites 2 in use, 1 testing with melodious, and 4 more including 1 NIB

Companion Remotes, 1 in use and 4 more 3 used, 1 refurb

Harmony Ones , probably 9-10, They sure get tacky (Needs denatured alchohol treatment on grips)

Harmony 900 - 1

Harmony PS3 Hub - 1

Harmony 890 - 1

Harmony 880 - 3

Harmony 300 - 1

Harmony 675 - 2

Harmony 560 ( Xbox 360 version maybe) - 1

Trying Melodious once again today.

1

u/seven20p 19d ago

Matt4542, I finally got the root to take on another hub, Had a lot of issues again, I updated the firmware in the my harmony windows tool using Alt-F9. Then used the NG root, originally, and it would not install your melodious complaingin fo keeys, so i used the return to factory and removed that root, back to stock, then it complained of XMPP not being open on 8088 again. Then set up app on harmony android app, added one device, and went to enable XMPP but it was already enabled. So then i disabled it. saved exit. Same thing. Went back in reenabled XMPP again, and it works. all the way through. and brought me to root prompt in terminal. Good right?

Finally I get to install Melodious latest!
My Elite remote is paired and still shows Place remote on cradle . I tried manually pairing it using Menu / Mute, with the pairing tool in the app, rebooting hub. Nothing. The hub part is working, I have added devices, but cannot get catalog.py to work. It brings me to the page, to click launch appl,ication, then does nothing, nothing in the background, or anything. I dont see any url like in the readme i am supposted to either enter into the helper or terminal. I tried a basic DENON ARX3300W Receiver just to test and get the code.

I do have the harmony dump of json files for devices, but they say they are not the right format for catalog.json

This is where I am stuck. I get a url with catalog like: https://id.logi.com/launch.html?nonce=k1JTH83Cb5SX9KCwK229eY_LkRTp4anI but the readme says it should look different. The Launch Application button does nothing in chrome or edge.

1

u/LandNo9424 18d ago

I don't understand how to add a device, on the MyHarmony hub, I type in a manufacturer and model, and it does it all on its own. Here, it adds a device with no commands. Can you explain this a bit further?

1

u/pbcsd007 17d ago

Hi u/matt4542 , just rooted my two hubs with Melodious, thank you for this project! One of the hubs only had a smart remote (no screen). I picked up a new Elite remote and added it to that hub, but am struggling in Melodious to get is to recognize the screened remote. AI said I shoudl send you this...

"Instead of risking your rooted hub by manually editing SSH files to talk to Logitech's cloud, you are only one quick developer fix away from editing your Elite's screen buttons directly inside Melodious*:*

  • Your Elite Is Already Synced. Your activities (Watch TV FamRm, Watch a Movie, Watch Apple TV 2) already appear and launch on your Elite's touchscreen.
  • Why the Editor Is Locked. In Melodious 2.0, the web UI's "No remote with a screen on this hub" check was built using a Harmony Touch (skin 110) and fails to detect that your Harmony Elite (skin 111) has already synced.
  • Contact the Melodious Developer. Post your screenshots on the Melodious GitHub Issues page or the Melodious 2.0 Reddit thread. Tell the developer (matt4542) that your Elite (Slot 2 · skin 111) is paired, launches activities locally, and has Cloud Access turned off, yet the web UI still shows "No remote with a screen on this hub" and locks the on-screen button editor. Because he explicitly asked skin 111 owners for test feedback, he can patch that check directly without you having to touch SSH or Logitech's cloud. [1]"

Let me know if that make sense?

1

u/redshirts40 10d ago

Just ordered a harmony touch remote. I already had a spare hub... I can't seem to get the new remote to connect to the the hub. I have reset both and the remote still won't find the hub. Once the new software update is released I plan to add this remote to the hub I already have running with the melodious software... Just curious how do I get this remote to work right now with the hub running the logitech software? Do I need to plug the remote into the computer and use the logitech software? I just want to make sure there is no issue with the remote... Before my return window expires.

1

u/mattwaddy 7d ago

This looks great! Have you managed to overhaul the touchscreen layout on the remote so it looks better, has more features and a better overall UX?