Overwrite entity state in script or automation

Hi,

I hope someone can help me with this. I have an Apple TV. When the Apple TV is in standby, it reports as paused. Because its reported as paused my cards for the media player don’t hide the buttons like they would if the Apple TV reported as off, or standby. Is there a way to overwrite the state of my Apple TV in a automation or script? I know I can do it manually in the developer tools. But I would like to make an automation that triggers once my TV turns off, to change the state of my Apple TV.

The homeassistant.update_entity service wont let me specify a state from a script or automation.

That is not permanent and will change back as soon as the device updates. It is meant for testing only.

Have you tried this?

    - service: media_player.turn_off
      target:
        entity_id: media_player.your_appletv

From the documents (only relevant if you have the remote integration):

https://www.home-assistant.io/integrations/apple_tv/#faq

1 Like

Yes, once I call the service media_player.turn_off, the Apple TV turnes off, but state says ‘paused’

Seems to be a known issue:

1 Like