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
Hi,
I'm getting a socket timeout error when trying to get the state of my LB110 through python. When using "pyhs100 discover" on the command line I'm able to see and get info from the LB110 but not through python.
Traceback (most recent call last):
File "d:/Documents/Coding/Python/PyLight/main.py", line 9, in
print("Current bulb state: " + bulb.state)
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 238, in state
light_state = self.get_light_state()
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 116, in get_light_state
"get_light_state")
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 64, in _query_helper
request={target: {cmd: arg}}
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\protocol.py", line 44, in query
sock.connect((host, port))
socket.timeout: timed out
D:\Documents\Coding\Python\PyLight>python d:/Documents/Coding/Python/PyLight/main.py
Traceback (most recent call last):
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\pyHS100.py", line 62, in _query_helper
request={target: {cmd: arg}}
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\protocol.py", line 44, in query
sock.connect((host, port))
socket.timeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "d:/Documents/Coding/Python/PyLight/main.py", line 9, in
print("Current bulb state: " + bulb.state)
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 238, in state
light_state = self.get_light_state()
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 116, in get_light_state
"get_light_state")
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\pyHS100.py", line 65, in _query_helper
raise SmartDeviceException('Communication error') from ex
pyHS100.types.SmartDeviceException: Communication error
The text was updated successfully, but these errors were encountered:
Hi,
I'm getting a socket timeout error when trying to get the state of my LB110 through python. When using "pyhs100 discover" on the command line I'm able to see and get info from the LB110 but not through python.
Traceback (most recent call last):
File "d:/Documents/Coding/Python/PyLight/main.py", line 9, in
print("Current bulb state: " + bulb.state)
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 238, in state
light_state = self.get_light_state()
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 116, in get_light_state
"get_light_state")
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 64, in _query_helper
request={target: {cmd: arg}}
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\protocol.py", line 44, in query
sock.connect((host, port))
socket.timeout: timed out
D:\Documents\Coding\Python\PyLight>python d:/Documents/Coding/Python/PyLight/main.py
Traceback (most recent call last):
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\pyHS100.py", line 62, in _query_helper
request={target: {cmd: arg}}
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\protocol.py", line 44, in query
sock.connect((host, port))
socket.timeout: timed out
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "d:/Documents/Coding/Python/PyLight/main.py", line 9, in
print("Current bulb state: " + bulb.state)
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 238, in state
light_state = self.get_light_state()
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\smartbulb.py", line 116, in get_light_state
"get_light_state")
File "C:\Users\jonvt\AppData\Local\Programs\Python\Python35\lib\site-packages\pyhs100-0.2.4.2-py3.5.egg\pyHS100\pyHS100.py", line 65, in _query_helper
raise SmartDeviceException('Communication error') from ex
pyHS100.types.SmartDeviceException: Communication error
The text was updated successfully, but these errors were encountered: