Philips Hue emulation not exposing?

Hello,

I just added the following config to my configuration.yaml file:



emulated_hue:
  host_ip: 192.168.123.50
  listen_port: 80
  expose_by_default: true
  exposed_domains:
    - light
  entities:
    light.living_light:
      name: "living_light"

But for some reason when I go to: 192.168.123.50/api/pi/lights it shows {}
Why is my light.living_light not being shown? Do I need to create the entity somewhere in my config file as well?

Does the entity light.living_room already in your system? It should if you are attempting to make it visible as a Philips Hue device.

In other words, the Emulated Hue integration doesn’t create entities, it makes existing ones appear to be Philips Hue devices.

Hello, no it doesn’t exist yet. Can I create the light.living_room entity somehow? I tried looking online but haven’t found it yet. I would like to expose a dummy light, which I can toggle with my harmony hub; then I will watch this dummy light and send a mqtt signal to an mqtt enabled switch.

If you have an “mqtt enabled switch”, do you have it represented in Home Assistant as a switch entity via the MQTT Switch integration?

I have several switches controlled by MQTT and they all appear as switch entities by means of the MQTT Switch integration.

An automation can be used to permit commands from the Harmony Hub to control the switch entity (which can be used with Emulated Hue).

…and you can expose switches via emulated_hue, so the step through a “fake” light seems unnecessary

Thanks everybody, stupid me thought that hue could only expose light entities. But if you are telling me I can expose the mqtt switch (which already exists in my HA); I will try that!

Will the exposed switches be listed under /api/pi/switches ? And the exposed domains, will be ‘switch’ then?

The eligible domains are listed here.

I use something very similar to the Emulated Hue integration. It makes everything appear to be a Philips Hue light.

I think your first step should be to create a switch entity using the MQTT Switch integration. Once you have it working properly, it’s simple to add the switch to the Emulated Hue integration.

Cool, thank you very much. I will get to work with the info provided by you guys/girls!