Closed thebino closed 3 years ago
Just tried with a fresh babybuddy and home assistant development environment and didn't get this. Will you post the relevant portion of your config.yml also?
I tried, with/without port
sensor:
- platform: babybuddy
address: 172.17.3.1
api_key: !secret babybuddy_api_key
Ah, I think I have reproduced the issue.
Did you configure Baby Buddy ALLOWED_HOSTS to be accessible to your Home Assistant host?
yes, the ALLOWED_HOST is set correctly. It cannot connect, since the instance does not provide a ssl certificate
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.8/site-packages/requests/adapters.py", line 439, in send
resp = conn.urlopen(
File "/usr/local/lib/python3.8/site-packages/urllib3/connectionpool.py", line 755, in urlopen
retries = retries.increment(
File "/usr/local/lib/python3.8/site-packages/urllib3/util/retry.py", line 573, in increment
raise MaxRetryError(_pool, url, error or ResponseError(cause))
urllib3.exceptions.MaxRetryError: HTTPSConnectionPool(host='172.17.3.1', port=7000): Max retries exceeded with url: /api/children/ (Caused by SSLError(SSLEOFError(8, 'EOF occurred in violation of protocol (_ssl.c:1125)')))
Yup, you need to use an HTTPS address currently. I may implement fallback to HTTP in conjunction with PR #2 to issue a warning.
Right after installation of babybuddy and the sensor via hacs, this error showed up. Perhaps it has something to do with the new installation of babybuddy and an empty database after installation.