Was working but lately get "device_not_found"

srkinard
Posts: 320
Joined: Sun Apr 10, 2016 5:55 pm
Location: Austin, Texas

Was working but lately get "device_not_found"

Post by srkinard »

Hey Karl...

For a bit the plugin was working for me fine, but I recently noticed it has my ATV in Red with device_not_found as the status.

Almost everything I have uses static IPs and the ATV is most definitely online at that IP...shows up in my HomeKit apps, etc.

Code: Select all

   appleTV                         
=================== parameter, devices used, set ..===========================
Parameters -----------
path To python3            : /usr/bin/python3
check for new devices every: 60 minutes
ignored IP numbers: {}
Devices --------------
appletv_192.168.100.81; id:1190800478; enabled:True; ignored:False
    AIRPLAYPort                   : 7000
    DMAPPort                      : 
    MAC                           : C8:69:CD:3A:09:20
    MRPPort                       : 49152
    PowerState                    : 
    currentlyPlaying_Album        : 
    currentlyPlaying_App          : 
    currentlyPlaying_AppId        : 
    currentlyPlaying_Artist       : 
    currentlyPlaying_DeviceState  : 
    currentlyPlaying_Genre        : 
    currentlyPlaying_MediaType    : 
    currentlyPlaying_Position     : 
    currentlyPlaying_Repeat       : 
    currentlyPlaying_Shuffle      : 
    currentlyPlaying_Title        : 
    currentlyPlaying_TotalTime    : 
    deepSleep                     : False
    identifier                    : 182716A3-6FD7-45A0-9D00-8DDDC2346D89
    ip                            : 192.168.100.81
    model                         : 4 tvOS 15.0
    name                          : Bedroom ATV
    pin                           : 
    status                        : failure
    status.ui                     : device_not_found
==============================================================================
Any ideas?

Thanks
Ross
srkinard
Posts: 320
Joined: Sun Apr 10, 2016 5:55 pm
Location: Austin, Texas

Re: Was working but lately get "device_not_found"

Post by srkinard »

I guess I should note that it's running tvOS 15 beta also...
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Was working but lately get "device_not_found"

Post by kw123 »

The name has to be 8 or less characters.

I am out of town for 4 weeks little chance to really test anything

Karl.
And now 2 days w/o luggage , still in Houston. And the Apple Tags really work. I know exactly where my luggage is- in the middle of terminal c- The airline does not know it and can not use that info.


Sent from my iPhone using Tapatalk
srkinard
Posts: 320
Joined: Sun Apr 10, 2016 5:55 pm
Location: Austin, Texas

Re: Was working but lately get "device_not_found"

Post by srkinard »

Thanks Karl...sorry about the travel issues...hopefully they'll get your luggage to you soon.

Which airline?

I changed the name of the unit to "Bed ATV" so it's 7 characters now...it didn't refresh in the device list even after restarting the plugin.
I deleted the device in Indigo and re-scanned for new devices but nothing.

I'm tailing the log while it runs but not seeing errors...you can see where I hit reload on the plugin, etc.

Code: Select all

indigo ->$ tail -f /Library/Application\ Support/Perceptive\ Automation/Indigo\ 2021.1/Logs/com.karlwachs.appleTV/plugin.log 
17 11:16:42 in loop #19
17 11:16:53 in loop #20
17 11:17:03 in loop #21
17 11:17:14 in loop #22
17 11:17:25 in loop #23
17 11:17:35 in loop #24
17 11:17:45 in loop #25
17 11:17:56 in loop #26
17 11:18:07 in loop #27
17 11:18:17 in loop #28
17 11:18:27 in loop #29
17 11:18:38 in loop #30
17 11:18:48 in loop #31
17 11:18:59 in loop #32
17 11:19:09 in loop #33
17 11:19:20 in loop #34
17 11:19:20 =========getscriptScan cmd:[u'/usr/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 2021.1/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/scripts/atvscript.py', 'scan']
17 11:19:26 =========getscriptScan out:('{"result": "success", "datetime": "2021-07-17T11:19:26.464063-05:00", "devices": []}\n', '')
17 11:19:26 =========getscriptScan out:{"result": "success", "datetime": "2021-07-17T11:19:26.464063-05:00", "devices": []}

17 11:19:26 =========getscriptScan dict:{}
17 11:19:26 =========getNewDevices scan result:{}
17 11:19:37 in loop #35
17 11:19:47 in loop #36
17 11:19:57 in loop #37
17 11:20:08 in loop #38
17 11:20:18 in loop #39
17 11:20:29 in loop #40
17 11:20:39 in loop #41
17 11:20:50 in loop #42
17 11:21:00 in loop #43
17 11:21:11 in loop #44
17 11:21:26 logger  enabled for     THREADDEBUG    ==> TEST ONLY 
17 11:21:26 logger  enabled for     DEBUG          ==> TEST ONLY 
17 11:21:26 logger  enabled for     INFO           ==> TEST ONLY 
17 11:21:26 logger  enabled for     WARNING        ==> TEST ONLY 
2021-07-17 11:21:26.553	ERROR       	Plugin.__init__                  logger  enabled for     ERROR          ==> TEST ONLY 
2021-07-17 11:21:26.553	CRITICAL    	Plugin.__init__                  logger  enabled for     CRITICAL       ==> TEST ONLY 
17 11:21:26 START:  path To python3                /usr/bin/python3
17 11:21:26 START:  check for new devices every    60 minutes
17 11:21:26 START:  runConcurrentThread, initialized loop settings
17 11:21:26 in loop #1
17 11:21:26 =========getscriptScan cmd:[u'/usr/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 2021.1/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/scripts/atvscript.py', 'scan']
17 11:21:32 =========getscriptScan out:('{"result": "success", "datetime": "2021-07-17T11:21:32.887606-05:00", "devices": []}\n', '')
17 11:21:32 =========getscriptScan out:{"result": "success", "datetime": "2021-07-17T11:21:32.887606-05:00", "devices": []}

17 11:21:32 =========getscriptScan dict:{}
17 11:21:32 =========getNewDevices scan result:{}
17 11:21:43 in loop #2
17 11:21:53 in loop #3
17 11:22:04 in loop #4
17 11:22:14 in loop #5
17 11:22:25 in loop #6
17 11:22:35 in loop #7
17 11:22:35 =========getscriptScan cmd:[u'/usr/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 2021.1/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/scripts/atvscript.py', 'scan']
17 11:22:42 =========getscriptScan out:('{"result": "success", "datetime": "2021-07-17T11:22:41.962694-05:00", "devices": []}\n', '')
17 11:22:42 =========getscriptScan out:{"result": "success", "datetime": "2021-07-17T11:22:41.962694-05:00", "devices": []}

17 11:22:42 =========getscriptScan dict:{}
17 11:22:42 =========getNewDevices scan result:{}
17 11:22:52 in loop #8
17 11:23:03 in loop #9
17 11:23:05 CONFIG: check for new devices every    60 minutes
17 11:23:05 CONFIG: path To python3                /usr/bin/python3
17 11:23:13 in loop #10
17 11:23:23 in loop #11
17 11:23:34 in loop #12
17 11:23:44 in loop #13
17 11:23:55 in loop #14
17 11:24:05 in loop #15
17 11:24:16 in loop #16
17 11:24:26 in loop #17
17 11:24:37 in loop #18
17 11:24:47 in loop #19
17 11:24:58 in loop #20
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Was working but lately get "device_not_found"

Post by kw123 »

Sorry. But I can’t do anything while I am out of town.


Sent from my iPhone using Tapatalk
srkinard
Posts: 320
Joined: Sun Apr 10, 2016 5:55 pm
Location: Austin, Texas

Re: Was working but lately get

Post by srkinard »

kw123 wrote:Sorry. But I can’t do anything while I am out of town.


Sent from my iPhone using Tapatalk
No worries...was just updating and posting before I forget so it's here whenever. Absolutely no rush or anything.
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Was working but lately get "device_not_found"

Post by kw123 »

..and for the new version of the plugin you need to also update the program from GitHub for appletv. They changed the format of the data and calls


Sent from my iPhone using Tapatalk
User avatar
kw123
Posts: 8705
Joined: Sun May 12, 2013 4:44 pm
Location: Dallas, TX
Contact:

Re: Was working but lately get "device_not_found"

Post by kw123 »

And you could power cycle the Apple TV.


Sent from my iPhone using Tapatalk
Post Reply

Return to “AppleTV Plugin”