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

Its all good :grin::muscle:t2:

Everything works like a charm now❤️

Thank you very much :sunglasses::muscle:t2::denmark:

Thank you for your quick response. Is it possible to change the “End Turn ON - Lights - Switches - Scenes” to allow scripts?

I am using a script in the linked automation do determine what lights to turn on and with what settings and I would like to just use that script to turn the light back on.

I tested it with the snapshot for now and that works!

@klunkefar

No problem at all

Enjoy

Blacky :smiley:

@GleDel

Yea I will look into it.

Glad you got it going

Blacky :smiley:

Thank You. I noticed something else.

The Intermission function works just fine when the state of my apple tv is ‘paused’. But somehow i cannot get it to work with ‘Idle’ (or ‘Inactief’ in dutch)

I would like to make the lights slightly brighter when paused or idle and turn them off when standby.

@GleDel

Looks like you have Idle and it should be idle case sensitive. Best way is to look in your developer tools and put it into idle. Then just copy paste the state.

Blacky :smiley:

Looks like it indeed was a ‘case sensitive’ issue. Thanks again!

Looking forward to the script update. Thank you.

Nice one :+1:

Okay

Blacky :smiley:

New Update - Version 1.9

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

New Feature :new:

  • End Turn ON - You can now select scripts. If you are using a script in the Sensor Light Blueprint this allows you to use the same script when using the automation link option.

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:

Super awesome as always. A few nitpicks about the awesome app feature (mostly just proper app labeling):

  • If the app is for an Apple TV, rename it to “Apple TV”. (E.g. Plex - Apple TV) vs just “Apple” as that’s not always specific enough.
  • HBO Max is now just officially “Max”
  • I’m not sure what the plain “Apple TV” in the app list refers to? Do you mean “Apple TV+” the streaming service? That app is on other platforms too, so I would relabel it to “Apple TV+ - Apple TV” to be clearer
  • Maybe use ( ) around the media player platform name? “Apple TV+ - Apple TV” looks a bit messy. “Apple TV+ (Apple TV)” I think looks better.

Thanks for your suggestions.

Blacky :smiley:

New Update - Version 2.0

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

New Feature :new:

  • Intermission - Trigger State - You can now select idle from the drop down list.

Maintenance :toolbox:

  • The APP Option - Cleaned up selections in the drop down to make it clearer from feedback given.

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:

Awesome thanks! Just one question…what app is “Apple TV & TV+” though?

Apple TV = The physical black puck that runs tvOS
Apple TV+ = The streaming TV service for movies/TV shows

I think it should read “Apple TV+ (Apple TV)” to remain consistent with the rest of the list, assuming you mean Apple’s streaming service app when using the physical Apple TV black box.

Because it is Apple TV (The physical black puck that runs tvOS) we don’t need to say it is Apple TV like this ‘Apple TV & TV+ (Apple TV)’. In apple TV you go into the app ‘Apple TV’ inside that app you can play your movies or anything you purchased etc. You can also select Apple TV+. It is all the same app app_id. So there are 2 parts to the app.

Hope this make scene

Blacky :smiley:

I’ve some apple tv additions for anyone who needs them:

            - label: Disney+ (Apple TV)
              value: com.disney.disneyplus
            - label: Infuse (Apple TV)
              value: com.firecore.infuse
            - label: Jellyfin (Apple TV)
              value: com.jellyfin.swiftfin

Hello
I love the idea in this automation. I don’t have separate lights to turn on, I’m just looking to dim the same lights. But I can’t seem to get it to work. Whenever I pause, the lights turn off rather than going to the intermission star or snapshot. Any help?

alias: Movie transitions
description: ""
use_blueprint:
  path: Blackshome/sensor-light-add-on.yaml
  input:
    trigger_bypass: input_boolean.movie_mode
    light_switch:
      entity_id:
        - light.living_room_side_lights
    include_light_control:
      - use_brightness
      - use_colour_temperature
      - use_transition
    light_brightness: 28
    light_transition_on: 3
    light_transition_off: 2
    include_intermission: intermission_disable
    intermission_state:
      - paused
      - idle
    trigger_entities:
      - media_player.jellyfin_lg_smart_tv
    intermission_include_light_control:
      - use_brightness
      - use_colour_temperature
    intermission_light_brightness: 80
    intermission_light_colour_temperature: 4000
    light_colour_temperature: 3500
    include_end_turn_on: enable_end_turn_on_snapshot
    intermission_light_switch:
      entity_id: light.living_room_side_lights_old
    end_snapshot_helper: input_boolean.movie_snapshot_helper
    end_light_switch:
      entity_id: light.living_room_side_lights_old
    end_include_light_control:
      - use_brightness
      - use_colour_temperature
    end_light_brightness: 80
    end_light_colour_temperature: 6100
    end_light_transition_on: 4
    include_automation_link: disable_automation_link
    automation_link: []
    include_sun: sun_enabled
    include_bypass: bypass_disabled
    trigger_off_state:
      - standby
      - paused
    trigger_on_state:
      - playing
    end_snapshot_name: lights_before_movie
    ambient_light_value: 20
    ambient_light_options: ambient_light_option_enabled
    time_delay: 0.5
    include_start_turn_off: enable_start_turn_off

@geozza

Welcome to the community :wave:

Your have ‘paused’ in your ‘Trigger - OFF State’, please remove it from there and only have it in ‘Intermission - Trigger State’. Hope you can see the conflict.

Let us know how you go.

Blacky :smiley:

Hiya.

Thanks for the quick response. I adjusted that this evening to have the off state as standby (a state my media player doesn’t give), but it seems whenever I have have the intermission enabled, the lights turn off when paused. The lights also don’t seem at any point to return to a before movie state with the snapshot.

Please forgive my ignorance. I’m doing my best haha


alias: Movie transitions
description: ""
use_blueprint:
  path: Blackshome/sensor-light-add-on.yaml
  input:
    trigger_bypass: input_boolean.movie_mode
    light_switch:
      entity_id:
        - light.living_room_side_lights
    include_light_control:
      - use_brightness
      - use_colour_temperature
      - use_transition
    light_brightness: 28
    light_transition_on: 3
    light_transition_off: 2
    include_intermission: intermission_enable
    intermission_state:
      - paused
      - idle
    trigger_entities:
      - media_player.jellyfin_lg_smart_tv
    intermission_include_light_control:
      - use_brightness
      - use_colour_temperature
    intermission_light_brightness: 80
    intermission_light_colour_temperature: 4000
    light_colour_temperature: 3500
    include_end_turn_on: enable_end_turn_on_snapshot
    intermission_light_switch:
      entity_id: light.living_room_side_lights_old
    end_snapshot_helper: input_boolean.movie_snapshot_helper
    end_light_switch:
      entity_id: light.living_room_side_lights_old
    end_include_light_control:
      - use_brightness
      - use_colour_temperature
    end_light_brightness: 80
    end_light_colour_temperature: 5000
    end_light_transition_on: 4
    include_automation_link: disable_automation_link
    automation_link: []
    include_sun: sun_enabled
    include_bypass: bypass_disabled
    trigger_off_state:
      - standby
    trigger_on_state:
      - playing
    end_snapshot_name: lights_before_movie
    ambient_light_value: 20
    ambient_light_options: ambient_light_option_enabled
    time_delay: 0.5
    include_start_turn_off: enable_start_turn_off

@geozza

This is really important, you need to see what state your ‘media_player.jellyfin_lg_smart_tv’ provides. Looks like you know how to see what the state it is in but just encase you are unsure go into developer tools and search for your media player, then play a move, pause it, cancel it, stop it, etc and see what states it provides. It is case sensitive so you have to copy it exactly to what is provided. Then you can add your states in buy typing it and hitting enter and you should see your state is added. Then remove any state your media (TV) doesn’t provide.

I have also noted that you have 2 different entities for your lights, it is probably correct but just checking.

  • light.living_room_side_lights
  • light.living_room_side_lights_old

The states are critical for it to work correctly.

Please let us know how you go and if you still can’t work it out we will get there in the end… happy to help.

Blacky :smiley:

My Google 4K Chromecast App list.