benknight / hue-alfred-workflow

An Alfred workflow for controlling Philips Hue lights.
367 stars 34 forks source link

not possible to set hub ip manually anymore #48

Closed njm2112 closed 3 years ago

njm2112 commented 4 years ago

after stupidly setting up my hub in a location that is out of reach, the ability to manually set the hub's ip in this workflow is needed...

unfortunately, using the hub [ip-address] command does not seem to work:

[12:41:55.021] Philips Hue Controller[Script Filter] {"items": [{"arg": "set_bridge:[ip-address]", "valid": true, "subtitle": "Press the button on the bridge then press enter to enable the workflow. Optionally specify the bridge's IP.", "icon": {"path": "icons/bridge.png"}, "title": "Link with Hue bridge"}]}
[12:41:59.960] Philips Hue Controller[Script Filter] Processing complete
[12:41:59.994] Philips Hue Controller[Script Filter] Passing output 'set_bridge:[ip-address]' to Junction
[12:41:59.997] Philips Hue Controller[Junction] Processing complete
[12:42:00.005] Philips Hue Controller[Junction] Passing output 'set_bridge:[ip-address]' to Filter
[12:42:00.009] Philips Hue Controller[Junction] Passing output 'set_bridge:[ip-address]' to Filter
[12:42:00.012] Philips Hue Controller[Filter] Processing complete
[12:42:00.014] Philips Hue Controller[Filter] Passing output 'set_bridge:[ip-address]' to Run Script
[12:42:00.410] STDERR: Philips Hue Controller[Run Script] .
12:42:00 workflow.py:2061 DEBUG    ---------- Philips Hue Controller (3.0.0) ----------
12:42:00 connectionpool.py:202 INFO     Starting new HTTP connection (1): [ip-address]
12:42:00 connectionpool.py:296 DEBUG    "POST /api HTTP/1.1" 200 None
12:42:00 workflow.py:1468 DEBUG    reading settings from /Users/nm/Library/Application Support/Alfred/Workflow Data/hue-alfred-workflow/settings.json
12:42:00 workflow.py:2254 DEBUG    set last run version: 3.0.0
12:42:00 workflow.py:2103 DEBUG    ---------- finished in 0.052s ----------
[12:42:00.452] Philips Hue Controller[Run Script] Processing complete
[12:42:00.455] Philips Hue Controller[Run Script] Passing output 'Setup Error: link button not pressed
' to Post Notification
[12:42:00.458] Philips Hue Controller[Run Script] Passing output 'Setup Error: link button not pressed
' to Write Text File
benknight commented 4 years ago

@njm2112 sorry for the delayed response.

This might be a stupid question, but did you happen to press the bridge button before you set the bridge's IP address. Strictly going by the log you included that seems to be the issue.

benknight commented 4 years ago

@njm2112 by the way I just updated the workflow to a new version v3.0.2. Can you update see if that fixes? I recommend clearing out your settings via hue workflow:reset

samkasman commented 4 years ago

I had the same issue, doing a hue workflow:reset and then letting it update fixed it.

jakelfreeman commented 4 years ago

I am having the same issue. Have tried running workflow:reset and workflow:update, completely uninstalling workflow and reinstalling (including all Application Support files) and explicitly specifying IP address in the linking process. I've always pressed the button prior to trying to link. Any ideas?

benknight commented 3 years ago

Closing for now. If bug reappears will investigate further.