My Harmony remote has no idea my lights exist. Home Assistant can pretend to be a Hue hub, so now it does. Here is how I set it up.
My Logitech Harmony remote is great at one thing: turning on the TV, the soundbar and whatever I want to watch with one button. What it cannot do is touch my lights. Harmony only knows how to talk to a few light brands, and my lights are not on the list.
The fix is a little silly. Home Assistant can pretend to be a Philips Hue hub. Harmony thinks it found a Hue hub, and Home Assistant quietly does whatever the remote asks. Now I press one button and the family room lights dim.
Harmony already knows how to control Hue lights. Home Assistant already knows how to control everything in my house. The Emulated Hue feature in Home Assistant sits in the middle and says "yes, I am a Hue hub, here are my lights." Harmony never knows the difference.
You do not need a single real Hue bulb for this. The "lights" Harmony sees are just a list you pick from Home Assistant.
I kept the list short on purpose. Four things are exposed to the remote:
The scripts are the useful part. A script can do anything, so "Family Room Dim" is really one button that dims the lights to the level I like. Harmony treats each script like a light switch, so I can assign it to any button or add it to an activity.
It is a small block in the Home Assistant configuration file. The names below are samples, not my real ones:
emulated_hue:
host_ip: YOUR_HOME_ASSISTANT_IP
listen_port: 8300
expose_by_default: false
entities:
light.example_family_room:
name: "Family Room"
hidden: false
script.example_family_room_dim:
name: "Family Room Dim"
hidden: false
Three things matter here:
Restart Home Assistant after you save.
Open the Harmony app, add a Home Control device, and let it search for a Hue hub. Your Home Assistant lights and scripts show up in the list. Pick the ones you want, then assign them to buttons or to an activity.
Some older guides say you must use the Harmony desktop software for this. In my case the Harmony app on my phone found it and let me assign buttons, so try the app first.
Two ways. Standalone buttons, so I can dim or brighten the family room from the couch without picking up my phone. And inside activities, so starting a movie can also dim the room.
I also have an automation in Home Assistant that launches Plex when I start the Plex activity on the remote. Together, one button starts the TV, opens Plex and sets the lights.
This is the usual snag. A few things to check:
Yes, if you already have a Harmony remote and want your lights on it. It took me one evening, it costs nothing, and the remote suddenly does more.
I will not pretend it has a long future. Logitech has stopped making Harmony remotes, and Emulated Hue copies an older version of the Hue system. If you are buying a new remote today, look at something Home Assistant can talk to directly. If you already own a Harmony, this is a fun way to get more out of it.
I wrote about my remote setup in my Home Assistant universal remote post if you want the bigger picture.
This is a hobby project, not professional advice. Make a backup before you change your Home Assistant configuration.