#Prevent Automation from changing Lights

1 messages · Page 1 of 1 (latest)

karmic belfry
#

Hi I have some automations that turn on/off lights when my Shield is on/off and will auto dimm the lamps when it changes from "idle" to "playing." However sometimes we want the lamp to be full brightness while the TV is playing but the automation will set it back to dimmed. What is the best way to make it keep the current lighting?

jaunty tulip
karmic belfry
#

Thank you for your help! Does this look correct? @jaunty tulip

description: Lighting for when shield is turned on/off
triggers:
  - entity_id:
      - media_player.android_tv_10_10_3_29
    trigger: state
    id: Playing
    to: playing
  - entity_id:
      - media_player.android_tv_10_10_3_29
    trigger: state
    id: "Off"
    to: "off"
  - entity_id:
      - media_player.android_tv_10_10_3_29
    trigger: state
    id: Paused
    to: idle
    from: playing
    for:
      hours: 0
      minutes: 0
      seconds: 15
conditions:
  - condition: sun
    before: sunrise
    after: sunset
  - condition: state
    entity_id: media_player.android_tv_10_10_3_29
    state: playing
actions:
  - choose:
      - conditions:
          - condition: trigger
            id:
              - Playing
        sequence:
          - action: scene.turn_on
            metadata: {}
            target:
              entity_id: scene.living_room_lamp_12_tv_warm
            data: {}
      - conditions:
          - condition: trigger
            id:
              - "Off"
        sequence:
          - action: scene.turn_on
            metadata: {}
            target:
              entity_id: scene.living_room_lamp_13_night_warm
            data: {}
      - conditions:
          - condition: trigger
            id:
              - Paused
        sequence:
          - action: scene.turn_on
            metadata: {}
            target:
              entity_id: scene.living_room_lamp_13_night_warm
            data: {}
mode: single
jaunty tulip
#

Does it work, I don't know...

karmic belfry
#

I will test it ASAP and get back to you. Thank you again

#

It does not. If I pause/Play it will still change my lights. Basically if I change my lights manually whether I turn them off or change their brightness/hue I not longer want this automation to control the lights. Is that possible?

shut pendant
#

If you don't want this automation to change the lights in any way while the TV is playing, I would suggest to disable/enable this automation using another automation that triggers based on the playing state of the TV.

fervent fiber
#

Hello plese join voice call