Philips Ambilight TV - 55PUS8897/12

Hello,

I recently replaced my old Nvidia Shield and bought another TV, the Philips 55PUS8897/12.

One nifty thing I used on the old Shield was listening at the play state and based on media player state, I either dimmed the lights if state was playing, or turned the lights brighter if state was idle or paused.

That sounded easy to fix but I’m struggling to get my automation to work. I can’t figure out why. The scenes are valid but I believe the issue either lies with TV compatibility or integration.

Integration:


Strange this here is that _2 media player is visible entity under TV Integration…

The integrations creates two media playerp, one that seems valid, the other one not sure what it is for:

-media_player.55pus8897_12: This actually shows correct “channel” and play state. For instance netflix and playing

-media_player.55pus8897_12_2


With above info, I believe I’m looking at the right media player.
Any help is appreciated, can’t figure out what I’m doing wrong.

Scenes:

# Scene: TV Playing
- id: scene_tv_playing
  name: TV Playing
  entities:
    light.hue_white_lamp_3:
      state: on
      brightness: 50
      transition: 3
    light.hue_white_lamp_1:
      state: on
      brightness: 50
      transition: 3
    light.hue_go_1:
      state: on
      brightness: 50
      transition: 3
    light.55pus8897_12_ambilight:
      state: on
      effect: "FOLLOW_VIDEO: IMMERSIVE"

# Scene: TV Pause
- id: scene_tv_pause
  name: TV Pause
  entities:
    light.hue_white_lamp_3:
      state: on
      brightness: 200
      transition: 3
    light.hue_white_lamp_1:
      state: on
      brightness: 200
      transition: 3
    light.hue_go_1:
      state: on
      brightness: 200
      transition: 3


Automations:


# =========== 1. Dim Lights When TV is Playing ===========
- id: dimtvlights
  alias: Dim Lights When TV is Playing
  description: >
    Dim the Philips Hue TV's Ambilight and living room lights
    when the TV starts playing.
  trigger:
    - platform: state
      entity_id: media_player.55pus8897_12
      to: 'playing'
  action:
    - service: scene.turn_on
      target:
        entity_id: scene.scene_tv_playing
  mode: single

# =========== 2. Restore Lights When TV is Idle or Paused ===========
- id: restoretvlights
  alias: Restore Lights When TV is Idle or Paused
  description: >
    Restore the Philips Hue TV's Ambilight and living room lights
    when the TV returns to idle or is paused.
  trigger:
    - platform: state
      entity_id: media_player.55pus8897_12
      to:
        - 'paused'
        - 'idle'
  action:
    - service: scene.turn_on
      target:
        entity_id: scene.scene_tv_pause
  mode: single
  • What do the automation traces say? Or aren’t there any?
  • Are there any errors in the logs logs about loading automations? (your ids are hand made, maybe you have duplicates from copying the old automations)
  • Have you checked the states of the media player in the developer tools to make sure they are changing to the values you expect when needed

They seem to trigger correctly, but my lights are not dimming :crazy_face:

Updated top post with images and some more text

Any errors in the logs or the automation trace?

Not that I can see from automation trace at least:

This is interesting:

2025-02-03 22:16:03.206 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities scene.scene_tv_pause are missing or not currently available

2025-02-03 22:16:05.465 WARNING (MainThread) [homeassistant.helpers.service] Referenced entities scene.scene_tv_playing are missing or not currently available

Also got one of these:

Logger: pychromecast.socket_client
Source: /usr/local/lib/python3.13/site-packages/pychromecast/socket_client.py:416
First occurred: 9:53:49 PM (1 occurrences)
Last logged: 9:53:49 PM

[55PUS8897/12(192.168.1.209):8009] Failed to connect to service HostServiceInfo(host=‘192.168.1.209’, port=8009), retrying in 5.0s

Matches IP of the TV

Something is broken with scenes in my system, I replaced the automation with direct light changes instead of going via a scene.