Hi I’m struggling to automate my bias TV light to turn on when lux is below 40 and TV is on, any help will be much appreciated.
I have 2 things I’d like to happen, when TV turned on and lux already below 40 light turns on or when TV already on and lux goes below 40 light turns on.
At the moment I have this
alias: Bias Light Turn on if Dark
description: ""
trigger:
- platform: numeric_state
entity_id: sensor.lumi_lumi_motion_ac02_illuminance
below: 40
- platform: device
device_id: 81a6eb3fcd73f96606ff8c0fa78649e9
domain: media_player
entity_id: media_player.living_room_tv
type: turned_on
condition:
- condition: device
device_id: 81a6eb3fcd73f96606ff8c0fa78649e9
domain: media_player
entity_id: media_player.living_room_tv
type: is_on
- type: is_illuminance
condition: device
device_id: eb973899e3e88613ae9db594ec5b8aca
entity_id: sensor.lumi_lumi_motion_ac02_illuminance
domain: sensor
below: 40
action:
- service: light.turn_on
data: {}
target:
entity_id: light.bias_light
mode: single