studioimaginaire / phue

A Python library for the Philips Hue system
Other
1.52k stars 267 forks source link

Recommended way in dealing with resets? #178

Open KaiRoehr opened 3 years ago

KaiRoehr commented 3 years ago

Hi there,

very frequently my Hue Bridge seems to reset. Sometimes it is due to power loss, sometimes I don't know. After that, the username stored in the .python_hue is not longer valid and I have to reregister. I can deal with a changing IP address, but this is causing me a real headache.

Is there a way to prevent this? What is the recommended way of dealing with resets? In my case this is particularly annoying, since I am running my program as a scheduled task during startup and shutdown of the computer, which seems to use a different registration file (that I've yet to find) or something. So in order for this to work, I have to time the push of the button correctly with the startup of my machine.

Any ideas? Thank you very much.

natcl commented 3 years ago

Hmm I surprised to hear that the bridge loses it’s setting when it’s being reset, this is not normal at all, these values should persist. Is there anything specific happening during reset that could explain this ? My bridge survived several outages and a couple of moves also...

-- lecaude.com studioimaginaire.com

On Dec 17, 2020 at 6:26:20 AM, Kairo89 notifications@github.com wrote:

Hi there,

very frequently my Hue Bridge seems to reset. Sometimes it is due to power loss, sometimes I don't know. After that, the username stored in the .python_hue is not longer valid and I have to reregister. I can deal with a changing IP address, but this is causing me a real headache.

Is there a way to prevent this? What is the recommended way of dealing with resets? In my case this is particularly annoying, since I am running my program as a scheduled task during startup and shutdown of the computer, which seems to use a different registration file (that I've yet to find). So in order for this to work, I have to time the push of the button correctly with the startup of my machine.

Any ideas? Thank you very much.

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/studioimaginaire/phue/issues/178, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAS55H2BVBMI7HL2K7CB6TSVHTFZANCNFSM4U7PYEPA .

KaiRoehr commented 3 years ago

The lamps I have connected don't seem to lose their registration. Only the python script seems to stop working.

natcl commented 3 years ago

And the python_hue file is still there ?

KaiRoehr commented 3 years ago

The file is still there. What I don't understand is why it makes a difference if I run the script regularly vs running the script as a scheduled task. Running the script regularly doesn't cause any issues.