Samsung Q7F(2018) TV keeps changing state

I’m trying to set it up so when I turn on the TV, the stereo also turns on.
The automation works and looks like this:

- alias: 'Chester on'
  trigger:
    platform: state
    entity_id: media_player.chester
    from: 'off'
    to: 'on'
  action:
    - service: switch.turn_on
      entity_id: switch.stereo

However, it will randomly change its state to on and then off, but the screen remains off. I’m guessing it’s some weird standby thing? I even tried to set up a binary ping sensor to test, but of course that one shows the same behavior.
I have turned off the automatic update feature on the TV to make sure that’s not interfering.
But I’m kind of running out of ideas :confused:
Has anyone else experienced this and maybe found a solution?

Capture1
Capture

I know this is a bit of a late reply, but I have the Q8F and it exhibits the same behaviour. I’m not using an automation like yours but looking at the activity of my own it seems to only ever wake up for a few seconds. You could try adding in a “for” to your trigger:

   - alias: 'Chester on'
  trigger:
    platform: state
    entity_id: media_player.chester
    from: 'off'
    to: 'on'
    for:
      seconds: 10

Obviously that would delay your stereo turning on but maybe better than nothing?

Better late than never! :smile:
I actually managed to solve this by adding SmartThings to Home Assistant. This gave me access to the actual state without the on/off activity.

1 Like