Emulated Hue entities not showing

Hi !!

I’m trying to get emulated hue working with Amazon Echo.
I have set it up like this (on a Hassio):

emulated_hue:
  type: alexa
  host_ip: 192.168.1.155
  listen_port: 80
  expose_by_default: false
  entities:
    light.living_room__ceiling_light:
      name: "Spots Salon"
    light.bedroom_lights:
      name: "chambre"

With this configuration, I can’t see any lights.

My description.xml:

<root xmlns="urn:schemas-upnp-org:device-1-0">
<specVersion>
<major>1</major>
<minor>0</minor>
</specVersion>
<URLBase>http://192.168.1.155:80/</URLBase>
<device>
<deviceType>urn:schemas-upnp-org:device:Basic:1</deviceType>
<friendlyName>HASS Bridge (192.168.1.155)</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>1234</serialNumber>
<UDN>uuid:2f402f80-da50-11e1-9b23-001788255acc</UDN>
</device>
</root>

and /api/pi/lights is just empty:

{}

Maybe I have make a mistake in my configuration ?

I’m not sure since I’m using expose_by_default: true, but I think with your config, you’d explicitely need to configure each entity that should be visible via emulated_hue.
Try adding hidden: false in addition to the name:-attribute for each of the entities.

Sebastian

1 Like

Have tried just…

emulated_hue:
  expose_by_default: false
  entities:
    light.living_room__ceiling_light:
      name: "Spots Salon"
    light.bedroom_lights:
      name: "chambre"

as @sebk-666 said, you need to add hidden: false on each light to expose them because you have expose_by_default set to false.

emulated_hue:
  type: alexa
  host_ip: 192.168.1.155
  listen_port: 80
  expose_by_default: false
  entities:
    light.living_room__ceiling_light:
      name: "Spots Salon"
      hidden: false
    light.bedroom_lights:
      name: "chambre"
      hidden: false

or

emulated_hue:
  type: alexa
  host_ip: 192.168.1.155
  listen_port: 80
  expose_by_default: true
  entities:
    light.living_room__ceiling_light:
      name: "Spots Salon"
    light.bedroom_lights:
      name: "chambre"

Good call, haven’t used it since they moved everything out of customize.yaml, does say in the Docs…

hidden (Optional): Whether or not the emulated Hue bridge should expose the entity. Adding hidden: false will expose the entity to Alexa. The default value for this attribute is controlled by the expose_by_default option.

1 Like

Yeah, its confusing though. I had to read it like 4 times before it clicked.

thanks guys ! I’ll try this now !

@sebk-666 @Bobby_Nobble @petro

It works :slight_smile:

I’m going to edit the documentation for others !

1 Like

This issue is the only reference on the entire internet! This is inverse logic and if used in conjunction with “expose_by_default:false”

Indeed you must use “hidden:false” but this is NOT clear in the original documentation here:

Please add this more clear for other users :-).

Thanks for this post!!!

1 Like

if you use “expose_by_default: true”, you will see all devices except those with hidden:true.
if you use “expose_by_default: false”, you will see only devices with hidden:false.