Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

atvremote homepod mini #2356

Closed
Epik77 opened this issue Feb 16, 2024 · 3 comments
Closed

atvremote homepod mini #2356

Epik77 opened this issue Feb 16, 2024 · 3 comments
Labels

Comments

@Epik77
Copy link

Epik77 commented Feb 16, 2024

Describe the bug

After upgrade firmware homepod mini 17.3 atvremote not works

Error log


Traceback (most recent call last):
  File "/usr/local/lib/python3.9/dist-packages/pyatv/scripts/atvremote.py", line 978, in _run_application
    return await cli_handler(loop)
  File "/usr/local/lib/python3.9/dist-packages/pyatv/scripts/atvremote.py", line 723, in cli_handler
    return await _handle_commands(args, config, storage, loop)

  File "/usr/local/lib/python3.9/dist-packages/pyatv/scripts/atvremote.py", line 862, in _handle_commands
    ret = await _handle_device_command(args, cmd, atv, storage, loop)
  File "/usr/local/lib/python3.9/dist-packages/pyatv/scripts/atvremote.py", line 916, in _handle_device_command
    return await _exec_command(atv.stream, cmd, True, *cmd_args)
  File "/usr/local/lib/python3.9/dist-packages/pyatv/scripts/atvremote.py", line 945, in _exec_command
    value = await tmp(*args)
  File "/usr/local/lib/python3.9/dist-packages/pyatv/core/facade.py", line 371, in stream_file
    await self.relay("stream_file")(
  File "/usr/local/lib/python3.9/dist-packages/pyatv/protocols/raop/__init__.py", line 356, in stream_file
    await client.initialize(self.core.service.properties)
  File "/usr/local/lib/python3.9/dist-packages/pyatv/protocols/raop/stream_client.py", line 337, in initialize
    await self._protocol.setup(self.timing_server.port, self.control_client.port)

  File "/usr/local/lib/python3.9/dist-packages/pyatv/protocols/raop/protocols/airplayv2.py", line 108, in setup
    await self._setup_base(timing_server_port)
  File "/usr/local/lib/python3.9/dist-packages/pyatv/protocols/raop/protocols/airplayv2.py", line 51, in _setup_base
    self._verifier = await verify_connection(
  File "/usr/local/lib/python3.9/dist-packages/pyatv/protocols/airplay/auth/__init__.py", line 104, in verify_connection
    has_encryption_keys = await verifier.verify_credentials()
  File "/usr/local/lib/python3.9/dist-packages/pyatv/protocols/airplay/auth/hap_transient.py", line 48, in verify_credentials
    await self.http.post("/pair-pin-start", headers=_AIRPLAY_HEADERS)
  File "/usr/local/lib/python3.9/dist-packages/pyatv/support/http.py", line 432, in post
    return await self.send_and_receive(
  File "/usr/local/lib/python3.9/dist-packages/pyatv/support/http.py", line 495, in send_and_receive
    raise exceptions.HttpError(
pyatv.exceptions.HttpError: HTTP/1.1 method POST failed with code 400: Bad Request



How to reproduce the bug?

atvremote --id XXXXXX stream_file=/opt/sound/non_definito.mp3

What is expected behavior?

play an mp3 song on the homepod mini

Operating System

Linux

Python

3.9

pyatv

0.14.5

Device

homepod mini 17.3

Additional context

No authentication is set on the device

@Epik77 Epik77 added the bug label Feb 16, 2024
@postlund
Copy link
Owner

That's interesting. Are you on the same network as the HomePod, e.g. no firewalls or VLANs in between?

@Epik77
Copy link
Author

Epik77 commented Feb 16, 2024

yes they are in the same network no firewall or vlan
atvremote scan:
Name: Camera
Model/SW: HomePod Mini, tvOS 17.3
Address: 192.168.2.75
MAC: x.x.x.x.x
Deep Sleep: False
Identifiers:

  • XX:XX:XX:XX:XX
  • XXXXXXXXXX
    Services:
  • Protocol: Companion, Port: 49153, Credentials: None, Requires Password: False, Password: None, Pairing: Disabled
  • Protocol: AirPlay, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Disabled
  • Protocol: RAOP, Port: 7000, Credentials: None, Requires Password: False, Password: None, Pairing: Disabled

@Epik77
Copy link
Author

Epik77 commented Mar 9, 2024

I solved it by reinstalling the home app
and Follow instructions under Allow others to access your AirPlay 2-enabled speakers and TVs, pick Anyone on the same network
https://pyatv.dev/support/troubleshooting/#pairing-disabled

@Epik77 Epik77 closed this as completed Mar 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants