@peterl I’ve read through all the documentation now (got excited and skipped bits!) and I think I’ve now got my head around it all. Thank you for the comprehensive docs.
Probably not an IP ban then, just a coincidence with the timing.
I’ve had a bash at the MQTT broker in HA, and it reports it’s now listening on 8883. Not sure if the certificates are in the correct place but I’ll cross that bridge when I come to it.
So, I have made the host change on the router, and everything on my network reports that hub.api.surehub.io is now 10.10.30.152, which is the correct ip for the docker container.
I cleared out all the created config files in the docker and ran setup afresh. The setup reports the url is correctly routed to the IP address, successfully connects, downloads the config and creates the pethubconfig.json. So far, so good.
I can restart the docker and watch the logs as it starts the server and creates the home assistant MQTT entries.
It then seems to encounter an error and stops:
ERROR:asyncio:Task exception was never retrieved
future: <Task finished name='Task-2' coro=<mqtt_start() done, defined at /usr/local/lib/python3.9/site-packages/pethublocal/frontend.py:187> exception=AttributeError("'str' object has no attribute 'Bowl_Target'")>
Traceback (most recent call last):
File "/usr/local/lib/python3.9/site-packages/pethublocal/frontend.py", line 218, in mqtt_start
ha_init_state = ha_update_state(app['pethubconfig'])
File "/usr/local/lib/python3.9/site-packages/pethublocal/functions.py", line 857, in ha_update_state
'Target': str(device.Bowl_Target[0]),
AttributeError: 'str' object has no attribute 'Bowl_Target'
After that It just sits there. I’m assuming this isn’t a fatal error because if I browse to the IP address of the server I can see the UI, and I can see the http requests in the logs.
I have tried rebooting the hub to get it to attempt to connect to pethublocal. Unfortunately can’t seem to manage it and I get this over serial:
Socket Timed Out !
Closing Socket
| Talking to: hub.api.surehub.io | Socket Obtained | Socket Opened | ERROR: wolfSSL_connect failed! Error: -188
Socket Opened | ERROR: wolfSSL_connect failed! Error: -373
Socket Opened | Closing Socket
Followed by loads of
Timeout in webState 1
and finally
### AWS Timed Out, at 37500013 seconds. ###
Followed by a stack dump and the watchdog rebooting the hub. Repeat ad infinitum.
I appears from google that it’s not happy with the certificate: -188 = “ASN sig error, no CA signer to verify certificate”
Any ideas? Am I missing something?
There’s not further activity in the server log while all that is going on, but it’s still logging http request so it’s not dead.
Thanks again for your help, and sorry for the wall of text!