Using Emulated Hue with regular Hue for home control buttons on Harmony

Tags: #<Tag:0x00007f325d1f8fb0>

I’m hoping someone can help me out here because I’ve searched high and low over the internet the past few days and am starting to lose my mind.

I have a physical Philips Hue bridge and lights, the Logitech Harmony Companion and I want to assign the home control buttons on the remote to scenes, which I know can’t be done without intervention.

This is the remote I have, and these are the buttons I want to program with light scenes.

I’ve been playing around with Emulated Hue, assuming that’s the route to go. But now I’m not so sure.

The scenes I want to control were created within the iOS Home app (not sure if that matters and if I need to recreate them elsewhere) - one is ‘TV Mode’ which basically dims my three Philips bulbs in the living room; the second is ‘Normal Mode’ which turns them back up to 100% brightness.

What is the simplest way to do this, please?

Below is a section of my configuration.yaml for Emulated Hue:

host_ip: !secret ha_ip_address
listen_port: 8300
advertise_ip: !secret ha_ip_address
advertise_port: 8300
upnp_bind_multicast: true
off_maps_to_on_domains:
  - script
  - scene
expose_by_default: false
exposed_domains:
  - light
  - switch
  - input_boolean
  - group
entities:
  light.hh_dimmer:
    name: "HH"
    hidden: false

And then I have another YAML - light_group.yaml - as below:

- platform: template
  lights:
    hh_dimmer:
      friendly_name: "HH"
      turn_on:
      turn_off:
      set_level:

When I navigate to http://myIP:8300/api/pi/lights I see the following:

{
  "1": {
    "state": {
      "on": false, 
      "reachable": true, 
      "mode": "homeautomation", 
      "bri": 1
    }, 
    "name": "HH", 
    "uniqueid": "00:eb:5b:f5:28:00:21:f3-2a", 
    "manufacturername": "Home Assistant", 
    "swversion": "123", 
    "type": "Dimmable light", 
    "modelid": "HASS123"
  }
}

And when I navigate to http://myIP:8300/description.xml, I see the following:

<root xmlns="urn:schemas-upnp-org:device-1-0">
  <specVersion>
    <major>1</major>
    <minor>0</minor>
  </specVersion>
  <URLBase>http://REDACTED:8300/</URLBase>
  <device>
    <deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
    <friendlyName>Home Assistant Bridge (REDACTED)</friendlyName>
    <manufacturer>Royal Philips Electronics</manufacturer>
    <manufacturerURL>http://www.philips.com</manufacturerURL>
    <modelDescription>Philips hue Personal Wireless Lighting</modelDescription>
    <modelName>Philips hue bridge 2015</modelName>
    <modelNumber>BSB002</modelNumber>
    <modelURL>http://www.meethue.com</modelURL>
    <serialNumber>001788FFFE23BFC2</serialNumber>
    <UDN>uuid:2f402f80-da50-11e1-9b23-001788255acc</UDN>
  </device>
</root>

So it would appear everything is setup as it should be, although I’m not sure I need to do it this way, i.e. creation of two lights via the light protocol, creation of a group, and then the entities within the Emulated Hue declaration - seems overkill, but I don’t know.

Within the Home app, I can see the following: https://imgur.com/VyYtfxA.

All looks good so far.

And I can even get as far as opening the Harmony iOS app and going to Devices > Add Device > Home Control and Philips Hue does appear in there. It will try to connect and then I get the following screen:

https://imgur.com/24rEO2H.

But then it goes back to the Add Device page having not added the device. I then have to re-sync the Harmony app before it will appear again, and then the same thing happens again and again.

So… that is as far as I can get! Any help and support would be massively, massively appreciated. If I can program those home control buttons I’ll be a happy guy!