Philips Hue
The Philips Hue integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] allows you to control and monitor the lights and sensors connected to your Hue bridge. The integration supports:
- Lights
- Motion sensors (including temperature and light level sensors)
- Remotes and switches (as device triggers for automations, and also exposed as battery sensors when they are battery-powered)
Configuration
To add the Philips Hue hub to your Home Assistant instance, use this My button:
Philips Hue can be auto-discovered by Home Assistant. If an instance was found, it will be shown as Discovered. You can then set it up right away.
Manual configuration steps
If it wasn’t discovered automatically, don’t worry! You can set up a manual integration entry:
-
Browse to your Home Assistant instance.
-
In the bottom right corner, select the
Add Integration button. -
From the list, select Philips Hue.
-
Follow the instructions on screen to complete the setup.
Lights for Hue zones and rooms
The Hue concept is based on Rooms and Zones. Although the underlying Hue lights are exposed directly to Home Assistant, it might also be useful to interact with the grouped lights of the Hue ecosystem, for example, to turn all lights in a Hue group on/off at the same time.
Home Assistant creates lights for each Hue zone and room automatically but disables them by default. To enable them, go to Settings > Devices & services, select the Philips Hue integration, and enable the grouped light entities you want to use.
Gradient lights
A Hue gradient light, such as a gradient lightstrip, can show several colors at once. On a V2 bridge (square shape), Home Assistant creates an extra light entity for each color point of the gradient, named Segment 1, Segment 2, and so on. The number of segments depends on how many color points the light supports. With these entities, you can set the color of each part of the light separately, for example, in an automation or a scene.
- A segment only sets its own color. It supports colors, not color temperature. Turning a segment on or off, and changing its brightness, applies to the whole light, because the Hue bridge can’t control these for each segment.
- The segment entities are hidden by default. A command that targets the area or the device of the light only reaches the main light, not each segment. To set the color of a segment, select the segment entity itself, for example, as the target of the Turn on light action.
- If you set the color of several segments at the same time, Home Assistant sends them to the bridge together.
Scenes
You can create, edit, and delete Hue scenes from the official Hue app on iOS and Android. Each room and zone can have its own scenes, and there is a large library of preset scenes for specific moods. These Hue scenes are automatically imported into Home Assistant and available as scene entities. Creating or editing Hue scenes in Home Assistant is not supported.
Using Hue scenes is recommended when you want to control multiple lights at once. If you control multiple lights individually or use Home Assistant scenes, each command is sent to each light one by one. A Hue scene sends commands to all lights at once in an optimized way, resulting in a smoother experience.
Scene selection
On V2 Hue bridges (square shape), each room and zone has a Scene dropdown. It shows the active scene and lets you choose a regular scene or smart scene.
To select a scene:
- Go to Settings > Devices & services and select Philips Hue.
- Open the device for the room or zone you want to control.
- Use the Scene dropdown to choose a scene.
- The Scene dropdown is a select entity, so you can add it to a dashboard to select scenes directly from there.
Configuration options
After setting up the integration, the following options can be configured by going to Settings > Devices & services, selecting the Philips Hue integration, and selecting Configure.
V2 bridges (square shape)
V1 bridges (round shape)
Hue remotes and switches
Hue remotes such as the Dimmer Switch are stateless devices, meaning that they do not have an on/off state like regular entities in Home Assistant. Instead, these devices emit the event hue_event when a button is pressed. You can test what events come in by going to Settings > Tools > Events and subscribing to hue_event. Once you know what the event data looks like, you can use it to create automations.
The Hue API limits each device to one event per second. This means that button events are rate-limited to one per second.
Support for legacy (V1) Hue bridges
Signify released a newer version of the Hue bridge (square shape), and the legacy V1 bridge (round shape) is now end of life and no longer supported by Signify. Home Assistant will continue to support the V1 Hue bridge as long as it is technically possible, with the following limitations:
- Scene entities are not automatically created for V1 bridges. To activate a Hue scene on a V1 bridge from Home Assistant, use the Philips Hue: Activate scene action and refer to the scene by its group and scene name.
- State updates for devices on V1 bridges are not received instantly but polled on an interval.
- Light entities for Hue rooms are not automatically created for V1 bridges. You can opt in to creating room entities in the integration’s options.
To activate a scene on a V1 bridge:
- Go to Scripts and select Add New Script > Add Action > Philips Hue: Activate Scene.
- Select the room name in the Group field and the scene name in the Scene field.
Migrating to a Hue Bridge Pro
The Hue app can migrate your existing V2 bridge (square shape), including its lights, accessories, rooms, scenes, and automations, to a Hue Bridge Pro. Home Assistant detects this migration automatically. As soon as Home Assistant discovers the new Hue Bridge Pro on your network and can connect to it with the existing credentials, it moves the existing integration entry to the new bridge. Your devices, entities, and automations keep working.
- Complete the migration in the Hue app, including the reset of the old bridge.
- Do not add the newly discovered Hue bridge under Settings > Devices & services, and do not ignore it either. Adding it creates a second integration entry with new devices and entities. Ignoring it prevents Home Assistant from moving the existing entry to the new bridge.
- If your Hue devices are still unavailable a few minutes after the migration finished, restart Home Assistant. On startup, Home Assistant discovers the new bridge again and completes the migration.
If you ignored the new bridge by accident, go to Settings > Devices & services, show the ignored integrations, delete the ignored Philips Hue entry, and restart Home Assistant.
Replacing a bridge without migration
If you move to a new bridge without the migration in the Hue app, for example from a V1 bridge (round shape) to a V2 bridge, or from one V2 bridge to another, Home Assistant cannot detect the change. The existing integration entry keeps trying to connect to the old bridge. To move to the new bridge:
- Delete the Philips Hue integration entry of the old bridge.
- Add the new bridge. It is usually discovered automatically, or you can add it by its IP address.
- Check automations, scripts, and dashboards that refer to Hue devices, such as device triggers for Hue remotes, because device IDs change.
List of actions
The Philips Hue integrationIntegrations connect and integrate Home Assistant with your devices, services, and more. [Learn more] provides the following actions. Each link below opens a dedicated page with examples, parameters, and a step-by-step UI walkthrough.
-
Activate Hue scene (
hue.activate_scene) Activates a Hue scene with extra control over options like dynamic mode and brightness. -
Activate scene (
hue.hue_activate_scene) Activates a Hue scene by its group and scene name as stored in the Hue app.
For an overview of every action across all integrations, see the actions reference.
Data updates
V2 Hue bridges (square shape) push state changes to Home Assistant instantly over their local event stream. V1 Hue bridges (round shape) are polled on an interval because the V1 API does not support push updates.
Removing the integration
This integration follows standard integration removal. No extra steps are required.
To remove an integration instance from Home Assistant
- Go to Settings > Devices & services and select the integration card.
- Next to the entry you want to remove, select the three dots
menu. Then, select Delete. - Depending on the integration, the entries are listed under one of the following headings:
- Devices
- Hubs
- Services
- Integration entries
- Depending on the integration, the entries are listed under one of the following headings:
- To confirm, select Delete.
- Home Assistant also deletes the devices and entities of the entry.
- If Home Assistant asks you to restart, restart Home Assistant.
- If Home Assistant asks whether to also delete the application credentials, select Remove or Keep.
- If you keep them, Home Assistant uses them automatically when you add the integration again.
- To delete them later, refer to Deleting application credentials.