#Trigger on Samsung TV turning on

1 messages ยท Page 1 of 1 (latest)

lunar geyser
#

I had this plan for an automation that would trigger when the Samsung TV turns on. But the "TV turns on" event doesn't quite seem to happen when the TV turns on.

I have these two different triggers (image), and I am not sure what the difference is, but neither seems to behave as hoped.

I welcome any clarification or ideas for workarounds here.

glad kestrel
#

check your integrations and the entities within them to time something that changes from off -> on then trigger off that entity specifically

lunar geyser
#

The [TV] one is the DLNA one

#

other than that I have

#

I just noticed the Samsung one I am using has two turned ons

glad kestrel
#

other than "events" if you look at the actual entities there may be a status one which changes from off to on which you can trigger on instead of using a specific premade event which seems to not be reliable

lunar geyser
#

It seems to only have 2 entities, with identical names

#

One is just an on/off toggle, and it seems to trigger with a large delay, but mostly correspond to actual on-off, maybe

#

The other one has a bunch of controls on top of on/off but I think the on/off history matches exactly

#

forgive the low-tech comparison

glad kestrel
#

can use the entity which shows the on/off history as an enitty trigger when it changes

lunar geyser
#

Actually this is better

lunar geyser
#

update the entity like a minute later

glad kestrel
#

thats awkward

#

its hard to tell on the picture but did you say one was more exact than the other?

lunar geyser
#

From the sounds of it, Samsung TV smart features have many problems

#

No, it just looks like a mirror of each other, visually

glad kestrel
#

if you hover over you will see the state change time

#

and can compare

#

you could always use a smart plug and monitor the power consumption going up and down

lunar geyser
#

It's more than a minute actually, I think it might be like 5 to 10 minutes ๐Ÿ˜ฌ

lunar geyser
lunar geyser
#

I miiight also maybe achieve what I'm trying to do in a different way

#

What I'm actually trying to do is reset the volume every night, so the idea is to automate a toggle to turn on that will set the volume when the TV turns on

#

with a 10 minute delay that isn't too useful

#

What I could maybe do is turn the TV on in the middle of the night, change volume, and turn it back off ๐Ÿ˜ฌ not ideal

glad kestrel
#

its not stupid if it works ๐Ÿ˜›

#

I was tired of getting called to help because "something went wrong with the TV" which turns out to be the firestick sometimes crashing after a long uptime. so i put a smartplug on it and hard power cycle at night to reboot it.

lunar geyser
#

Interestingly, despite the 1-minute plus delay on the entity, the DLNA thing seems to know immediately when the TV turns off

#

hmm

#

and on too ๐Ÿค”

glad kestrel
#

dnla is only active when its on. so its probably seeing the connect/disconnect

lunar geyser
#

That one doesn't turn on/off, it turns idle/unavailable

#

Maybe I can do something with that

glad kestrel
#

you can automate on anything to on

lunar geyser
#

I tried "turned on" on the DLNA but maybe that's the wrong one, I need like "turn idle" or something. maybe. I don't know

#

I gotta go but I'll experiment more later

glad kestrel
#

you want to select the entity that changes to "on" and then trigger on that switching to the "on" state

#

good luck in any case ๐Ÿ™‚

lunar geyser
#

It also seems to be "unknown" in between "unavailable" and "idle" for literally 1 second

#

There only seems to be one entity here, I don't know how many different properties it might have

glad kestrel
#

you can trigger on both "unavailavble to idle" AND "unkown to idle" to be sure i guess

lunar geyser
#

I don't know how to do that tbh, only "becomes idle" is an option but that would trigger if it stopped playing

#

That might be fine for my purposes because 1. I never use it 2. at that point, it has already triggered and self-disabled for the day

#

I am guessing if I act on an entity and write attributes and state changes myself I can do what you suggest, but I'm not familiar with it

glad kestrel
#

trigger on the entity changing

lunar geyser
#

Like this, right?

glad kestrel
#

dont touch attribute

lunar geyser
#

ah okay

glad kestrel
#

your looking at and triggering from the main state. attributes are "sub-states"

lunar geyser
#

it works ๐Ÿ™‚ only a few seconds delay, that's acceptable