So not sure if this is all the info you need. I see nothing in the regular Indigo Log, so found the log in the Libray/ indigo... folder. In plugin config, I checked Threats for listing... Action commandos... Basic... Special debug for development. Let me know if you need others checked.
The plugin did find 3 other devices... one if which is an older ATV, and 2 that are computes, which may explain some of the error messages.
I deleted today's log, then re-started the plug in, then issued a simple toggle command Action Group for the ATV that shows up as Playing. The plugin is populating the indigo device with the right info...
Here's what in the log:
- Code: Select all
21 16:43:46 logger enabled for THREADDEBUG ==> TEST ONLY
21 16:43:46 logger enabled for DEBUG ==> TEST ONLY
21 16:43:46 logger enabled for INFO ==> TEST ONLY
21 16:43:46 logger enabled for WARNING ==> TEST ONLY
2021-04-21 16:43:46.974 ERROR Plugin.__init__ logger enabled for ERROR ==> TEST ONLY
2021-04-21 16:43:46.974 CRITICAL Plugin.__init__ logger enabled for CRITICAL ==> TEST ONLY
21 16:43:46 path To python3 /usr/local/bin/python3
21 16:43:46 check for new devices every 10 minutes
21 16:43:47 start runConcurrentThread, initialized loop settings
21 16:43:47 in loop #1
21 16:43:53 === listenToDevices ip:192.168.5.102, (re)starting listener w cmd:[u'/usr/local/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', '-s', u'192.168.5.102', 'push_updates']
21 16:43:53 === listenToDevices ip:192.168.5.102, (re)started listener
21 16:43:53 === listenToDevices ip:192.168.5.102, newlines:{"result": "failure", "datetime": "2021-04-21T16:43:53.783118-05:00", "exception": "no service to connect to", "stacktrace": "Traceback (most recent call last):\n File \"/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py\", line 310, in appstart\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\n File \"/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py\", line 195, in _handle_command\n atv = await connect(config, loop, protocol=Protocol.MRP)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/__init__.py\", line 63, in connect\n service = config.main_service(protocol=protocol)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/conf.py\", line 112, in main_service\n raise exceptions.NoServiceError(\"no service to connect to\")\npyatv.exceptions.NoServiceError: no service to connect to\n"}
21 16:43:53 === listenToDevices ip:192.168.5.121, (re)starting listener w cmd:[u'/usr/local/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', '-s', u'192.168.5.121', 'push_updates']
21 16:43:53 === listenToDevices ip:192.168.5.121, (re)started listener
21 16:43:54 === listenToDevices ip:192.168.5.121, newlines:{"result": "failure", "datetime": "2021-04-21T16:43:54.305902-05:00", "exception": "no service to connect to", "stacktrace": "Traceback (most recent call last):\n File \"/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py\", line 310, in appstart\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\n File \"/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py\", line 195, in _handle_command\n atv = await connect(config, loop, protocol=Protocol.MRP)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/__init__.py\", line 63, in connect\n service = config.main_service(protocol=protocol)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/conf.py\", line 112, in main_service\n raise exceptions.NoServiceError(\"no service to connect to\")\npyatv.exceptions.NoServiceError: no service to connect to\n"}
21 16:43:54 === listenToDevices ip:192.168.5.13, (re)starting listener w cmd:[u'/usr/local/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', '-s', u'192.168.5.13', 'push_updates']
21 16:43:54 === listenToDevices ip:192.168.5.13, (re)started listener
21 16:43:54 === listenToDevices ip:192.168.5.134, (re)starting listener w cmd:[u'/usr/local/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', '-s', u'192.168.5.134', 'push_updates']
21 16:43:54 === listenToDevices ip:192.168.5.134, (re)started listener
21 16:43:55 === listenToDevices ip:192.168.5.134, newlines:{"result": "success", "datetime": "2021-04-21T16:43:55.346936-05:00", "power_state": "on"}
{"result": "success", "datetime": "2021-04-21T16:43:55.347795-05:00", "hash": "com.apple.avkit.7536.d9cf6e71", "media_type": "video", "device_state": "playing", "title": "Take Your Pills", "artist": null, "album": null, "genre": null, "total_time": 5263, "position": 149, "shuffle": "off", "repeat": "off", "app": "Netflix", "app_id": "com.netflix.Netflix"}
21 16:44:00 === listenToDevices ip:192.168.5.13, newlines:{"result": "failure", "datetime": "2021-04-21T16:43:59.812978-05:00", "error": "device_not_found"}
21 16:44:00 === listenToDevices ip:192.168.5.13, connection lost:{"result": "failure", "datetime": "2021-04-21T16:43:59.812978-05:00", "error": "device_not_found"}
21 16:44:02 execCommandToAppleTVCALLBACK command:[u'/usr/local/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvremote.py', '-i', u'', u'play_pause']
21 16:44:04 in loop #2
21 16:44:05 === listenToDevices ip:192.168.5.13, (re)starting listener w cmd:[u'/usr/local/bin/python3', '/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py', '-s', u'192.168.5.13', 'push_updates']
21 16:44:05 === listenToDevices ip:192.168.5.13, (re)started listener
21 16:44:05 === listenToDevices ip:192.168.5.13, newlines:{"result": "failure", "datetime": "2021-04-21T16:44:05.453897-05:00", "exception": "no service to connect to", "stacktrace": "Traceback (most recent call last):\n File \"/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py\", line 310, in appstart\n print(args.output(await _handle_command(args, abort_sem, loop)), flush=True)\n File \"/Library/Application Support/Perceptive Automation/Indigo 7.5/Plugins/appleTV.indigoPlugin/Contents/Server Plugin/atvscript.py\", line 195, in _handle_command\n atv = await connect(config, loop, protocol=Protocol.MRP)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/__init__.py\", line 63, in connect\n service = config.main_service(protocol=protocol)\n File \"/Library/Frameworks/Python.framework/Versions/3.9/lib/python3.9/site-packages/pyatv/conf.py\", line 112, in main_service\n raise exceptions.NoServiceError(\"no service to connect to\")\npyatv.exceptions.NoServiceError: no service to connect to\n"}
21 16:44:14 in loop #3
As always, thanks for taking the time to look into this.