♾ Sensor Light Add On - Media & Movie Lights - House Alarm Lights - Smoke Alarm Lights & Exhaust Fans + More

For LG, open sensor-light-add-on.yaml and add to the '{{ app_attribute == }} section, these lines:

  • condition: state
    entity_id: !input trigger_entities
    match: any
    attribute: source
    state: !input app_attribute

Then it will track what LG is playing. Note that unless Blacky adds it to his yaml, the next update may overwrite it.

I’m getting

Logger: homeassistant.components.automation.family_room_sensor_light_activation
Error rendering variables: UndefinedError: 'list object' has no attribute 'entity_id' Source: components/automation/__init__.py:724 Time: 2025-12-25 07:04:03

LLM claims

That error means one of your variables templates in automation.family_room_sensor_light_activation is treating a list like it’s a single entity/state object.

@Ingo

Could you please provide us your YAML of the automation? This YAML code are the settings you have selected in the automation so I can help. To do this go into your automation, top right 3 dots, Edit in YAML, copy all the code, come back to the forum and in your reply at the top tool bar click on “</>” and paste code in there.

Blacky :grinning:

I’m not at home right now, but I grabbed the code, just won’t be able to test for a while:

alias: Family Room Sensor Light Activation
description: >-
  This automation activates the sensor lights in the family room when specific
  media players start playing content, allowing for a cinematic effect. It takes
  into account time delays for intermissions and pauses, ensuring lights are
  appropriately controlled during viewing sessions.
use_blueprint:
  path: Blackshome/sensor-light-add-on.yaml
  input:
    trigger_entities:
      - media_player.family_room_virtual_player
      - media_player.family_room_virtual_player_2
      - media_player.z9x_8k
      - media_player.emby_shield
    trigger_on_state:
      - playing
    time_delay: 2
    include_intermission: intermission_enable
    intermission_state:
      - paused
      - idle

@Ingo

You need to enter in your Movie Lights into **Lights - Switches - Scenes - Scripts *** and you also selected Intermission Lights so you will need to enter in your Intermission - Lights - Switches - Scenes - Scripts.

PS: I just fixed a bug so update the blueprint by clicking on the import blueprint button again.

Blacky :grinning:

New Update - Version 2.4

Lights, Camera, Action! Get ready to grab the popcorn because it’s movie time with a touch of cinematic magic! :clapper::sparkles:

:bug: Bugs Fixed

  • Fixed an issue where a switch that was already ON before the movie started would not turn back ON when selected in the Lights ON at End section.

:toolbox: Maintenance

  • Update movie lights description input.

If you like this blueprint? Consider hitting the :heart: button in the top post :+1:

If you like my blueprints, and would like to show your support or just say thank you? Click Here :smiling_face_with_three_hearts:

Enjoy

Blacky :grinning:

hi @Blacky , with apologies if i’ve missed an update, but is there a way to set the Sensor Lights blueprint to always turn on using the current colour temperature as stored in a variable? This would fix a little niggle I have with the otherwise completely perfect blueprint. (It really is great, I use it for ALL my lights.)

@iandogherty

You would probably do that using a script and then use the script in the Lights - Switches - Scenes - Scripts input.

Blacky :grinning: