[Custom Integration] Ambilight Sync for Philips TVs → Any Home Assistant RGB Light
Hi everyone!
I’d like to share Ambilight Sync for Home Assistant, a custom integration I’ve been developing to extend Philips Ambilight beyond the TV using RGB lights already connected to Home Assistant.
The integration reads Ambilight colors directly from the Philips TV through its local jointSPACE API and synchronizes them with standard Home Assistant light.* entities.
Ambilight Sync runs entirely locally and requires no additional cloud service, screen capture, or dedicated synchronization hardware. Your lights continue using their existing Home Assistant integrations. A Hue Bridge is not required by Ambilight Sync, although lights that normally depend on a bridge can continue using it through Home Assistant.
GitHub Repository · Latest Release · Documentation
Demo
Philips Ambilight synchronized with a Xiaomi Mi Bedside Lamp 2 connected through HomeKit.
How it works
Philips Ambilight TV
↓
jointSPACE API
↓
Home Assistant
↓
RGB lights
The TV already calculates Ambilight colors internally. Ambilight Sync reads those values over the local network and uses them to control compatible smart lights.
This means you can extend the lighting around your room without additional video-processing hardware.
Two lighting engines: Classic and Ambient
Ambilight Sync offers two lighting engines, allowing you to choose how your lights respond to the screen.
Classic
Traditional Ambilight zone mapping with extensive customization.
- Assign individual screen zones to each light.
- Combine multiple zones with adjustable weights.
- Position lights using X/Y coordinates.
- Adjust Zone Falloff / Spread to control how widely colors are blended.
- Preview the influence of individual Ambilight segments.
Classic is ideal for straightforward Ambilight extensions or setups where precise zone control is preferred.
Ambient 3D
A spatial lighting engine designed to represent the physical layout of your room.
- Position your TV and lights in a 3D environment.
- Use linked front and top views for placement.
- Configure height, depth, distance, and TV rotation.
- Choose different lighting behaviors, including Natural, Matte, Reflective, Atmospheric, and Phosphor.
- Identify physical lights directly from the room editor.
Instead of treating every light as a simple screen-edge extension, Ambient uses the room layout to calculate lighting effects.
Both engines are available in the same integration and can be switched from the sidebar panel.
Main features
- Broad light compatibility. Use RGB-capable Home Assistant lights connected through Matter, Zigbee, HomeKit, Hue, Govee, Wi-Fi, and other supported integrations.
- Independent update rates. Configure TV polling and individual light update rates, with per-light overrides.
- Advanced color sampling. Choose between Average, Perceptual, and Dominant methods.
- Fine-tuned lighting. Adjust intensity, saturation, brightness limits, hardware transitions, and software smoothing.
- Responsive effects. Use scene-cut detection to react faster to sudden image changes.
- Dark-scene control. Configure smooth fading, minimum brightness, and delayed switch-off.
- Custom presets. Save lighting configurations and switch between them manually or through automations.
- Interactive controls. View live color previews, identify physical lights, and temporarily exclude individual lights from synchronization.
- Automatic recovery. Restore previous light states, manage inactivity, and recover from network interruptions.
- Diagnostics and backups. Monitor connection and performance information, and export or import your configuration.
The integration also includes a dedicated sidebar interface for managing lights, presets, room positioning, and synchronization settings.
Dark scenes and inactivity handling
Ambilight Sync includes configurable dark-scene behavior for individual lights, allowing them to fade smoothly, maintain a minimum brightness, or turn off after a delay.
For extended periods of completely black Ambilight data, optional inactivity handling offers three modes:
| Mode | Behavior |
|---|---|
| Do nothing | Maintain normal synchronization and polling. This is the default. |
| Reduce polling rate | Automatically lower the polling frequency after sustained black frames. |
| Stop synchronization | Stop Sync entirely after the configured inactivity timeout. |
The inactivity timeout is configurable, with a default of 60 seconds.
When reduced polling is active, normal polling resumes automatically after receiving a non-black frame.
When Sync stops automatically, you can choose whether to restore the lights to their previous states. Restoration also supports configurable native transitions from 0 to 5 seconds, allowing the room lighting to return smoothly instead of changing abruptly.
Network failures are handled separately and do not count as black-frame inactivity.
Connection recovery
Ambilight Sync includes automatic connection recovery to help maintain synchronization after network interruptions.
If the TV becomes unreachable, the integration can attempt to rediscover it using SSDP/UPnP.
When the TV receives a different IP address, Ambilight Sync can update its connection automatically after verifying the device identity.
Existing pairing credentials are preserved whenever possible.
Compatible TVs can also provide Ambilight color data through unauthenticated HTTP, while HTTPS pairing remains supported.
Automatic discovery depends on the TV and network configuration, so it may not work across isolated networks or VLAN boundaries.
Presets and automations
Presets allow you to save different lighting configurations for different situations, such as Movie, Gaming, Night, or Soft Ambient.
Presets can also be activated through Home Assistant automations:
action: ambilight_sync.activate_preset
data:
preset: Movie
The integration exposes a synchronization switch, typically switch.ambilight_sync.
This can be used in automations to start synchronization when a media player begins playing, or exposed to Apple Home through Home Assistant’s HomeKit Bridge.
Tested lights
These results are based on specific configurations. Actual performance depends on the light, firmware, connection protocol, and network.
| Light | Connection | Observed behavior |
|---|---|---|
| Xiaomi Mi Bedside Lamp 2 | HomeKit | Excellent responsiveness and smooth transitions, tested up to 8 Hz. |
| Govee M1 | Govee lights local | Good responsiveness; higher update rates help compensate for limited native transitions. |
| Govee M1 | Matter | Noticeable latency and slow updates in the tested setup. |
| Yandex GX53 | Matter | Good results at lower update rates with smooth transitions. |
Different smart lights handle frequent color updates very differently. This is why Ambilight Sync allows individual update rates and transition settings.
Installation
Home Assistant Marketplace
For Home Assistant 2026.11 and newer, Ambilight Sync can be installed through the built-in Marketplace.
- Open Settings → Marketplace.
- Select Add from link.
- Enter the repository URL:
https://github.com/uccae/Ambilight-Sync-for-Home-Assistant
- Connect GitHub if prompted.
- Add the repository as an Integration and select Install.
- Restart Home Assistant.
- Open Settings → Devices & services → Add integration and search for Ambilight Sync.
Existing HACS installations are migrated automatically by Home Assistant.
HACS and manual installation
For Home Assistant 2026.10 and earlier, install the integration through HACS → Custom repositories, or download it manually from GitHub.
After installation, add your Philips TV, complete PIN pairing if required, and configure your lights through the Ambilight Sync sidebar panel.
For detailed setup instructions and other installation methods, see the README.
Compatibility
You need:
- A Philips Ambilight TV exposing color information through the jointSPACE API.
- A supported API version (1, 5, or 6, depending on the model and firmware).
- Home Assistant with local network access to the TV.
- At least one RGB-capable
light.*entity.
Compatibility and performance may vary depending on the TV firmware and smart-light integration.
Development and feedback
Ambilight Sync is an actively developed community project focused on making Philips Ambilight work with a wider range of smart lighting setups.
I’m continuing to improve compatibility, performance, lighting behavior, and the overall experience. Testing on different Philips TVs and smart lights is especially valuable.
If you encounter an issue, please include as much of the following information as possible:
Philips TV model:
TV firmware:
jointSPACE API version:
Home Assistant version:
Ambilight Sync version:
Light model:
Home Assistant light integration:
TV polling rate:
Light update rate:
Observed behavior:
Relevant error messages:
Please remove credentials, tokens, and other sensitive information from logs before sharing them.
Feedback, bug reports, suggestions, and contributions are always welcome!
Thanks to everyone who has already tested the integration and provided feedback. Your reports have helped improve the project considerably!