You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Python 3.4.2 (default, Oct 8 2014, 14:38:51)
[GCC 4.9.1] on linux
Type "help", "copyright", "credits" or "license"for more information.
>>> import homeassistant.remote as remote
>>> import homeassistant.bootstrap as bootstrap
>>> remote_api = remote.API("192.168.7.21")
>>> print(remote.get_state(remote_api, 'sensor.temp2'))
<state sensor.temp2=10.06; friendly_name=temp2@ 2016-10-28T18:33:58.777007+00:00>#up to this place works, but next instruction has infinite execution time. I have waited 2 hours, withot success. Only ctrl+C can break this.
>>> hass = remote.HomeAssistant(remote_api)
^CTraceback (most recent call last):
File "<stdin>", line 1, in<module>
File "/hdd/repo/venv-tcan/lib/python3.4/site-packages/homeassistant/remote.py", line 131, in __init__
self.states = StateMachine(self.bus, self.loop, self.remote_api)
File "/hdd/repo/venv-tcan/lib/python3.4/site-packages/homeassistant/remote.py", line 267, in __init__
bus.listen(ha.EVENT_STATE_CHANGED, self._state_changed_listener)
File "/hdd/repo/venv-tcan/lib/python3.4/site-packages/homeassistant/core.py", line 472, in listen
self._hass.loop, self.async_listen, event_type, listener).result()
File "/usr/lib/python3.4/concurrent/futures/_base.py", line 397, in result
self._condition.wait(timeout)
File "/usr/lib/python3.4/threading.py", line 290, inwaitwaiter.acquire()
KeyboardInterrupt
The text was updated successfully, but these errors were encountered:
*_Home Assistant release (
hass --version
): 0.31.1*_Python release (
python3 --version
): Python 3.4.2*_Component/platform: remote.HomeAssistant
*_Description of problem: Can't initialize remote.HomeAssistant API
Traceback (if applicable):
The text was updated successfully, but these errors were encountered: