Open mensa84 opened 10 months ago
I get the same issue, I have to then manually turn on using HomeKit for it to work. seems give our the following error:
`This plugin threw an error from the characteristic 'On': Unhandled error thrown inside write handler for characteristic: Unable to execute request 5O: Traceback (most recent call last):File "/usr/lib/python3.9/asyncio/locks.py", line 226, in wait await fut asyncio.exceptions.CancelledError
During handling of the above exception, another exception occurred:
Traceback (most recent call last): File "/usr/lib/python3.9/asyncio/tasks.py", line 492, in wait_for fut.result() asyncio.exceptions.CancelledErrorThe above exception was the direct cause of the following exception:
Traceback (most recent call last): File "/home/pi/.local/lib/python3.9/site-packages/pyatv/protocols/companion/api.py", line 163, in _send_command resp = await self._protocol.exchange_opack( File "/home/pi/.local/lib/python3.9/site-packages/pyatv/protocols/companion/protocol.py", line 154, in exchange_opack return await self._exchange_generic_opack(frame_type, data, identifier, timeout)File "/home/pi/.local/lib/python3.9/site-packages/pyatv/protocols/companion/protocol.py", line 167, in _exchange_generic_opack unpacked_object = await self._queues[identifier].wait(timeout) File "/home/pi/.local/lib/python3.9/site-packages/pyatv/support/collections.py", line 160, in wait await asyncio.wait_for(self._event.wait(), timeout) File "/usr/lib/python3.9/asyncio/tasks.py", line 494, in wait_for raise exceptions.TimeoutError() from exc asyncio.exceptions.TimeoutError
The above exception was the direct cause of the following exception:
Traceback (most recent call last):File "/home/pi/.local/lib/python3.9/site-packages/pyatv/scripts/atvremote.py", line 978, in _run_application return await cli_handler(loop) File "/home/pi/.local/lib/python3.9/site-packages/pyatv/scripts/atvremote.py", line 723, in cli_handler return await _handle_commands(args, config, storage, loop) File "/home/pi/.local/lib/python3.9/site-packages/pyatv/scripts/atvremote.py", line 851, in _handle_commands atv = await connect(config, loop, protocol=args.protocol, storage=storage)File "/home/pi/.local/lib/python3.9/site-packages/pyatv/init.py", line 155, in connect await atv.connect() File "/home/pi/.local/lib/python3.9/site-packages/pyatv/core/facade.py", line 684, in connect if await setup_data.connect(): File "/home/pi/.local/lib/python3.9/site-packages/pyatv/protocols/companion/init.py", line 571, in _connect await api.connect() File "/home/pi/.local/lib/python3.9/site-packages/pyatv/protocols/companion/api.py", line 145, in connect await self.system_info() File "/home/pi/.local/lib/python3.9/site-packages/pyatv/protocols/companion/api.py", line 184, in system_info await self._send_command( File "/home/pi/.local/lib/python3.9/site-packages/pyatv/protocols/companion/api.py", line 174, in _send_command raise exceptions.ProtocolError(f"Command {identifier} failed") from expyatv.exceptions.ProtocolError: Command _systemInfo failed
An error occurred, full stack trace above. See https://homebridge.io/w/JtMGR for more info.`
Better have a look on homebridge-appletv-enhanced https://github.com/maxileith/homebridge-appletv-enhanced
ah did you swap to a different plugin? Seen better results ?
yes, working much better.
Great, thanks for the advice!! I've switched as does seem to be working better!!
Turnin off and on my Apple TV with power switch in Home app works. But if I turn on my Apple TV by Sire Remote, the power switch in Home app does not show on. It stays at off. Can you please fix that?