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