postlund / pyatv

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

pyatv crashes during HA Restart - Apple TV custom component wont become available #838

Closed bleitchhk closed 3 years ago

bleitchhk commented 4 years ago

Apple TV Custom component will not start on HA restart

Config:

1 below is Before trying to add an Apple TV through HA -> Config -> Integration -> Add -> Apple TV

===================================================================================================

Apple TV does not show up as an intergration option under config->integrations

2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=21, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=34, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 52679)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 33617)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=39, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 45052)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=40, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 45966)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=38, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 40290)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=43, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 33554)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=53, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 48104)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=54, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 48310)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=55, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 59925)> 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-19 15:05:51 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=56, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 35898)>

After trying to add an Apple TV at address 192.168.32.11 via .yaml

configutation.yaml entry

apple_tv:

2020-09-19 15:05:54 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:54 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:54 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:54 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:55 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:55 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:55 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:55 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=17, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=18, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 54005)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=21, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 44488)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=34, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 36761)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 53363)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=36, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 54494)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 46218)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=38, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 35010)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=39, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 59588)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=40, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 56655)> 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-19 15:05:56 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=43, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 33215)> 2020-09-19 15:05:58 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:58 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:59 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:05:59 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:06:00 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:06:00 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=21, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=36, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 50761)> 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 43170)> 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 33317)> 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=38, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 37919)> 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-19 15:07:43 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=39, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 60281)> 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=17, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=21, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 59387)> 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 54996)> 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=36, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 37838)> 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 41055)> 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-19 15:07:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=38, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 35272)> 2020-09-19 15:09:03 DEBUG (SyncWorker_9) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:03 DEBUG (SyncWorker_37) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:03 DEBUG (SyncWorker_12) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:03 DEBUG (SyncWorker_6) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:05 DEBUG (SyncWorker_53) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:05 DEBUG (SyncWorker_57) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:05 DEBUG (SyncWorker_29) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:05 DEBUG (SyncWorker_48) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:07 DEBUG (SyncWorker_24) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:07 DEBUG (SyncWorker_42) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:07 DEBUG (SyncWorker_5) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:07 DEBUG (SyncWorker_33) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:09 DEBUG (SyncWorker_43) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:09 DEBUG (SyncWorker_2) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:09 DEBUG (SyncWorker_60) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:09 DEBUG (SyncWorker_19) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:11 DEBUG (SyncWorker_51) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:11 DEBUG (SyncWorker_56) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:11 DEBUG (SyncWorker_47) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:11 DEBUG (SyncWorker_51) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:13 DEBUG (SyncWorker_40) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:13 DEBUG (SyncWorker_56) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:13 DEBUG (SyncWorker_47) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:13 DEBUG (SyncWorker_47) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:15 DEBUG (SyncWorker_38) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:15 DEBUG (SyncWorker_30) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:15 DEBUG (SyncWorker_20) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:15 DEBUG (SyncWorker_4) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:17 DEBUG (SyncWorker_18) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:17 DEBUG (SyncWorker_17) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:17 DEBUG (SyncWorker_10) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:17 DEBUG (SyncWorker_45) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:19 DEBUG (SyncWorker_39) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:19 DEBUG (SyncWorker_50) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:19 DEBUG (SyncWorker_1) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:19 DEBUG (SyncWorker_44) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:21 DEBUG (SyncWorker_57) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:21 DEBUG (SyncWorker_53) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:21 DEBUG (SyncWorker_48) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:21 DEBUG (SyncWorker_27) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:23 DEBUG (SyncWorker_19) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:23 DEBUG (SyncWorker_43) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:23 DEBUG (SyncWorker_60) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:23 DEBUG (SyncWorker_2) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:25 DEBUG (SyncWorker_43) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:25 DEBUG (SyncWorker_60) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:25 DEBUG (SyncWorker_19) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:25 DEBUG (SyncWorker_2) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:27 DEBUG (SyncWorker_59) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:27 DEBUG (SyncWorker_3) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:27 DEBUG (SyncWorker_35) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:27 DEBUG (SyncWorker_51) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:29 DEBUG (SyncWorker_30) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:29 DEBUG (SyncWorker_38) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:29 DEBUG (SyncWorker_20) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:29 DEBUG (SyncWorker_4) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:31 DEBUG (SyncWorker_45) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-19 15:09:31 DEBUG (SyncWorker_5) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-19 15:09:31 DEBUG (SyncWorker_50) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-19 15:09:31 DEBUG (SyncWorker_39) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.net] Binding on *:5353 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=27, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=36, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 39758)> 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=38, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 45473)> 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=39, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 55790)> 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=40, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 57635)> 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-19 15:09:33 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=43, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 44172)>

After manually adding config to configuration.yaml

020-09-20 16:59:16 WARNING (SyncWorker_0) [homeassistant.util.yaml.loader] YAML file /config/automations.yaml contains duplicate key "action". Check lines 30 and 35 2020-09-20 16:59:17 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for apple_tv which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2020-09-20 16:59:17 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for shelly which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2020-09-20 16:59:17 WARNING (MainThread) [homeassistant.loader] You are using a custom integration for hacs which has not been tested by Home Assistant. This component might cause stability problems, be sure to disable it if you experience issues with Home Assistant. 2020-09-20 16:59:24 DEBUG (MainThread) [custom_components.apple_tv.config_flow] Importing device with identifier C8:69:CD:72:34:58 2020-09-20 16:59:25 DEBUG (MainThread) [custom_components.apple_tv] Starting connect loop 2020-09-20 16:59:25 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 16:59:25 DEBUG (SyncWorker_30) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:25 DEBUG (SyncWorker_32) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:25 DEBUG (SyncWorker_34) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:25 DEBUG (SyncWorker_31) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:27 DEBUG (SyncWorker_32) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:27 DEBUG (SyncWorker_10) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:27 DEBUG (SyncWorker_33) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:27 DEBUG (SyncWorker_10) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:29 DEBUG (SyncWorker_59) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:29 DEBUG (SyncWorker_52) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:29 DEBUG (SyncWorker_36) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:29 DEBUG (SyncWorker_61) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 16:59:30 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58 with address 192.168.32.11, trying to scan 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.net] Binding on *:5353 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=30, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 56049)> 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=58, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 48543)> 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=66, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 45110)> 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=74, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 49721)> 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 16:59:30 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=75, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 33785)> 2020-09-20 16:59:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:31 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:33 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:33 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:33 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:33 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:33 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:34 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:35 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:35 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 16:59:35 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58, trying later 2020-09-20 16:59:35 DEBUG (MainThread) [custom_components.apple_tv] Reconnecting in 1 seconds 2020-09-20 16:59:36 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 16:59:37 DEBUG (SyncWorker_58) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:37 DEBUG (SyncWorker_34) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:37 DEBUG (SyncWorker_43) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:37 DEBUG (SyncWorker_56) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:39 DEBUG (SyncWorker_38) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:39 DEBUG (SyncWorker_52) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:39 DEBUG (SyncWorker_32) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:39 DEBUG (SyncWorker_48) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:41 DEBUG (SyncWorker_44) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:41 DEBUG (SyncWorker_40) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:41 DEBUG (SyncWorker_36) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:41 DEBUG (SyncWorker_52) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 16:59:42 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58 with address 192.168.32.11, trying to scan 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.net] Binding on *:5353 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=30, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 38666)> 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=34, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 56362)> 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 58393)> 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=36, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 51912)> 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 16:59:42 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 56558)> 2020-09-20 16:59:42 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:42 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:42 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:42 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:43 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:43 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:43 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:43 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:43 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:44 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:44 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:44 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:44 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:44 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:44 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:45 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:45 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:46 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:46 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:47 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 16:59:47 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58, trying later 2020-09-20 16:59:47 DEBUG (MainThread) [custom_components.apple_tv] Reconnecting in 3 seconds 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 54160)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=45, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=44, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 52100)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=46, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 56730)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=49, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 59229)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=50, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 38591)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=48, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 35082)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=52, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 48559)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=53, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 36070)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=54, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 32890)> 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 16:59:48 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=51, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 52583)> 2020-09-20 16:59:52 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 16:59:53 DEBUG (SyncWorker_42) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:53 DEBUG (SyncWorker_10) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:53 DEBUG (SyncWorker_58) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:53 DEBUG (SyncWorker_43) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.scan] Auto-discovered SOSYHK-MBR-ATV-3 at 192.168.32.15:7000 (Protocol.AirPlay) 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.scan] Auto-discovered SOSYHK-MBR-ATV-3 at 192.168.32.15:7000 (Protocol.AirPlay) 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 45654)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=28, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 34436)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=41, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 55900)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=42, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 38494)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=44, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 60757)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.scan] Auto-discovered SOSYHK-MBR-ATV-3 at 192.168.32.15:7000 (Protocol.AirPlay) 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.scan] Auto-discovered SOSYHK-MBR-ATV-3 at 192.168.32.15:7000 (Protocol.AirPlay) 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on :5353 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=48, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=45, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 49931)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=46, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 39998)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=49, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 37033)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=50, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 46904)> 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 16:59:53 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=51, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 37039)> 2020-09-20 16:59:54 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:54 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:55 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:55 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:55 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:55 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:55 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:55 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:55 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:55 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:55 DEBUG (SyncWorker_10) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:55 DEBUG (SyncWorker_60) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:55 DEBUG (SyncWorker_42) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:55 DEBUG (SyncWorker_58) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:55 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:55 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 16:59:56 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:56 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:57 DEBUG (SyncWorker_0) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 16:59:57 DEBUG (SyncWorker_47) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 16:59:57 DEBUG (SyncWorker_34) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 16:59:57 DEBUG (SyncWorker_13) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 16:59:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 16:59:57 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:57 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 16:59:58 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58 with address 192.168.32.11, trying to scan 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.net] Binding on *:5353 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=30, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=33, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 52554)> 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=34, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 37028)> 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 52745)> 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=36, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 44100)> 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 16:59:58 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 34805)> 2020-09-20 16:59:59 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:00 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:00 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:01 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:01 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:01 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 4: invalid continuation byte 2020-09-20 17:00:01 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 4: invalid continuation byte 2020-09-20 17:00:01 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 4: invalid continuation byte 2020-09-20 17:00:01 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc8 in position 4: invalid continuation byte 2020-09-20 17:00:02 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:02 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:03 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 17:00:03 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58, trying later 2020-09-20 17:00:03 DEBUG (MainThread) [custom_components.apple_tv] Reconnecting in 6 seconds 2020-09-20 17:00:09 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 17:00:09 DEBUG (SyncWorker_39) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:09 DEBUG (SyncWorker_1) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:09 DEBUG (SyncWorker_8) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:09 DEBUG (SyncWorker_39) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:11 DEBUG (SyncWorker_62) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:11 DEBUG (SyncWorker_27) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:11 DEBUG (SyncWorker_55) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:11 DEBUG (SyncWorker_17) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:13 DEBUG (SyncWorker_46) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:13 DEBUG (SyncWorker_29) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:13 DEBUG (SyncWorker_41) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:13 DEBUG (SyncWorker_24) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 17:00:14 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58 with address 192.168.32.11, trying to scan 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.net] Binding on *:5353 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=16, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 50553)> 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=20, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 54450)> 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 38037)> 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 55217)> 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 17:00:14 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=28, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 35638)> 2020-09-20 17:00:15 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:16 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:17 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:18 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:18 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:19 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:19 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:19 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:19 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:19 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 17:00:19 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58, trying later 2020-09-20 17:00:19 DEBUG (MainThread) [custom_components.apple_tv] Reconnecting in 3 seconds 2020-09-20 17:00:22 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 17:00:22 DEBUG (SyncWorker_25) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:22 DEBUG (SyncWorker_61) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:22 DEBUG (SyncWorker_50) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:22 DEBUG (SyncWorker_63) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:24 DEBUG (SyncWorker_15) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:24 DEBUG (SyncWorker_14) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:24 DEBUG (SyncWorker_33) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:24 DEBUG (SyncWorker_3) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:26 DEBUG (SyncWorker_23) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:26 DEBUG (SyncWorker_54) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:26 DEBUG (SyncWorker_51) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:26 DEBUG (SyncWorker_43) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 17:00:27 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58 with address 192.168.32.11, trying to scan 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.net] Binding on *:5353 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=6, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=35, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 54166)> 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 36646)> 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=36, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 52385)> 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=38, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 43994)> 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 17:00:27 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=39, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 59630)> 2020-09-20 17:00:30 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:31 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:31 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:31 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:32 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:32 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:32 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:32 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:32 DEBUG (MainThread) [pyatv.support.scan] Auto-discovered SOSYHK-LIV-ATV-1 at 192.168.32.11:49154 (Protocol.MRP) 2020-09-20 17:00:32 DEBUG (MainThread) [pyatv.support.scan] Auto-discovered SOSYHK-LIV-ATV-1 at 192.168.32.11:49154 (Protocol.MRP) 2020-09-20 17:00:32 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 17:00:32 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58, trying later 2020-09-20 17:00:32 DEBUG (MainThread) [custom_components.apple_tv] Reconnecting in 18 seconds 2020-09-20 17:00:43 DEBUG (MainThread) [custom_components.apple_tv] Not starting connect loop (True, True) 2020-09-20 17:00:50 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 17:00:50 DEBUG (SyncWorker_35) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:50 DEBUG (SyncWorker_13) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:50 DEBUG (SyncWorker_36) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:50 DEBUG (SyncWorker_38) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:52 DEBUG (SyncWorker_31) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:52 DEBUG (SyncWorker_48) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:52 DEBUG (SyncWorker_57) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:52 DEBUG (SyncWorker_52) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:54 DEBUG (SyncWorker_44) [pyatv.support.knock] Knocking at port 3689 on 192.168.32.11 2020-09-20 17:00:54 DEBUG (SyncWorker_48) [pyatv.support.knock] Knocking at port 7000 on 192.168.32.11 2020-09-20 17:00:54 DEBUG (SyncWorker_31) [pyatv.support.knock] Knocking at port 49152 on 192.168.32.11 2020-09-20 17:00:54 DEBUG (SyncWorker_44) [pyatv.support.knock] Knocking at port 32498 on 192.168.32.11 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.mdns] Cleaning up after UDNS request 2020-09-20 17:00:55 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58 with address 192.168.32.11, trying to scan 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.net] Binding on *:5353 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=28, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('0.0.0.0', 5353)> 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.net] Binding on 127.0.0.1:0 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=37, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('127.0.0.1', 45079)> 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.6:0 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=38, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.6', 39776)> 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.net] Binding on 192.168.31.216:0 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=39, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('192.168.31.216', 50779)> 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.net] Binding on 172.17.0.1:0 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=40, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.17.0.1', 55414)> 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.net] Binding on 172.30.32.1:0 2020-09-20 17:00:55 DEBUG (MainThread) [pyatv.support.mdns] Adding socket <socket.socket fd=41, family=AddressFamily.AF_INET, type=SocketKind.SOCK_DGRAM, proto=0, laddr=('172.30.32.1', 36043)> 2020-09-20 17:00:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:56 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 61: invalid start byte 2020-09-20 17:00:56 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:57 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 17:00:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 17:00:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 17:00:57 ERROR (MainThread) [pyatv.support.mdns] exception during data handling Traceback (most recent call last): File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 392, in datagram_received delegate.datagram_received(data, addr) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 493, in datagram_received services = parse_services(DnsMessage().unpack(data)) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 186, in unpack ptr, data = unpack_rr(ptr, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 149, in unpack_rr rddata, = qname_decode(rd_data, msg) File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in qname_decode return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] File "/usr/local/lib/python3.8/site-packages/pyatv/support/mdns.py", line 103, in return ".".join([x.decode("utf-8") for x in name_components]), rest[1:] UnicodeDecodeError: 'utf-8' codec can't decode byte 0xc0 in position 72: invalid start byte 2020-09-20 17:00:58 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:00:59 DEBUG (MainThread) [pyatv.support.mdns] Error during MDNS lookup: [Errno 22] Invalid argument 2020-09-20 17:01:00 DEBUG (MainThread) [custom_components.apple_tv] Updating state: connected=False, disconnected=False 2020-09-20 17:01:00 DEBUG (MainThread) [custom_components.apple_tv] Failed to find device C8:69:CD:72:34:58, trying later 2020-09-20 17:01:00 DEBUG (MainThread) [custom_components.apple_tv] Reconnecting in 24 seconds

postlund commented 3 years ago

Can you re-test with latest version of Home Assistant and see if it works?

bleitchhk commented 3 years ago

Hi;

I am not currently at my home where the Apple TV is and I will only get there in about 3 week on March 20. I am very happy to try then !

Best;

Brendan

Sent from ProtonMail Mobile

On Sat, Feb 27, 2021 at 5:29 AM, Pierre Ståhl notifications@github.com wrote:

Can you re-test with latest version of Home Assistant and see if it works?

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub, or unsubscribe.

postlund commented 3 years ago

I'm not sure what your current state is, but is this still relevant? I would suggest trying the latest beta version (https://github.com/postlund/hass-atv-beta) in case it is, otherwise close the issue.

postlund commented 3 years ago

I will close this now, if you encounter further problems please re-open or create a new issue.