Hello,
i have setup a gateway device in the Watson Iot cloud using the US-South location. i have tried to use both a supplied token and an auto generated token and i always get the same response when restarting HA.
I use HA in a python Virt environment (python 3.6)
there are no logs in the IOT cloud area against my device.
the ‘xxxxxxxxxx’ refers to the token that is setup as part of the device creation in the cloud.
I have setup 3 separate devices using auto-gen tokens and then manually entered tokens with no success.
2018-08-02 15:19:13 CRITICAL (Thread-4) [ibmiotf.gateway.Client] Not authorized: s (g:v49juo:Gateway:home-assistant, use-token-auth, xxxxxxxxxx)
2018-08-02 15:19:22 WARNING (MainThread) [homeassistant.setup] Setup of watson_iot is taking over 10 seconds.
2018-08-02 15:19:43 CRITICAL (SyncWorker_7) [ibmiotf.gateway.Client] Operation timed out connecting to IBM Watson IoT Platform: v49juo.messaging.internetofthings.ibmcloud.com
2018-08-02 15:19:43 ERROR (MainThread) [homeassistant.setup] Error during setup of component watson_iot
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/setup.py", line 146, in _async_setup_component
component.setup, hass, processed_config) # type: ignore
File "/usr/lib/python3.6/concurrent/futures/thread.py", line 56, in run
result = self.fn(*self.args, **self.kwargs)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/watson_iot.py", line 127, in setup
hass, watson_gateway, event_to_json)
File "/srv/homeassistant/lib/python3.6/site-packages/homeassistant/components/watson_iot.py", line 148, in __init__
self.gateway.connect()
File "/srv/homeassistant/lib/python3.6/site-packages/ibmiotf/__init__.py", line 147, in connect
self.logAndRaiseException(ConnectionException("Operation timed out connecting to IBM Watson IoT Platform: %s" % (self.address)))
File "/srv/homeassistant/lib/python3.6/site-packages/ibmiotf/__init__.py", line 137, in logAndRaiseException
raise e
ibmiotf.ConnectionException: Operation timed out connecting to IBM Watson IoT Platform: v49juo.messaging.internetofthings.ibmcloud.com
I should also mention this is the output of:
pip install ibmiotf
Requirement already satisfied: ibmiotf in /srv/homeassistant/lib/python3.6/site-packages (0.3.4)
Requirement already satisfied: iso8601>=0.1.12 in /srv/homeassistant/lib/python3.6/site-packages (from ibmiotf) (0.1.12)
Requirement already satisfied: paho-mqtt>=1.3.1 in /srv/homeassistant/lib/python3.6/site-packages (from ibmiotf) (1.3.1)
Requirement already satisfied: pytz>=2017.3 in /srv/homeassistant/lib/python3.6/site-packages (from ibmiotf) (2018.5)
Requirement already satisfied: requests>=2.18.4 in /srv/homeassistant/lib/python3.6/site-packages (from ibmiotf) (2.19.1)
Requirement already satisfied: requests_toolbelt>=0.8.0 in /srv/homeassistant/lib/python3.6/site-packages (from ibmiotf) (0.8.0)
Requirement already satisfied: dicttoxml>=1.7.4 in /srv/homeassistant/lib/python3.6/site-packages (from ibmiotf) (1.7.4)
Requirement already satisfied: xmltodict>=0.11.0 in /srv/homeassistant/lib/python3.6/site-packages (from ibmiotf) (0.11.0)
Requirement already satisfied: certifi>=2017.4.17 in /srv/homeassistant/lib/python3.6/site-packages (from requests>=2.18.4->ibmiotf) (2018.4.16)
Requirement already satisfied: idna<2.8,>=2.5 in /srv/homeassistant/lib/python3.6/site-packages (from requests>=2.18.4->ibmiotf) (2.6)
Requirement already satisfied: urllib3<1.24,>=1.21.1 in /srv/homeassistant/lib/python3.6/site-packages (from requests>=2.18.4->ibmiotf) (1.22)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /srv/homeassistant/lib/python3.6/site-packages (from requests>=2.18.4->ibmiotf) (3.0.4)