itchannel / apex-ha

Local Neptune Apex HA Integration (Aquarium Controller)
GNU General Public License v3.0
19 stars 3 forks source link

Integration seems to cause the Neptune to lock the local interface #30

Open brettonw opened 1 year ago

brettonw commented 1 year ago

I've run into this a few times - the regular logins from the integration seem to make the apex.local web interface refuse to acknowledge a login from a browser. The username and password are correct. And it will usually work again after a little while. It continues to be accessible from the cloud interface.

Screen Shot 2022-09-13 at 11 28 29 AM
brettonw commented 1 year ago

The auth code tries to login 3 times real fast - should there be any kind of sleep in that loop?

brettonw commented 1 year ago

One observation is that the status info seems to be available without auth:

http://apex.local/cgi-bin/status.json

it's just the inputs and outputs, though...

brettonw commented 1 year ago

I won't belabor the point here. I rewrote a bunch of the apex.py class to use the cached config and status rather than re-fetch and haven't had this problem any more. If you want to look at my changes, check the 'main' branch of my fork: https://github.com/brettonw/apex-ha

I don't suggest you try to take the changes entirely since I removed the old system support.