Skip to content

atvremote push_updates always shows Idle, python library works #2838

@JetA2

Description

@JetA2

Describe the bug

Running atvremote with push_updates always shows the device as Idle, even when something is playing. On the same machine I have a python script running that connects and uses push_updater.listener to listen for state changes. This works. What could be the reason?

Error log

./atvremote --debug -s 192.168.10.112 push_updates
2026-03-23 12:07:55 DEBUG [pyatv.scripts]: Running with pyatv 0.17.0
2026-03-23 12:07:55 DEBUG [pyatv.storage.file_storage]: Loading settings from /home/cinema/.pyatv.conf
2026-03-23 12:07:55 DEBUG [pyatv.support.knock]: Knocking at port 3689 on 192.168.10.112
2026-03-23 12:07:55 DEBUG [pyatv.support.knock]: Knocking at port 7000 on 192.168.10.112
2026-03-23 12:07:55 DEBUG [pyatv.support.knock]: Knocking at port 49152 on 192.168.10.112
2026-03-23 12:07:55 DEBUG [pyatv.support.knock]: Knocking at port 32498 on 192.168.10.112
2026-03-23 12:07:55 DEBUG [pyatv.core.scan]: Auto-discovered Apple TV at 192.168.10.112:7000 via Protocol.AirPlay ... (redacted)
2026-03-23 12:07:55 INFO [pyatv.scripts.atvremote]: Auto-discovered Apple TV at 192.168.10.112
2026-03-23 12:07:55 DEBUG [pyatv]: Loading settings from FileStorage:/home/cinema/.pyatv.conf
2026-03-23 12:07:55 DEBUG [pyatv.core.facade]: Adding handler for protocol Protocol.AirPlay
2026-03-23 12:07:55 DEBUG [pyatv.protocols.airplay]: Remote control not supported by device
2026-03-23 12:07:55 DEBUG [pyatv.protocols.companion]: Not adding Companion as credentials are missing
2026-03-23 12:07:55 DEBUG [pyatv.core.facade]: Adding handler for protocol Protocol.RAOP
2026-03-23 12:07:55 DEBUG [pyatv.core.facade]: Connecting to protocol: Protocol.AirPlay
2026-03-23 12:07:55 DEBUG [pyatv.core.facade]: Connected to protocol: Protocol.AirPlay
2026-03-23 12:07:55 DEBUG [pyatv.core.facade]: Connecting to protocol: Protocol.RAOP
2026-03-23 12:07:55 DEBUG [pyatv.core.facade]: Connected to protocol: Protocol.RAOP
2026-03-23 12:07:55 DEBUG [pyatv.core.facade]: Power management not supported by any protocols
Press ENTER to stop
  Media type: Unknown
Device state: Idle
--------------------

How to reproduce the bug?

See above but probably machine specific.

What is expected behavior?

atvremote shows state changes.

Operating System

Linux

Python

3.11

pyatv

0.17.0

Device

Apple TV 4K (gen 3), tvOS 26.3

Additional context

My machine has two network interfaces, could that be a reason?

Metadata

Metadata

Assignees

No one assigned

    Labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions