Salamafet / ophom

Octoprint Philips Hue Outlet Manager
7 stars 1 forks source link

New install is unable to find bridge #34

Closed James-Coyne closed 3 years ago

James-Coyne commented 3 years ago

I've installed the plugin to my octoprint instance running on a Pi 4 and it won't find my bridge. All other apps on my network are able to detect the bridge and connect to it. Is there a way to manually enter the IP of the bridge, or some way of determining why it can't find it?

image image

Salamafet commented 3 years ago

When you try to add your bridge, Ophom start to reach this address https://discovery.meethue.com/ Normally there should be no problem if your bridge as the same WAN IP address as your raspberry.

Do you have some errors in your browser console ?

If you want to manually enter the address IP you need to edit the config.yaml file of Octoprint. Default file location: ~/.octoprint/config.yaml

Here is a part of my config file:

plugins:
    ophom:
        auto_connect: true
        auto_connect_time: '10'
        hue_ip: 192.168.1.5
        hue_token: -wPLFs**********************VwCaom-i
        light_id: '1'

If you enter only the IP address of your bridge, Ophom ask you for the pairing.

James-Coyne commented 3 years ago

Thanks for the reply! Manually adding the IP didn't work, but I was able to work around this by explicitly allowing that site through my network.

When I added that line to my configuration ophom showed no changes in behavior and still wouldn't detect the bridge nor ask me to authorize it. Maybe the ability to manually set an IP could be added to the configuration UI?

Salamafet commented 3 years ago

Good news.

I have omitted one point. When you're editing the config file, octoprint services must be down. Manually enter IP of bridge and authorization token is in my todo.