Coder Social home page Coder Social logo

udi-harmony-poly's People

Contributors

einstein42 avatar jimboca avatar

Stargazers

 avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

udi-harmony-poly's Issues

Need to catch all timeouts

2018-02-28 07:35:13,520 ERROR    Exception in thread Thread-2:
Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.5/site-packages/pyharmony/client.py", line 180, in change_channel
    result = iq_cmd.send(block=True)
  File "/home/pi/.local/lib/python3.5/site-packages/sleekxmpp/stanza/iq.py", line 233, in send
    raise IqTimeout(self)
sleekxmpp.exceptions.IqTimeout: <iq id="632bcd17-67b5-465d-8407-695d83c28146-8" type="get"><oa mime="harmony.engine?changeChannel" xmlns="connect.logitech.com">channel=1046:timestamp=0</oa></iq>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 603, in _parseInput
    self.nodes[input[key]['address']].runCmd(input[key])
  File "/home/pi/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 510, in runCmd
    fun(self, command)
  File "/home/pi/development/udi-harmony-poly/harmony_hub_nodes/HarmonyHub.py", line 372, in _cmd_change_channel
    return self.change_channel(channel)
  File "/home/pi/development/udi-harmony-poly/harmony_hub_nodes/HarmonyHub.py", line 353, in change_channel
    ret = self.client.change_channel(channel)
  File "/home/pi/.local/lib/python3.5/site-packages/pyharmony/client.py", line 183, in change_channel
    result = iq_cmd.send(block=True)
  File "/home/pi/.local/lib/python3.5/site-packages/sleekxmpp/stanza/iq.py", line 233, in send
    raise IqTimeout(self)
sleekxmpp.exceptions.IqTimeout: <iq id="632bcd17-67b5-465d-8407-695d83c28146-8" type="get"><oa mime="harmony.engine?changeChannel" xmlns="connect.logitech.com">channel=1046:timestamp=0</oa></iq>

HarmonyHub on Polisy for ISY

I just installed HarmonyHub 2.4.3 on my Universal Devices Polisy and I am having issues getting it to start.

The hub has a static ip & I have enabled XMPP in the Harmony app. Below is the Log from Polisy when trying to start the node. What am I missing?

2020-12-05 10:38:10,766 MainThread polyinterface      INFO     polylogger:set_basic_config: set_basic_config: enable=True level=30
2020-12-05 10:38:11,809 MainThread polyinterface      INFO     polyinterface:init_interface: Received Config from STDIN.
2020-12-05 10:38:11,810 MainThread polyinterface      INFO     __init__:<module>: UDI Polyglot v2 Interface 2.1.0 Starting...
2020-12-05 10:38:11,997 MainThread polyinterface      ERROR    polyinterface:write: Traceback (most recent call last):
2020-12-05 10:38:11,998 MainThread polyinterface      ERROR    polyinterface:write: File "./harmony_hub.py", line 13, in <module>
2020-12-05 10:38:11,999 MainThread polyinterface      ERROR    polyinterface:write: from harmony_hub_nodes import HarmonyController
2020-12-05 10:38:12,000 MainThread polyinterface      ERROR    polyinterface:write: File "/var/polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/__init__.py", line 7, in <module>
2020-12-05 10:38:12,001 MainThread polyinterface      ERROR    polyinterface:write: from .HarmonyHub import HarmonyHub
2020-12-05 10:38:12,002 MainThread polyinterface      ERROR    polyinterface:write: File "/var/polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 6, in <module>
2020-12-05 10:38:12,003 MainThread polyinterface      ERROR    polyinterface:write: from harmony_hub_funcs import ip2long,long2ip,get_valid_node_name,get_file
2020-12-05 10:38:12,004 MainThread polyinterface      ERROR    polyinterface:write: File "/var/polyglot/nodeservers/HarmonyHub/harmony_hub_funcs.py", line 5, in <module>
2020-12-05 10:38:12,005 MainThread polyinterface      ERROR    polyinterface:write: from pyharmony import ha_get_client
2020-12-05 10:38:12,006 MainThread polyinterface      ERROR    polyinterface:write: ModuleNotFoundError
2020-12-05 10:38:12,006 MainThread polyinterface      ERROR    polyinterface:write: :
2020-12-05 10:38:12,007 MainThread polyinterface      ERROR    polyinterface:write: No module named 'pyharmony'

Hub reconnects causing stack overflow

Hard to debug this from the log, but this is what we get... Will need to review the code.

9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: Fatal Python error: Cannot recover from stack overflow.

Current thread 0x00007f09677fe700 (most recent call first):
  File "/usr/lib/python3.
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: 5/logging/__init__.py", line 568 in format
  File "/usr/lib/python3.5/logging/__init__.py", line 831 in format
  File "/usr/lib/python3.5/logging/__init__.py", line 981 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 1049 in emit
  File "/usr/lib/python3.5/logging/handlers.py", line 73 in emi
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: t
  File "/usr/lib/python3.5/logging/__init__.py", line 856 in handle
  File "/usr/lib/python3.5/logging
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: /__init__.py", line 1488 in callHandlers
  File "/usr/lib/python3.5/logging/__init__.py", line 1426 in 
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  File "/usr/lib/python3.5/logging/
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: __init__.py", line 1309 in error
  File "/home/tim/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 39 in write
  File "/usr/lib/python3.5/logging/__init__.py", line 908 in handleError
  File "/usr/lib/python3.5/logging/__
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: init__.py", line 987 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 1049 in emit
  File "/usr/lib/p
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ython3.5/logging/handlers.py", line 73 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 856
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub:  in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1488 in callHandlers
  File "/usr/lib/python3.5/loggi
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ng/__init__.py", line 1426 in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  File "/
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: usr/lib/python3.5/logging/__init__.py", line 1309 in error
  File "/home/tim/.local/lib/pyt
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: hon3.5/site-packages/polyinterface/polyinterface.py", line 39 in write
  File "/usr/lib/python
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: 3.5/logging/__init__.py", line 908 in handleError
  File "/usr/lib/python3.5/logging/__init__.p
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: y", line 987 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 1049 in emit
  File "/usr/lib/python
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: 3.5/logging/handlers.py", line 73 in emit
  File "/
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: usr/lib/python3.5/logging/__init__.py
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ", line 856 in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1488 in callHandlers
  File "/usr/
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: lib/python3.5/logging/__init__.py", line 1426 in handle
  File "/usr/lib/python3.5/logging/__ini
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: t__.py", line 1416 in _log
  File "/usr/lib/python3.5/logging/__init__.py", line 1309 in error
  File "/home/tim/.l
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ocal/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 39 in write
  File 
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: "/usr/lib/python3.5/logging/__init__.py", line 908 in handleEr
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ror
  File "/usr/lib/python3.5/logging/__init__.py", line 987 in emit
  File "/usr/lib/python3.5/log
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ging/__init__.py", line 1049 in emit
  File "/usr/lib/python3.5/logging/handlers.py", line 73 in emit
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: 
  File "/usr/lib/python3.5/logging/__init__.py", line 856 in handle
  File "/usr/lib/python3.5/logg
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ing/__init__.py", line 1488 in callHandlers
  File "/usr/lib/python3.5/logging/__init__.py", line 1426
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub:  in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  File "/usr/lib/python3
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: .5/logging/__init__.py", line 1309 in error
  File "/home/tim/.local/lib/python3.5/site-packages/polyinte
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: rface/polyinterface.py", line 39 in write
  File "/usr/lib/python3.5/logging/__init__.py"
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: , line 908 in handleError
  File "/usr/lib/python3.5/logging/__init__.py", line 987 in emit
  File "/usr/lib/pyt
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: hon3.5/logging/__init__.py", line 1049 in emit
  File "/usr/lib/python3.5/logging/handlers.py"
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: , line 73 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 856 in handle
  File "/usr/lib/python3.
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: 5/logging/__init__.py", line 1488 in callHandlers
  File "/usr/lib/python3.5/logging/__init__.
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: py", line 1426 in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  File "/usr/lib
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: /python3.5/logging/__init__.py", line 1309 in error
  File "/home/tim/.local/lib/python3.5/site-
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: packages/polyinterface/polyinterface.py", line 39 in write
  File "/usr/lib/python3.5/log
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ging/__init__.py", line 908 in handleError
  File "/usr/lib/python3.5/logging/handlers.py", line 75 in e
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: mit
  File "/usr/lib/python3.5/logging/__init__.py", line 856 in handle
  File "/usr/lib/python3.5
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: /logging/__init__.py", line 1488 in callHandlers
  File "/usr/lib/python3.5/logging/__init__
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: .py", line 1426 in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  File "/usr/lib/python3.5/logging/__init__.py"
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: , line 1309 in error
  File "/home/tim/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 39 in write
  File "/usr/lib/python3.5/logging/__init__.py", line 908 in handleErr
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: or
  File "/usr/lib/python3.5/logging/__init__.py", line 987 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 1049 in emit
  File "/usr/lib/py
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: thon3.5/logging/handlers.py", line 73 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 856 in handle
  File "/usr/lib/python3.5/lo
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: gging/__init__.py", line 1488 in callHandlers
  File "/usr/lib/python3.5/logging/__init__.py", line 1426 in handle
  File "/usr/lib/python3
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: .5/logging/__init__.py", line 1416 in _log
  File "/usr/lib/python3.5/logging/__init__.py", line 1309 in error
  File "/home/tim/.local/lib/pyt
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: hon3.5/site-packages/polyinterface/polyinterface.py", line 39 in write
  File "/usr/lib/python3.5/logging/__init__.py", line 908 in 
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: handleError
  File "/usr/lib/python3.5/logging/__init__.py", line 987 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 1049 in emit
  File "/
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: usr/lib/python3.5/logging/handlers.py", line 73 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 856 in handle
  File 
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: "/usr/lib/python3.5/logging/__init__.py", line 1488 in callHandlers
  File "/usr/lib/python3.5/logging/__init__.py", line 1426 in hand
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: le
  File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  File "/usr/lib/python3.5/logging/__init__.py", line 1309 in error
  File "/home/tim/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 39 in write
  File "/usr/lib/python3.5/logging/__init__.py", line 908 in handleError
  File "/usr/lib/python3.5/logging/__init__.py
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ", line 987 in emit
  File "/usr/lib/python3.5/logging/__init__.py", line 1049 in emit
  File "/usr/lib/python3.5/logging/handlers.py", line 73 in emit
  File "/usr/lib
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: /python3.5/logging/__init__.py", line 856 in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1488 in callHandlers
  File "/usr/lib/pyt
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: hon3.5/logging/__init__.py", line 1426 in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  File "/usr/lib/python3.5/loggin
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: g/__init__.py", line 1309 in error
  File "/home/tim/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 39
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub:  in write
  File "/usr/lib/python3.5/logging/__init__.py", line 908 in handleError
  File "/usr/lib/python3.5/logging/__init__.py", line 987 in em
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: it
  File "/usr/lib/python3.5/logging/__init__.py", line 1049 in emit
  File "/usr/lib/python3.5/logging/handlers.py", line 73 in emit
  File "/usr/li
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: b/python3.5/logging/__init__.py", line 856 in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1488 in callHandlers
  File "/usr/lib/
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: python3.5/logging/__init__.py", line 1426 in handle
  File "/usr/lib/python3.5/logging/__init__.py", line 1416 in _log
  File "/usr/lib/python3
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: .5/logging/__init__.py", line 1309 in error
  File "/home/tim/.local/lib/python3.5/site-packages/polyinterface/polyinterfa
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ce.py", line 39 in write
  File "/usr/lib/python3.5/logging/__init__.py", line 908 in handleError
  ...

Thread 0x00007f0967fff700 (most recent call first):
  File "/home/tim/.local/lib/python3.5/site-packa
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ges/sleekxmpp/xmlstream/xmlstream.py", line 551 in _connect
  File "/home/tim/.local/lib/python3.5/site-packages/sleekxmpp/t
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: hirdparty/statemachine.py", line 119 in transition_any
  File "/home/tim/.local/lib/python3.5/site-packages/sleekxmpp/thirdpa
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: rty/statemachine.py", line 74 in transition
  File "/home/tim/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlst
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: ream.py", line 449 in connect
  File "/home/tim/.local/lib/python3.5/site-packages/sleekxmpp/clientxmpp.py", line 165 in connec
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: t
  File "/home/tim/.local/lib/python3.5/site-packages/pyharmony/client.py", line 246 in create_and_connect_client
  File "/home/tim/.p
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: olyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 178 in _get_client
  File "/usr/lib/python3.5/threadin
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: g.py", line 862 in run
  File "/usr/lib/python3.5/threading.py", line 914 in _bootstrap_inner
  File "/usr/lib/python3.5/threading.py", line 882 in 
9/5/2019, 7:05:48 PM - error: NSChild STDERR: HarmonyHub: _bootstrap

Thread 0x00007f0974cb1700 (most recent call first):
  File "/home/tim/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 551 in _connect

9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub:   File "/home/tim/.local/lib/python3.5/site-packages/sleekxmpp/thirdparty/statemachine.py", line 119 in transition_any
  File "/ho
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: me/tim/.local/lib/python3.5/site-packages/sleekxmpp/thirdparty/statemachine.py", line 74 in transition
  File "/home/tim/.loc
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: al/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 449 in connect
  File "/home/tim/.local/lib/python3.5
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: /site-packages/sleekxmpp/clientxmpp.py", line 165 in connect
  File "/home/tim/.local/lib/python3.5/site-packages/pyharmon
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: y/client.py", line 246 in c
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: reate_and_connect_client

9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub:   File "/home/tim/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 178 in _get_client
  File "/usr/lib/python3.5/threading.py", line 862 in 
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: run
  File "/usr/lib/python3.5/threading.py", line 914 in _bootstrap_inner
  File "/usr/lib/python3.5/threading.py", line 882 in _bootstrap

Thread 0x
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: 00007f0975809700 (most recent call first):
  File "/home/tim/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 551 in _connect
  File "/home/tim/.
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: local/lib/python3.5/site-packages/sleekxmpp/thirdparty/statemachine.py", line 119 in transition_any
  File "/home/tim/.lo
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: cal/lib/python3.5/site-packages/sleekxmpp/thirdparty/statemachine.py", line 74 in transition
  File "/home/tim/.local/lib/py
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: thon3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 449 in connect
  File "/home/tim/.local/lib/python3.5/site-p
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: ackages/sleekxmpp/clientxmpp.py", line 165 in connect
  File "/home/tim/.local/lib/python3.5/site-packages/pyharmony/client.py", line 
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: 246 in create_and_connect_client
  File "/home/tim/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 178 in 
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: _get_client
  File "/usr/lib/python3.5/threading.py", line 862 in run
  File "/usr/lib/python3.5/threading.py", line 914 in _bootstrap_inne
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: r
  File "/usr/lib/python3.5/threading.py", line 882 in _bootstrap

Thread 0x00007f097604a700 (most recent call first):
  File "/usr/lib/python3.5/threading.py", line 293 in wait
  File "/usr/lib/python3.5/queue.py", line 164 in get

9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub:   File "/home/tim/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 742 in _parseInput
  File "/usr/lib/py
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: thon3.5/threading.py", line 862 in run
  File "/usr/lib/python3.5/threading.py", line 914 in _bootstrap_inner
  File "/usr/lib/python3.5/thr
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: eading.py", line 882 in _bootstrap

Thread 0x00007f0976a5d700 (most recent call first):
  File "/home/tim/.local/lib/python3.5/site-packages/paho/mqtt/client.py", line 1057 in loop
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: 
  File "/home/tim/.local/lib/python3.5/site-packages/paho/mqtt/client.py", line 1578 in loop_forever
  File "/home/ti
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: m/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 322 in _startMqtt
  File "/usr/lib/python3.5/threadin
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: g.py", line 862 in run
  File "/usr/lib/python3.5/threading.py", line 914 in _bootstrap_inner
  File "/usr/lib/python3.5/threading.py", line 882 in _
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: bootstrap

Thread 0x00007f097a03d700 (most recent call first):
  File "/usr/lib/python3.5/threading.py", line 1070 in _wait_for_tstate_lock
  File "/usr/lib/python3.5/threading.py
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: ", line 1054 in join
  File "/home/tim/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 868 in runForever
  File "./harmony
9/5/2019, 7:05:49 PM - error: NSChild STDERR: HarmonyHub: _hub.py", line 29 in <module>

9/5/2019, 7:05:49 PM - info: MQTTS: Client Disconnected: HarmonyHub
9/5/2019, 7:05:49 PM - info: HarmonyHub(3): NodeServer Disconnected.

111

device id=xx not in command hash

2019-02-08 12:33:17,197 [Controller] [ERROR] Device:d45423097:Sony DVDBlu-ray Player:_get_button_command: This device id=45423097 not in command hash = {'40683366': '0', '52984353': '0', '45356775': '0', '50468743': '0', '45356777': '0', '44785261': '0', '50469737': '0'} 2019-02-08 12:33:17,197 [Controller] [ERROR]

See forum PM from carealtor for more info.

Failed to reconnect to hub

Full log attached, relevant portion below

HarmonyHub.log

2018-04-08 15:38:48,516 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45188)>
2018-04-08 15:38:50,632 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45190)>
2018-04-08 15:38:53,149 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45192)>
2018-04-08 15:38:55,221 ERROR    Hub:h0eff39c215884:Bedroom Hub:check_client: Client no longer connected. client.state=disconnected
2018-04-08 15:38:55,222 INFO     Updating Driver h0eff39c215884 - ST: 0, uom: 2
2018-04-08 15:38:55,224 DEBUG    Hub:h0eff39c215884:Bedroom Hub:check_client: Calling get_client st=0
2018-04-08 15:38:55,226 INFO     Hub:h0eff39c215884:Bedroom Hub:get_client: Initializing PyHarmony Client
2018-04-08 15:38:55,274 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45194)>
2018-04-08 15:38:57,493 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45198)>
2018-04-08 15:38:58,397 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37636)>
2018-04-08 15:38:59,712 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45204)>
2018-04-08 15:39:00,227 INFO     Hub:h0eff39c215884:Bedroom Hub:check_client: Waiting for client startup to complete, status = init..
2018-04-08 15:39:00,400 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37642)>
2018-04-08 15:39:01,517 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37646)>
2018-04-08 15:39:01,731 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45208)>
2018-04-08 15:39:03,420 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37650)>
2018-04-08 15:39:04,251 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45214)>
2018-04-08 15:39:04,637 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37652)>
2018-04-08 15:39:05,229 INFO     Hub:h0eff39c215884:Bedroom Hub:check_client: Waiting for client startup to complete, status = init..
2018-04-08 15:39:06,340 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37656)>
2018-04-08 15:39:06,671 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45218)>
2018-04-08 15:39:07,758 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37660)>
2018-04-08 15:39:08,995 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=12, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45226)>
2018-04-08 15:39:09,660 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=15, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37662)>
2018-04-08 15:39:09,962 WARNING  /home/pi/.local/lib/python3.5/site-packages/sleekxmpp/xmlstream/xmlstream.py:503: ResourceWarning: unclosed <socket.socket fd=24, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37664)>
2018-04-08 15:39:10,230 INFO     Hub:h0eff39c215884:Bedroom Hub:check_client: Waiting for client startup to complete, status = init..
2018-04-08 15:39:10,877 ERROR    Failed to connect to 192.168.1.87:5222 after 5 tries
2018-04-08 15:39:10,880 INFO     Updating Driver h0eff39c215884 - ST: 1, uom: 2
2018-04-08 15:39:10,882 INFO     Hub:h0eff39c215884:Bedroom Hub:init_activities_and_devices: start
2018-04-08 15:39:10,889 WARNING  /home/pi/.local/lib/python3.5/site-packages/paho/mqtt/matcher.py:62: ResourceWarning: unclosed <socket.socket fd=23, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('0.0.0.0', 37668)>
2018-04-08 15:39:10,899 ERROR    Exception in thread Thread-23:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 158, in _get_client
    self.init_activities_and_devices()
  File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 242, in init_activities_and_devices
    harmony_config = self.client.get_config()
AttributeError: 'bool' object has no attribute 'get_config'
2018-04-08 15:39:10,914 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=22, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('192.168.1.11', 45230)>

Nodeserver should used saved profile data

The Nodeserver loads the hub data on each start, but this might not match with the current data that generated the profile. Should add a flag for out of date hub config to know when profile should be regenerated.

Phantom Nodes

After installing the PG3 version, I found two phantom nodes that are not part of my system. Based on the detail in the drop down, I suspect they are part of a test or development system. They can easily be deleted but may confuse novice users.

Phantom-FamilyRoom-Node
Phantom-MasterBedroom-Node

Trap xlkeekxmpp error?

How can this be trapped??

2021-05-08 12:07:06,262 read_thread sleekxmpp.basexmpp ERROR    basexmpp:exception: Key Session timeout check already exists
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.7/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1184, in event
    handler[0](out_data)
  File "/var/polyglot/.local/lib/python3.7/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 662, in _session_timeout_check
    _handle_session_timeout)
  File "/var/polyglot/.local/lib/python3.7/site-packages/sleekxmpp/xmlstream/xmlstream.py", line 1219, in schedule
    repeat, qpointer=self.event_queue)
  File "/var/polyglot/.local/lib/python3.7/site-packages/sleekxmpp/xmlstream/scheduler.py", line 220, in add
    raise ValueError("Key %s already exists" % name)
ValueError: Key Session timeout check already exists

Unclosed socket errors

2018-01-19 16:51:07,745 ERROR    Hub:h2f00905f1f01b:Living Room Hub:get_current_activity: Traceback (most recent call last):
  File "/home/pi/.local/lib/python3.5/site-packages/pyharmony/client.py", line 78, in get_current_activity
    result = iq_cmd.send(block=True)
  File "/home/pi/.local/lib/python3.5/site-packages/sleekxmpp/stanza/iq.py", line 233, in send
    raise IqTimeout(self)
sleekxmpp.exceptions.IqTimeout: <iq type="get" id=-x-id-removed--"><oa xmlns="connect.logitech.com" mime="vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity" /></iq>

During handling of the above exception, another exception occurred:

Traceback (most recent call last):
  File "/home/pi/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyHub.py", line 121, in _get_current_activity
    ca = self.client.get_current_activity()
  File "/home/pi/.local/lib/python3.5/site-packages/pyharmony/client.py", line 81, in get_current_activity
    result = iq_cmd.send(block=True)
  File "/home/pi/.local/lib/python3.5/site-packages/sleekxmpp/stanza/iq.py", line 233, in send
    raise IqTimeout(self)
sleekxmpp.exceptions.IqTimeout: <iq type="get" id="-x-id-removed--"><oa xmlns="connect.logitech.com" mime="vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity" /></iq>

Then later it just keeps printing this in the log:

2018-01-19 19:47:56,850 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=9, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('-ip-removed-', 57522)>
2018-01-19 19:47:59,309 WARNING  /usr/lib/python3.5/socket.py:647: ResourceWarning: unclosed <socket.socket fd=11, family=AddressFamily.AF_INET, type=SocketKind.SOCK_STREAM, proto=0, laddr=('-ip-removed-', 42096)>

Purge Commands broken

This was not tested on PG3 yet and of course has issues.

2022-01-12 16:48:42,598 Command    udi_interface.interface ERROR    interface:_handleInput: _parseInput: failed harmonyctrl.runCmd(PURGE_CHECK) 'Controller' object has no attribute 'removeNoticesAll'
Traceback (most recent call last):
  File "/var/polyglot/.local/lib/python3.8/site-packages/udi_interface/interface.py", line 730, in _handleInput
    self.nodes_internal[item['address']].runCmd(item)
  File "/var/polyglot/.local/lib/python3.8/site-packages/udi_interface/node.py", line 154, in runCmd
    fun(self, command)
  File "/var/polyglot/pg3/ns/00:21:b9:02:0d:bf_3/nodes/Controller.py", line 626, in _cmd_purge_check
    self.purge(do_delete=False)
  File "/var/polyglot/pg3/ns/00:21:b9:02:0d:bf_3/nodes/Controller.py", line 431, in purge
    self.removeNoticesAll()
AttributeError: 'Controller' object has no attribute 'removeNoticesAll'

Status not updated in hub

The ISY scene and device status are not changing on the remote when they are changes by the ISY or local control.

Discover save hub info

When discover is passed the option it should save that info to a file, so that next install/update of the nodeserver can run write_profile and use the previous arguments to rebuild the profile with each release.

auto discover/sync fails

Everything went fine with the add nodeserver, but after the reboot of the isy device there was no harmonycontroller node. I restarted the node server and still no joy.

Logs show the both harmony hubs (yes I have do have 2 hubs) profiles and devices appear to have been discovered, but seems to bail before the profile is created. See snip from the logs:

2018-01-20 15:29:04,260 DEBUG    write_profile:     Function: Index: 50, Name: Sleep,  Label: Sleep, Command: Sleep
2018-01-20 15:29:04,261 DEBUG    write_profile:     Function: Index: 51, Name: Info,  Label: Info, Command: Info
2018-01-20 15:29:04,261 DEBUG    write_profile:     Function: Index: 52, Name: PageDown,  Label: Page Down, Command: PageDown
2018-01-20 15:29:04,262 DEBUG    write_profile:     Function: Index: 53, Name: PageUp,  Label: Page Up, Command: PageUp
2018-01-20 15:29:04,263 DEBUG    write_profile:     Function: Index: 54, Name: Delete,  Label: Backspace, Command: Delete
2018-01-20 15:29:04,263 DEBUG    write_profile:     Function: Index: 55, Name: ',  Label: ', Command: '
2018-01-20 15:29:04,264 DEBUG    write_profile:     Function: Index: 56, Name: !,  Label: !, Command: !
2018-01-20 15:29:04,268 WARNING  /usr/lib/python3.5/threading.py:947: ResourceWarning: unclosed file <_io.TextIOWrapper name='profile/nls/en_us.txt' mode='w' encoding='UTF-8'>
2018-01-20 15:29:04,268 WARNING  /usr/lib/python3.5/threading.py:947: ResourceWarning: unclosed file <_io.TextIOWrapper name='profile/nodedef/custom.xml' mode='w' encoding='UTF-8'>
2018-01-20 15:29:04,269 WARNING  /usr/lib/python3.5/threading.py:947: ResourceWarning: unclosed file <_io.TextIOWrapper name='profile/editor/custom.xml' mode='w' encoding='UTF-8'>

Turning on an Activity is busted

2018-02-01 13:02:16,128 DEBUG    Activity:a28066022:Xbox one:_set_st: set=0, get=0
 

2018-02-01 13:02:43,936 DEBUG Activity:a28066022:Xbox one:_cmd_on:
2018-02-01 13:02:43,939 ERROR Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/home/tom/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 602, in _parseInput
self.nodes[input[key]['address']].runCmd(input[key])
File "/home/tom/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 510, in runCmd
fun(self, command)
File "/home/tom/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyActivity.py", line 74, in _cmd_on
ret = self.primary.start_activity(id=self.number)
AttributeError: 'str' object has no attribute 'start_activity'

Crash in Purge

2023-11-25 10:30:56,006 Command    udi_interface      WARNING  Controller:purge:  Deleting Activity for "Media Room Hub" that is no longer used a45241859 "Watch Fire TV"
2023-11-25 10:30:56,006 Command    udi_interface.custom INFO     custom:_save: Sending data notices to Polyglot.
2023-11-25 10:30:56,006 Command    udi_interface.interface ERROR    interface:_handleInput: _parseInput: failed harmonyctrl.runCmd(PURGE_EXECUTE) 'Controller' object has no attribute 'controller'
Traceback (most recent call last):
  File "/var/polyglot/pg3/ns/0021b902628f_12/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 960, in _handleInput
    self.nodes_internal[item['address']].runCmd(item)
  File "/var/polyglot/pg3/ns/0021b902628f_12/.local/lib/python3.9/site-packages/udi_interface/node.py", line 172, in runCmd
    fun(self, command)
  File "/var/polyglot/pg3/ns/0021b902628f_12/nodes/Controller.py", line 642, in _cmd_purge_execute
    self.purge(do_delete=True)
  File "/var/polyglot/pg3/ns/0021b902628f_12/nodes/Controller.py", line 499, in purge
    self.controller.poly.delNode(address)
AttributeError: 'Controller' object has no attribute 'controller'

Support Virtual Devices as dimmable

I'm trying to use a virtual dimmer (defined via the Virtual NS), but it shows up in the Hue device table as an On/Off light instead of a dimmable light.ย  The node definition ID is 'virtualgeneric'.ย  Is there a way to get this to show up as a dimmable light in your NS?

Issue #30 may help with this.

Cannot disable Auto Discover

I must confess that I'm new to Polyglot and Harmony. I'd like to stop all my devices showing up in my ISY and instead just show certain activities. I deleted the nodes I didn't want and then tried to set "Auto Discover" to false in ISY, but it resets back to true (immediately).

I'm not sure how drivers work, but looking at the code I see GV8 is the auto discover setting.

Also, I get a lot of request failed errors in ISY when I add a hub to a scene.

Help much appreciated.

Exeption parsing hub names

2020-12-04 08:15:22,031 Thread-1   polyinterface      INFO     HarmonyController:l_info: HarmonyController:_set_num_hubs: 0
2020-12-04 08:15:22,032 Thread-1   polyinterface      INFO     polyinterface:reportDriver: Updating Driver harmonyctrl - GV7: 2, uom: 25
2020-12-04 08:15:22,034 Thread-1   polyinterface      INFO     HarmonyController:l_info: HarmonyController:discover: harmony_discover: starting...
2020-12-04 08:15:22,037 Thread-1   polyinterface      DEBUG    discovery:get_network_interface: gateway: default=('192.168.71.1', 'igb0')
2020-12-04 08:15:22,038 Thread-1   polyinterface      DEBUG    discovery:get_network_interface: gateway->ifad: igb0=[{'addr': '192.168.71.23', 'netmask': '255.255.255.0', 'broadcast': '192.168.71.255'}]
2020-12-04 08:15:22,039 Thread-1   polyinterface      INFO     discovery:get_network_bcast: get_network_bcast: Returning 192.168.71.255
2020-12-04 08:15:22,042 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:23,046 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:24,056 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:25,086 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:25,665 Controller polyinterface      DEBUG    HarmonyController:canPoll: discover thread still running...
2020-12-04 08:15:26,109 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:27,116 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:28,154 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:29,177 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:30,178 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:30,672 Controller polyinterface      DEBUG    HarmonyController:canPoll: discover thread still running...
2020-12-04 08:15:31,181 Thread-1   polyinterface      DEBUG    discovery:discover: Pinging network 192.168.71.255 port 61991
2020-12-04 08:15:32,185 Thread-2   polyinterface      INFO     discovery:listen: Listen socket already closed? [Errno 53] Software caused connection abort
2020-12-04 08:15:32,186 Thread-1   polyinterface      INFO     discovery:discover: Completed scan, 0 hub(s) found.
2020-12-04 08:15:32,188 Thread-1   polyinterface      INFO     HarmonyController:l_info: HarmonyController:discover: harmony_discover: []
2020-12-04 08:15:32,188 Thread-1   polyinterface      INFO     polyinterface:reportDriver: Updating Driver harmonyctrl - GV7: 3, uom: 25
2020-12-04 08:15:32,192 Thread-1   polyinterface      INFO     HarmonyController:l_info: HarmonyController:discover: param=hub_62 match=<re.Match object; span=(0, 6), match='hub_62'>
2020-12-04 08:15:32,193 Thread-1   polyinterface      INFO     HarmonyController:l_info: HarmonyController:discover: process param=hub_62 address=62
2020-12-04 08:15:32,197 Thread-1   polyinterface      INFO     HarmonyController:l_info: HarmonyController:discover: param=hub_61 match=<re.Match object; span=(0, 6), match='hub_61'>
2020-12-04 08:15:32,198 Thread-1   polyinterface      INFO     HarmonyController:l_info: HarmonyController:discover: process param=hub_61 address=61
2020-12-04 08:15:32,210 Thread-1   polyinterface      ERROR    polyinterface:write: Exception in thread Thread-1:
Traceback (most recent call last):
  File "/usr/local/lib/python3.7/threading.py", line 926, in _bootstrap_inner
    self.run()
  File "/usr/local/lib/python3.7/threading.py", line 870, in run
    self._target(*self._args, **self._kwargs)
  File "/var/polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 289, in _discover
    index = next((idx for (idx, hub) in enumerate(self.hubs) if hub['name'] == hub_name), None)
  File "/var/polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 289, in <genexpr>
    index = next((idx for (idx, hub) in enumerate(self.hubs) if hub['name'] == hub_name), None)
NameError: free variable 'hub_name' referenced before assignment in enclosing scope
2020-12-04 08:15:35,682 Controller polyinterface      DEBUG    HarmonyController:canPoll: discover thread is done...

Address is based on UUID

Currently the address is based on the last 14 characters of the UUID. Is there a better id we can use from the hub json data? If not, we should use the last 14 of the md5 hash?

Race condition on restart of ISY?

2018-03-14 11:13:47,691 INFO     Hub:h78fca0535ae84:Family Room:check_client: Waiting for client startup to complete, status = init..
2018-03-14 11:13:52,698 INFO     Hub:h78fca0535ae84:Family Room:check_client: Waiting for client startup to complete, status = init..
2018-03-14 11:13:57,692 INFO     Hub:h78fca0535ae84:Family Room:check_client: Waiting for client startup to complete, status = init..
2018-03-14 11:14:02,693 INFO     Hub:h78fca0535ae84:Family Room:check_client: Waiting for client startup to complete, status = init..
2018-03-14 11:14:07,692 INFO     Hub:h78fca0535ae84:Family Room:check_client: Waiting for client startup to complete, status = init..
2018-03-14 11:14:12,693 INFO     Hub:h78fca0535ae84:Family Room:check_client: Waiting for client startup to complete, status = init..
2018-03-14 11:14:17,692 INFO     Hub:h78fca0535ae84:Family Room:check_client: Waiting for client startup to complete, status = init..
2018-03-14 11:14:18,716 DEBUG    Hub:h78fca0535ae84:Family Room:query: ...
2018-03-14 11:14:18,717 INFO     Hub:h78fca0535ae84:Family Room:check_client: Waiting for client startup to complete, status = init..
2018-03-14 11:14:18,718 INFO     Updating All Drivers to ISY for Family Room(h78fca0535ae84)
2018-03-14 11:14:19,376 ERROR    Exception in thread Thread-2:
Traceback (most recent call last):
  File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
    self.run()
  File "/usr/lib/python3.5/threading.py", line 862, in run
    self._target(*self._args, **self._kwargs)
  File "/home/pi/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 639, in _parseInput
    self.nodes[input[key]['address']].query()
  File "/home/pi/development/udi-harmony-poly/harmony_hub_nodes/HarmonyActivity.py", line 61, in query
    self._set_st(self.st)

Issue when clicking on Discovery for custom params

I added manually the param since the Harmony Hub doesn't get auto-discover

Key : hub_172165031
{ "name":"HarmonyHub Sous-Sol", "host":"172.16.50.31" }

Once I start the Polyglot Server and click Discover the Polyglot crash here the stack trace :

2018-1-20 22:49:26 - info: HarmonyHub(7): harmonyctrl GV7 set sucessfully to 2
2018-1-20 22:49:36 - error: NSChild: HarmonyHub STDERR: Exception in thread Thread-2:
Traceback (most recent call last):
File "/usr/lib/python3.5/threading.py", line 914, in _bootstrap_inner
self.run()
File "/usr/lib/python3.5/threading.py", line 862, in run
self._target(*self._args, **self._kwargs)
File "/root/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 542, in _parseInput
self.nodes[input[key]['address']].runCmd(input[key])
File "/root/.local/lib/python3.5/site-packages/polyinterface/polyinterface.py", line 450, in runCmd
fun(self, command)
File "/root/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 351, in _cmd_discover
self.discover()
File "/root/.polyglot/nodeservers/HarmonyHub/harmony_hub_nodes/HarmonyController.py", line 208, in discover
if addIt:
NameError: name 'addIt' is not defined

Connecting Harmony Companion Remote buttons with ISY Insteon devices

I have many insteon devices that I have setup with ISY and have an ISY homekit homebridge plugin to expose them all to homekit successfully. I also have Harmony Hubs with the newer companion remote. Those remotes include 2 light switch buttons and 2 outlet switch buttons and dimmer toggle. I'd like to have those control certain insteon lights. While the Insteon Hub natively integrates with Insteon that hub is a dud, so trying to find a solution with ISY. May be a dumb question but is that what this plugin does? Connects ISY and Harmony, so that when I'm in the Harmony app and setting up the remote buttons and search for IP devices it will detect the Isy hub and allow me to assign buttons to certain lights/outlets and allow the dimmer toggle to work? Or is this plugin meant for something else?

Client fails and is not restarted

From post: https://forum.universal-devices.com/topic/42520-client-was-stopped-error/

2023-12-04 03:02:29,708 read_thread sleekxmpp.xmlstream.xmlstream ERROR    xmlstream:_process: Error reading from XML stream.
2023-12-04 03:02:47,204 Command    sleekxmpp.xmlstream.handler.waiter WARNING  waiter:wait: Timed out waiting for IqWait_d0d0f51b-e409-4549-a109-816ac91d8f77-11
2023-12-04 03:02:47,205 Command    pyharmony.client   INFO     client:get_current_activity: XMPP timeout, reattempting
2023-12-04 03:03:17,209 Command    sleekxmpp.xmlstream.handler.waiter WARNING  waiter:wait: Timed out waiting for IqWait_d0d0f51b-e409-4549-a109-816ac91d8f77-11
2023-12-04 03:03:17,209 Command    udi_interface      ERROR    udi_interface:write: --- Logging error ---
2023-12-04 03:03:17,212 Command    udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2023-12-04 03:03:17,212 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/pyharmony/pyharmony/client.py", line 78, in get_current_activity
    result = iq_cmd.send(block=True)
2023-12-04 03:03:17,212 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/.local/lib/python3.9/site-packages/sleekxmpp/stanza/iq.py", line 233, in send
    raise IqTimeout(self)
2023-12-04 03:03:17,212 Command    udi_interface      ERROR    udi_interface:write: sleekxmpp.exceptions.IqTimeout: <iq id="d0d0f51b-e409-4549-a109-816ac91d8f77-11" type="get"><oa xmlns="connect.logitech.com" mime="vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity" /></iq>
2023-12-04 03:03:17,212 Command    udi_interface      ERROR    udi_interface:write: During handling of the above exception, another exception occurred:
2023-12-04 03:03:17,213 Command    udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2023-12-04 03:03:17,213 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/nodes/Hub.py", line 252, in _get_current_activity
    ca = self.client.get_current_activity()
2023-12-04 03:03:17,213 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/pyharmony/pyharmony/client.py", line 81, in get_current_activity
    result = iq_cmd.send(block=True)
2023-12-04 03:03:17,213 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/.local/lib/python3.9/site-packages/sleekxmpp/stanza/iq.py", line 233, in send
    raise IqTimeout(self)
2023-12-04 03:03:17,213 Command    udi_interface      ERROR    udi_interface:write: sleekxmpp.exceptions.IqTimeout: <iq id="d0d0f51b-e409-4549-a109-816ac91d8f77-11" type="get"><oa xmlns="connect.logitech.com" mime="vnd.logitech.harmony/vnd.logitech.harmony.engine?getCurrentActivity" /></iq>
2023-12-04 03:03:17,213 Command    udi_interface      ERROR    udi_interface:write: During handling of the above exception, another exception occurred:
2023-12-04 03:03:17,213 Command    udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2023-12-04 03:03:17,213 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit
    msg = self.format(record)
2023-12-04 03:03:17,214 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format
    return fmt.format(record)
2023-12-04 03:03:17,214 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format
    record.message = record.getMessage()
2023-12-04 03:03:17,214 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage
    msg = msg % self.args
2023-12-04 03:03:17,214 Command    udi_interface      ERROR    udi_interface:write: TypeError: not all arguments converted during string formatting
2023-12-04 03:03:17,214 Command    udi_interface      ERROR    udi_interface:write: Call stack:
2023-12-04 03:03:17,216 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
2023-12-04 03:03:17,216 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
2023-12-04 03:03:17,216 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
2023-12-04 03:03:17,216 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 859, in _parseInput
    self._handleInput(key, input[key], None)
2023-12-04 03:03:17,216 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 1007, in _handleInput
    self.nodes_internal[item['address']].query()
2023-12-04 03:03:17,217 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/nodes/Controller.py", line 210, in query
    self.poly.getNode(node).query()
2023-12-04 03:03:17,217 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/nodes/Hub.py", line 94, in query
    self._get_current_activity()
2023-12-04 03:03:17,217 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/nodes/Hub.py", line 254, in _get_current_activity
    LOGGER.error('client.get_current_activity timeout',False)
2023-12-04 03:03:17,217 Command    udi_interface      ERROR    udi_interface:write: Message: 'client.get_current_activity timeout'
Arguments: (False,)
2023-12-04 03:03:17,217 Command    udi_interface      INFO     Hub:_set_st: setDriver(ST,0)
2023-12-04 03:03:17,264 MQTT       udi_interface.interface INFO     interface:_message: Successfully set h9bfc75ec675d0 :: ST to 0 UOM 2
2023-12-04 03:03:17,730 Command    udi_interface.node INFO     node:reportDrivers: Updating All Drivers to ISY for Living Room(h9bfc75ec675d0)
2023-12-04 03:03:17,731 Command    udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:03:17,731 Command    udi_interface      INFO     Hub:_set_st: setDriver(ST,1)
2023-12-04 03:03:17,731 Command    udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:03:17,731 Command    udi_interface      ERROR    udi_interface:write: --- Logging error ---
2023-12-04 03:03:17,731 Command    udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2023-12-04 03:03:17,732 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/nodes/Hub.py", line 252, in _get_current_activity
    ca = self.client.get_current_activity()
2023-12-04 03:03:17,732 Command    udi_interface      ERROR    udi_interface:write: AttributeError: 'NoneType' object has no attribute 'get_current_activity'
2023-12-04 03:03:17,732 Command    udi_interface      ERROR    udi_interface:write: During handling of the above exception, another exception occurred:
2023-12-04 03:03:17,732 Command    udi_interface      ERROR    udi_interface:write: Traceback (most recent call last):
2023-12-04 03:03:17,732 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/logging/__init__.py", line 1083, in emit
    msg = self.format(record)
2023-12-04 03:03:17,732 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/logging/__init__.py", line 927, in format
    return fmt.format(record)
2023-12-04 03:03:17,732 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/logging/__init__.py", line 663, in format
    record.message = record.getMessage()
2023-12-04 03:03:17,733 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/logging/__init__.py", line 367, in getMessage
    msg = msg % self.args
2023-12-04 03:03:17,733 Command    udi_interface      ERROR    udi_interface:write: TypeError: not all arguments converted during string formatting
2023-12-04 03:03:17,733 Command    udi_interface      ERROR    udi_interface:write: Call stack:
2023-12-04 03:03:17,733 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 937, in _bootstrap
    self._bootstrap_inner()
2023-12-04 03:03:17,733 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 980, in _bootstrap_inner
    self.run()
2023-12-04 03:03:17,733 Command    udi_interface      ERROR    udi_interface:write: File "/usr/local/lib/python3.9/threading.py", line 917, in run
    self._target(*self._args, **self._kwargs)
2023-12-04 03:03:17,733 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 859, in _parseInput
    self._handleInput(key, input[key], None)
2023-12-04 03:03:17,734 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/.local/lib/python3.9/site-packages/udi_interface/interface.py", line 1007, in _handleInput
    self.nodes_internal[item['address']].query()
2023-12-04 03:03:17,734 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/nodes/Hub.py", line 94, in query
    self._get_current_activity()
2023-12-04 03:03:17,734 Command    udi_interface      ERROR    udi_interface:write: File "/var/polyglot/pg3/ns/0021b9026524_14/nodes/Hub.py", line 258, in _get_current_activity
    LOGGER.error('client.get_current_activity failed',True)
2023-12-04 03:03:17,734 Command    udi_interface      ERROR    udi_interface:write: Message: 'client.get_current_activity failed'
Arguments: (True,)
2023-12-04 03:04:21,912 Thread-1049 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:04:21,913 Thread-1049 udi_interface      INFO     Hub:_set_st: setDriver(ST,1)
2023-12-04 03:04:21,913 Thread-1049 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 03:09:21,913 Thread-1055 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:09:21,913 Thread-1055 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 03:14:21,919 Thread-1061 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:14:21,919 Thread-1061 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 03:19:21,935 Thread-1067 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:19:21,935 Thread-1067 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 03:24:21,936 Thread-1073 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:24:21,936 Thread-1073 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 03:29:21,941 Thread-1079 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:29:21,941 Thread-1079 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 03:34:21,942 Thread-1085 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:34:21,942 Thread-1085 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 03:39:21,946 Thread-1091 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:39:21,946 Thread-1091 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 03:44:21,955 Thread-1097 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:44:21,955 Thread-1097 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 03:49:21,956 Thread-1103 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:49:21,956 Thread-1103 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 03:54:21,957 Thread-1109 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:54:21,957 Thread-1109 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 03:59:21,960 Thread-1115 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 03:59:21,961 Thread-1115 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 04:04:21,967 Thread-1121 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:04:21,968 Thread-1121 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 04:09:21,969 Thread-1127 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:09:21,970 Thread-1127 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 04:14:21,970 Thread-1133 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:14:21,971 Thread-1133 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 04:19:21,981 Thread-1139 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:19:21,981 Thread-1139 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 04:24:21,983 Thread-1145 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:24:21,983 Thread-1145 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 04:29:21,992 Thread-1151 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:29:21,992 Thread-1151 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 04:34:22,001 Thread-1157 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:34:22,001 Thread-1157 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 04:39:22,017 Thread-1163 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:39:22,018 Thread-1163 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 04:44:22,024 Thread-1169 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:44:22,024 Thread-1169 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 04:49:22,031 Thread-1175 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:49:22,032 Thread-1175 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 04:54:22,033 Thread-1181 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:54:22,033 Thread-1181 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 04:59:22,035 Thread-1187 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 04:59:22,036 Thread-1187 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 05:04:22,044 Thread-1193 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 05:04:22,044 Thread-1193 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 05:09:22,061 Thread-1199 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 05:09:22,062 Thread-1199 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 05:14:22,066 Thread-1205 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 05:14:22,066 Thread-1205 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 05:18:29,475 Command    udi_interface      ERROR    Hub:start_activity: No Client
2023-12-04 05:19:22,076 Thread-1211 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 05:19:22,076 Thread-1211 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 05:20:23,055 Command    udi_interface      ERROR    Hub:start_activity: No Client
2023-12-04 05:24:22,078 Thread-1217 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 05:24:22,078 Thread-1217 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 05:29:22,081 Thread-1223 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 05:29:22,081 Thread-1223 udi_interface      INFO     Controller:heartbeat: hb=0
2023-12-04 05:34:22,096 Thread-1229 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 05:34:22,096 Thread-1229 udi_interface      INFO     Controller:heartbeat: hb=1
2023-12-04 05:39:22,104 Thread-1235 udi_interface      INFO     Hub:check_client: Client was stopped. clientNone
2023-12-04 05:39:22,105 Thread-1235 udi_interface      INFO     Controller:heartbeat: hb=0

It just continues to repeat the 'client was stopped' message until I eventually notice and restart the nodeserver.

Update to latest PyISY

The latest version has better support for dimmable devices. Will need to verify this works for the KPL button issue we previously saw.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.