HA setup for home theater lighting

Ok, Hopfully I am in the right place, as other forums have been dead ends.

I setup HA on my unraid server for doing lighting automations in my home theater. I am trying to setup lights turning on and off with the system, dimming on movie play, lights up on pause, and lights up on movie stop.

I have been able to get everything working* except for the lights up on movie end/stop. There is no trigger option for stop.

  • am also having issues with dimming % as I end up doing a “brightness decrease” but have to setup a repeat action to get it to do enough, but it seems to do different amounts of dimming sometimes, not very consistent. Is there a better way? I’m fairly tech savvy, but very new to HA so any help would be appreciated.

I currently have a few govee lights that have the API option for testing. would different lights offer more options?

Let me know, thanks!

I use scenes with transitions triggered by play, pause and idle.

action:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - play
        sequence:
          - data:
              transition: 5
            target:
              entity_id: scene.film
            action: scene.turn_on
      - conditions:
          - condition: trigger
            id:
              - pause
        sequence:
          - data:
              transition: 5
            target:
              entity_id: scene.night
            action: scene.turn_on
      - conditions:
          - condition: trigger
            id:
              - idle
        sequence:
          - data:
              transition: 5
            target:
              entity_id: scene.night
            action: scene.turn_on
mode: single

What are you getting the idle trigger from? Have tried that from several devices and the “lights up on stop/end” does not get triggered.

Hi @XDUDE3D what are you using to watch on in your theatre? I personally have Apple TV and have done something similar. The Apple TV when integrated with the Apple Homekit integration exposes Idle, Paused, Playing, etc.

1 Like

Currently its plex on an nvidia shield. Have tried the “idle” trigger for both plex and the shield but no luck.

Have you watched the log book of your Nvidia Shield integration and seen what events fire during what you want to trigger your automation?

For some reason my shield’s authentication expired and I can’t get the code to pop up on the shield to re enable it… let me get this worked out then I will check the logs and double check I’m not missing something.

1 Like

It’s from the states of the Apple TV’s I am using as a media player.

Logs for the shield are only turn on and off events, it does not show any other events… is there a setting in the shield i need to enable for it to broadcast all events? and when plex is stopped, the log just says “became unavailable” but that’s not a state i can trigger off of…

Starting to wonder if my issues are player based… I am thinking about getting a zidoo UHD8000 player, wondering if that will broadcast more detailed events to trigger off of…

I’ll be honest I have yet to integrate an Android TV with HA but this integration while it has a little manual configuration involved might be helpful if you’ve not filled this already.
Android TV ADB
Here’s is a doc that describes the App configs Plex App Android TV

Configuration.yaml snippet

media_player:

  - platform: androidtv
    host: !secret shield_shield_tv_ip
    name: "shield Shield"
    adb_server_ip: 127.0.0.1
    adb_server_port: 5037
    apps:
      "com.plexapp.android": "Plex"

Let me know if this helps?

Thanks for the info, from what I can tell that helps with allowing HA to work with installed apps but does not really change the status of the apps to allow triggering. Unless I missed something… I have heard people have gotten the fade on stop/credits but I cant find out how they did it. I’m ripping my hair out trying to figure this out.

Found this:

But really would like to us HA and not a web based 3rd party to relay the triggers… Making progress but still all this trouble for the “lights up on stop/credits/end” as all the other triggers I got working good enough for now.