Can't Pair Device with Android 6 Devices

Posted on
Wed Mar 30, 2016 9:41 am
RichP offline
Posts: 7
Joined: Mar 30, 2016

Can't Pair Device with Android 6 Devices

Howdy!

I am evaluating Indigo (vs Smartthings) and already have my Nest and DSC alarm integrated (haven't purchased any Z-wave stuff just yet).

I am able to access Indigo at Home via the Domo Pad app, but I cannot pair either my Android devices: Oneplus One or Nexus 7.

I will apologize in advance if this a newb mistake! :D

I get this in logs:

Request Headers:
AUTHORIZATION: Digest username=**Info removed** algorithm=MD5
HOST: 10.x.x.x:8176
USER-AGENT: okhttp/3.0.1
CONNECTION: Keep-Alive
Remote-Addr: 10.x.x.x
ACCEPT-ENCODING: gzip

Traceback (most recent call last):
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/cherrypy/_cprequest.py", line 609, in respond
cherrypy.response.body = self.handler()
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/cherrypy/_cpdispatch.py", line 25, in __call__
return self.callable(*self.args, **self.kwargs)
File "/Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/plugins/AndroidClientHelper/reqhandler.py", line 236, in registerAndroidDevice
conn.connect()
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/httplib.py", line 832, in connect
self.timeout, self.source_address)
File "/System/Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/socket.py", line 575, in create_connection
raise err
error: [Errno 61] Connection refused


Thanks!

Turned on Debugging and see this in the logs:

Started plugin "Domotics Pad Mobile Client 1.1.19"
Domotics Pad Mobile Client DebugReturning default GUIConfigValue for plugin:databaseConnectionEnabled
Domotics Pad Mobile Client DebugDatabase access enabled:
Domotics Pad Mobile Client DebugDatabase access has been disabled, skipping connection
Domotics Pad Mobile Client DebugFailed to retrieve current IWS plugin version:
Domotics Pad Mobile Client ErrorError in plugin execution:

Traceback (most recent call last):
File "plugin.py", line 255, in getIWSPluginVersion
responseToQuery = opener.open(u'http://localhost:' + self.pluginPrefs.get(u'indigoPort') + u'/AndroidClientHelper/getVersionInfo')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1181, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1156, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 61] Connection refused>

Posted on
Wed Mar 30, 2016 10:40 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Can't Pair Device with Android 6 Devices

Hmm, that is curious as it indicates that the plugin's web component is not properly installed. Let's start with the basics and make sure the web server is up-and-running and accessible; if you could, please attempt to access your server (either on-server or on another client):

http://[IPADDRESS]:8176/

You should be prompted for your credentials... once on that page, at the bottom should be an entry for "Android Client Helper Plugin". If that is there click on it to see a terrible ascii art status page. :)

Adam

Posted on
Wed Mar 30, 2016 10:53 pm
RichP offline
Posts: 7
Joined: Mar 30, 2016

Re: Can't Pair Device with Android 6 Devices

That works and I tried it from the phone too from LTE and it also worked.

Image
Attachments
DomoPad_Android_Client_IWS_Helper.png
DomoPad_Android_Client_IWS_Helper.png (108.28 KiB) Viewed 3808 times

Posted on
Wed Mar 30, 2016 11:00 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Can't Pair Device with Android 6 Devices

Hmm, okay then it appears my first inclination of the plugin not having been installed completely was incorrect and rather it is the communication between the Indigo Plugin and the Indigo Web Server Plugin pieces that is failing. Just to get the basics of the communication protocol out of the way first - did you configure the plugin with your username/password and are you using digest authentication in the server settings?

Was one of those attempts accessing the status page from the server itself? I can't think what would prevent you from accessing localhost when you got to it over LTE, though, but might as well be sure.

Posted on
Thu Mar 31, 2016 6:03 am
RichP offline
Posts: 7
Joined: Mar 30, 2016

Re: Can't Pair Device with Android 6 Devices

I can access that AndroidHelper status page both locally and then remotely using my reflector.

Here are my server settings:

Image

Domotics Pad Mobile Client Your plugin version, v1.1.19, is current.
WebServer client connected
WebServer started on port 8176 -- digest authentication enabled
WebServer loaded plugin "Android Client Helper Plugin"


I removed the plugin and tried to reinstall it. Entered my username & pwd during the install, immediately see this in the logs:

Installing and enabling plugin "Domotics Pad Mobile Client" v1.1.19
Loading plugin "Domotics Pad Mobile Client 1.1.19"
Starting plugin "Domotics Pad Mobile Client 1.1.19" (pid 32918)
Started plugin "Domotics Pad Mobile Client 1.1.19"
Domotics Pad Mobile Client Performing update of DomoPads IWS plugin...
Domotics Pad Mobile Client Source IWS directory: /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/DomoPad Mobile Client.indigoPlugin/Contents/Server Plugin/AndroidClientHelper
Domotics Pad Mobile Client Target IWS directory: /Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/plugins/AndroidClientHelper
Domotics Pad Mobile Client AndroidClientHelper successfully installed/updated. Restarting Indigo IWS server to complete install.
Domotics Pad Mobile Client Your plugin version, v1.1.19, is current.

Mar 31, 2016, 6:51:59 AM
Domotics Pad Mobile Client DebugPlugin preferences updated
Domotics Pad Mobile Client DebugFailed to retrieve current IWS plugin version:
Domotics Pad Mobile Client ErrorError in plugin execution:

Traceback (most recent call last):
File "plugin.py", line 255, in getIWSPluginVersion
responseToQuery = opener.open(u'http://localhost:' + self.pluginPrefs.get(u'indigoPort') + u'/AndroidClientHelper/getVersionInfo')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1181, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1156, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 61] Connection refused>


Domotics Pad Mobile Client DebugCurrent IWS Plugin: v0.0
Domotics Pad Mobile Client DebugIncluded IWS Plugin: v1.2

Domotics Pad Mobile Client Performing update of DomoPads IWS plugin...
Domotics Pad Mobile Client Source IWS directory: /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/DomoPad Mobile Client.indigoPlugin/Contents/Server Plugin/AndroidClientHelper
Domotics Pad Mobile Client Target IWS directory: /Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/plugins/AndroidClientHelper
Domotics Pad Mobile Client AndroidClientHelper successfully installed/updated. Restarting Indigo IWS server to complete install.


When back into config and then took my username/pwd out an releoaded...same error


Mar 31, 2016, 6:55:14 AM
Reloading plugin "Domotics Pad Mobile Client 1.1.19"
Stopping plugin "Domotics Pad Mobile Client 1.1.19" (pid 32918)
Stopped plugin "Domotics Pad Mobile Client 1.1.19"
Starting plugin "Domotics Pad Mobile Client 1.1.19" (pid 32923)
Domotics Pad Mobile Client Initializing RPFrameworkPlugin
Domotics Pad Mobile Client Beginning processing of RPFrameworkConfig.xml file
Domotics Pad Mobile Client Found plugin param: indigoPort
Domotics Pad Mobile Client Found plugin setting: remoteCommandPort=9176
Domotics Pad Mobile Client Found plugin setting: pluginCommandQueueIdleSleep=3
Domotics Pad Mobile Client Found device mapping; id: domoPadAndroidClient to class: DomoPadAndroidClient
Domotics Pad Mobile Client Found device mapping; id: domoPadVideoFeed to class: VideoCameraFeed
Domotics Pad Mobile Client Created device parameter for managed device "domoPadVideoFeed": videoFeedUrl
Domotics Pad Mobile Client Found managed action: sendPushNotification
Domotics Pad Mobile Client Processing 2 params for action
Domotics Pad Mobile Client Created parameter for managed action "sendPushNotification": message
Domotics Pad Mobile Client Created parameter for managed action "sendPushNotification": importanceLevel
Domotics Pad Mobile Client Successfully completed processing of RPFrameworkConfig.xml file
Domotics Pad Mobile Client Customizing MenuItems.xml
Domotics Pad Mobile Client Returning default GUIConfigValue for plugin:showUPnPDebug
Started plugin "Domotics Pad Mobile Client 1.1.19"
Domotics Pad Mobile Client DebugReturning default GUIConfigValue for plugin:databaseConnectionEnabled
Domotics Pad Mobile Client DebugDatabase access enabled:
Domotics Pad Mobile Client DebugDatabase access has been disabled, skipping connection
Domotics Pad Mobile Client DebugFailed to retrieve current IWS plugin version:
Domotics Pad Mobile Client ErrorError in plugin execution:

Traceback (most recent call last):
File "plugin.py", line 255, in getIWSPluginVersion
responseToQuery = opener.open(u'http://localhost:' + self.pluginPrefs.get(u'indigoPort') + u'/AndroidClientHelper/getVersionInfo')
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 391, in open
response = self._open(req, data)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 409, in _open
'_open', req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 369, in _call_chain
result = func(*args)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1181, in http_open
return self.do_open(httplib.HTTPConnection, req)
File "/System/Library/Frameworks/Python.framework/Versions/2.6/lib/python2.6/urllib2.py", line 1156, in do_open
raise URLError(err)
URLError: <urlopen error [Errno 61] Connection refused>

Domotics Pad Mobile Client DebugCurrent IWS Plugin: v0.0
Domotics Pad Mobile Client DebugIncluded IWS Plugin: v1.2
Domotics Pad Mobile Client Performing update of DomoPads IWS plugin...
Domotics Pad Mobile Client Source IWS directory: /Library/Application Support/Perceptive Automation/Indigo 6/Plugins/DomoPad Mobile Client.indigoPlugin/Contents/Server Plugin/AndroidClientHelper
Domotics Pad Mobile Client Target IWS directory: /Library/Application Support/Perceptive Automation/Indigo 6/IndigoWebServer/plugins/AndroidClientHelper
Domotics Pad Mobile Client AndroidClientHelper successfully installed/updated. Restarting Indigo IWS server to complete install.
Domotics Pad Mobile Client DebugStarting up connection listener
Domotics Pad Mobile Client DebugVersion check initiated
Domotics Pad Mobile Client DebugVersion File Url:http://www.duncanware.com/Downloads/IndigoHomeAutomation/Plugins/DomoPadMobileClient/DomoPadMobileClientVersionInfo.html
Domotics Pad Mobile Client Your plugin version, v1.1.19, is current.

Posted on
Fri Apr 08, 2016 9:27 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Can't Pair Device with Android 6 Devices

Okay, so try as I might, the ONLY way that I can manage to duplicate your logs is to enter the wrong port number in the plugin configuration. Can you please go to Plugins -> Domotics Pad Mobile Client -> Configure and ensure that the "Indigo IWS Port" is set to 8176?

Posted on
Fri Apr 15, 2016 1:12 pm
RichP offline
Posts: 7
Joined: Mar 30, 2016

Re: Can't Pair Device with Android 6 Devices

Thanks for the help.

I got frustrated and moved to OpenHab. This of course led to even more frustrations but eventually I got OPenHab working for me :D

Posted on
Mon Jun 12, 2017 12:50 pm
bluefightingcat offline
Posts: 75
Joined: Jan 12, 2015

Re: Can't Pair Device with Android 6 Devices

I am having a similar issue with my Android Device. I follow the instructions but when I try and pair my Android device, by pressing the "pair" button on the phone, I get the following error:

"The domotics Pad mobile client plugin is missing or mis-configured on the server."

The log says:

"undefined page requested "http://xxxxxxxx.indigodomo.net/AndroidClientHelper/registerAndroidDevice" from xxx.xxx.xxx.xxx"

Posted on
Mon Jun 12, 2017 1:23 pm
RogueProeliator offline
User avatar
Posts: 2501
Joined: Nov 13, 2012
Location: Baton Rouge, LA

Re: Can't Pair Device with Android 6 Devices

"The domotics Pad mobile client plugin is missing or mis-configured on the server."

The log says:

"undefined page requested "http://xxxxxxxx.indigodomo.net/AndroidClientHelper/registerAndroidDevice" from xxx.xxx.xxx.xxx"

That is indicating that you don't have the Domotics Pad Mobile Client Plugin installed on the Indigo server - or it is not running properly on the server. Assuming you have the plugin installed, please turn on debug for the plugin and restart it. Then post the output of the restart (from the Indigo log) here.

Adam

Posted on
Tue Jun 20, 2017 1:43 am
bluefightingcat offline
Posts: 75
Joined: Jan 12, 2015

Re: Can't Pair Device with Android 6 Devices

This issue was fixed when I updated to the latest version of the Plugin.

Page 1 of 1

Who is online

Users browsing this forum: No registered users and 3 guests

cron