I have a automation to turn the lights on after watching TV at night. Last night after watching TV the light turned on as expected and I went upstairs turning the light off with my HA mobile app. A few minutes later the light come back on. It was triggered by the TV which I double checked was not on. Any idea on what caused the TV to trigger the automation?
alias: Dim Light in FR TV on
description: Dim Light in FR TV on at night
trigger:
- platform: state
entity_id:
- media_player.sony_xr_75x90k
from: 'off'
to: 'on'
id: TV_On
- platform: state
entity_id:
- media_player.sony_xr_75x90k
from: 'on'
to: 'off'
id: TV_Off
condition: []
action:
- choose:
- conditions:
- condition: trigger
id:
- TV_On
- condition: numeric_state
entity_id: sun.sun
attribute: elevation
below: 2
sequence:
- service: scene.create
data:
scene_id: Before TV
snapshot_entities:
- light.switch_familyroom
- service: scene.turn_on
target:
entity_id: scene.fr_20
data:
transition: 4
- conditions:
- condition: trigger
id:
- TV_Off
sequence:
- service: scene.turn_on
target:
entity_id: scene.fr_100
data:
transition: 4
mode: single