postlund / pyatv

A client library for Apple TV and AirPlay devices
https://pyatv.dev
MIT License
893 stars 99 forks source link

tvOS18 - turn_off command won’t click the power off button #2502

Open orianlevy opened 2 months ago

orianlevy commented 2 months ago

Describe the bug

Upgrading today to tvOS 18 I noticed that the turn _off command won’t put my AppleTV to sleep. it click the user then focus on the turn off button but won’t click.

Error log

<place log here>

How to reproduce the bug?

Run the turn _off command

What is expected behavior?

AppleTV should sleep

Operating System

Linux

Python

3.9

pyatv

0.15.1

Device

Appletv 4k tvOS18

Additional context

It focuses on the turn off button but won’t click

postlund commented 2 months ago

I guess they changed the UI a bit. Can you try pairing Companion and see if that works (it doesn't use navigation like MRP does)?

orianlevy commented 2 months ago

You might be right, for some reason I had to pair again because the AppleTV wasn’t recognized, I did that and removed the companion because I saw on the website that doesn’t need credentials anymore so I just change the script to call the command.

orianhexight commented 2 months ago

I guess they changed the UI a bit. Can you try pairing Companion and see if that works (it doesn't use navigation like MRP does)?

i added back the companion and its working now, thank you so much!