Is there something wrong with this code? The lights will turn On for a short time and then later in the day or the following day, the automation will not work. The LG device is shown as two devices on HA. One is under Google Cast and the other is under LG WebOS device. Not sure if this is the reason is works for a while and then stops? I’m using code which accounts for both device instances because sometimes I will watch a built-in TV app and other times I’ll watch an HDMI device.
alias: Turn On Govee H6672
description: ""
triggers:
- trigger: state
entity_id:
- media_player.lg_webos_tv_oled88z2pua_2
from:
- "off"
to:
- "on"
for:
hours: 0
minutes: 0
seconds: 5
- trigger: state
entity_id:
- media_player.lg_webos_tv_oled88z2pua
from:
- "off"
to:
- "on"
for:
hours: 0
minutes: 0
seconds: 5
conditions: []
actions:
- type: turn_on
device_id: 5072573574b4a3b8a1764bd84872feab
entity_id: light.h6672
domain: switch
mode: single