Be aware that
emulated_hue doesn’t work for new users of Google Home with
emulated_hue. If you’ve not previously set this up and had it working, use the Google Assistant component or Nabu Casa cloud component.
emulated_hue integration provides a virtual Philips Hue bridge, written entirely in software, which allows services that work with the Hue API to interact with Home Assistant
entities. The driving use case behind for functionality is to allow Home Assistant to work with an Amazon Echo or Google Home with no setup cost outside of configuration changes.
The virtual bridge can turn entities on/off or change the brightness of dimmable lights. The volume level of media players can be controlled as brightness.
Both Google Home and Alexa use the device they were initially set up with for communication with
emulated_hue. In other words: if you remove/replace this device you will also break
emulated_hue. To recover your
emulated_hue functionality, backup your
config/emulated_hue_ids.json file, delete the original one and reboot your Home Assistant instance.
To enable the emulated Hue bridge, add one of the following configs to your
# Google Home example configuration.yaml entry emulated_hue: listen_port: 80 # Google Home does not work on different ports.
# Amazon Echo example configuration.yaml entry emulated_hue: # Required if there is no older Echo device (Like an Echo Dot 1 or 2) in the same network host_ip: YOUR.HASSIO.IP.ADDRESS listen_port: 80
The type of assistant which we are emulating. Either
google_home. This configuration option is deprecated and will be removed in a future release. It is no longer necessary to define type.
The IP address that your Home Assistant installation is running on. If you do not specify this option, the integration will attempt to determine the IP address on its own.
The port the Hue bridge API web server will run on. This can be any free port on your system.
If you need to override the IP address used for UPnP discovery. (For example, using network isolation in Docker)
If you need to specifically override the advertised UPnP port.
Whether or not to bind the UPnP (SSDP) listener to the multicast address (188.8.131.52) or instead to the (unicast) host_ip address specified above (or automatically determined). In special circumstances, like running in a FreeBSD or FreeNAS jail, you may need to disable this.
The domains that maps an “off” command to an “on” command. For example, if
scriptis included in the list, and you ask Alexa to “turn off the water plants script,” the command will be handled as if you asked her to turn on the script.
Whether or not entities should be exposed via the bridge by default instead of explicitly (see the ‘emulated_hue’ customization below). Warning: If you have a lot of devices (more than 49 total across all exposed domains), you should be careful with this option. Exposing more devices than Alexa supports can result in it not seeing any of them. If you are having trouble getting any devices to show up, try disabling this, and explicitly exposing just a few devices at a time to see if that fixes it.
The domains that are exposed by default if
expose_by_defaultis set to true.
[“switch”, “light”, “group”, “input_boolean”, “media_player”, “fan”]
Customization for entities.
A full configuration sample looks like the one below.
# Example configuration.yaml entry emulated_hue: host_ip: 192.168.1.186 listen_port: 8300 advertise_ip: 10.0.0.10 advertise_port: 8080 off_maps_to_on_domains: - script - scene expose_by_default: true exposed_domains: - light entities: light.bedroom_light: name: "Bedside Lamp" light.ceiling_lights: hidden: true
The following are attributes that can be applied in the
- name (Optional): The name that the emulated Hue will use. The default for this is the entity’s friendly name.
hidden (Optional): Whether or not the emulated Hue bridge should expose the entity. Adding
hidden: falsewill expose the entity to Alexa. The default value for this attribute is controlled by the
These attributes used to be found under the
customize section of
homeassistant, however, they have now been moved to
entities. Emulated Hue configuration under
homeassistant.customize will be deprecated in the near future.
You can verify that the
emulated_hue integration has been loaded and is responding by pointing a local browser to the following URL:
http://<HA IP Address>:8300/description.xml- This URL should return a descriptor file in the form of an XML file.
http://<HA IP Address>:8300/api/pi/lights- This will return a list of devices, lights, scenes, groups, etc.. that
emulated_hueis exposing to Alexa.
For Google Home, verify that the URLs above are using port 80, rather than port 8300 (i.e.
http://<HA IP Address>:80/description.xml).
An additional step is required to run Home Assistant as a non-root user and use port 80 when using the AiO script. Execute the following command to allow
emulated_hue to use port 80 as a non-root user.
sudo setcap 'cap_net_bind_service=+ep' /srv/homeassistant/homeassistant_venv/bin/python3
Please note that your path may be different depending on your installation method. For example, if you followed the Virtualenv instructions, your path will be