jcgoette / baby_buddy_homeassistant

This custom integration provides sensors for Baby Buddy API endpoints.
MIT License
59 stars 26 forks source link

Failed to connect using HomeAssistant Addon + NabuCasa #140

Closed rdariolemes closed 8 months ago

rdariolemes commented 9 months ago

Hello Team,

I have installed Baby Buddy as a HomeAssistant Addon and configured it as follows.

image

I'm able to login to Baby Buddy addon on the left pane but having lots of issues when trying to set up integration. I keep getting failed to connect no matter what configuration i do.

image

I read all the issues on this repo and tried all the proposed solutions but nothing works. Any assistance would be highly appreciated.

jcgoette commented 9 months ago

I don't know much about this and you'll probably have better luck posting in one of the bigger old issues.

But, right off the bat, you have the add-on exposing port 8888 and the integration setup with port 8000.

rdariolemes commented 9 months ago

When i get the error it defaults to port 8000. I'm configuring port 8888 before i submitting the form

jcgoette commented 9 months ago

Are you using Nabu Casa?

rdariolemes commented 9 months ago

@jcgoette , yes sir.

jcgoette commented 9 months ago

See this?

https://github.com/jcgoette/baby_buddy_homeassistant/issues/130#issuecomment-1709401296

rdariolemes commented 9 months ago

See this?

#130 (comment)

Tried this already and no luck!!!

jcgoette commented 9 months ago

I really need to create an issue template to help myself remember – any relevant logs?

rdariolemes commented 9 months ago

I really need to create an issue template to help myself remember – any relevant logs?

see below

graceful_timeout: 30 keepalive: 2 limit_request_line: 4094 limit_request_fields: 100 limit_request_field_size: 8190 reload: False reload_engine: auto reload_extra_files: [] spew: False check_config: False print_config: False preload_app: False sendfile: None reuse_port: False chdir: /app/babybuddy daemon: False raw_env: [] pidfile: None worker_tmp_dir: /dev/shm user: 0 group: 0 umask: 0 initgroups: False tmp_upload_dir: None secure_scheme_headers: {'X-FORWARDED-PROTOCOL': 'ssl', 'X-FORWARDED-PROTO': 'https', 'X-FORWARDED-SSL': 'on'} forwarded_allow_ips: ['127.0.0.1'] accesslog: None disable_redirect_access_to_syslog: False access_log_format: %(h)s %(l)s %(u)s %(t)s "%(r)s" %(s)s %(b)s "%(f)s" "%(a)s" errorlog: - loglevel: debug capture_output: False logger_class: gunicorn.glogging.Logger logconfig: None logconfig_dict: {} logconfig_json: None syslog_addr: udp://localhost:514 syslog: False syslog_prefix: None syslog_facility: user enable_stdio_inheritance: False statsd_host: None dogstatsd_tags: statsd_prefix: proc_name: None default_proc_name: babybuddy.wsgi pythonpath: None paste: None on_starting: <function OnStarting.on_starting at 0x7fdd2abcb600> on_reload: <function OnReload.on_reload at 0x7fdd2abcb740> when_ready: <function WhenReady.when_ready at 0x7fdd2abcb880> pre_fork: <function Prefork.pre_fork at 0x7fdd2abcb9c0> post_fork: <function Postfork.post_fork at 0x7fdd2abcbb00> post_worker_init: <function PostWorkerInit.post_worker_init at 0x7fdd2abcbc40> worker_int: <function WorkerInt.worker_int at 0x7fdd2abcbd80> worker_abort: <function WorkerAbort.worker_abort at 0x7fdd2abcbec0> pre_exec: <function PreExec.pre_exec at 0x7fdd2abe8040> pre_request: <function PreRequest.pre_request at 0x7fdd2abe8180> post_request: <function PostRequest.post_request at 0x7fdd2abe8220> child_exit: <function ChildExit.child_exit at 0x7fdd2abe8360> worker_exit: <function WorkerExit.worker_exit at 0x7fdd2abe84a0> nworkers_changed: <function NumWorkersChanged.nworkers_changed at 0x7fdd2abe85e0> on_exit: <function OnExit.on_exit at 0x7fdd2abe8720> ssl_context: <function NewSSLContext.ssl_context at 0x7fdd2abe8900> proxy_protocol: False proxy_allow_ips: ['127.0.0.1'] keyfile: None certfile: None ssl_version: 2 cert_reqs: 0 ca_certs: None suppress_ragged_eofs: True do_handshake_on_connect: False ciphers: None raw_paste_global_conf: [] strip_header_spaces: False [2023-10-01 20:42:10 -0400] [206] [INFO] Starting gunicorn 21.2.0 [2023-10-01 20:42:10 -0400] [206] [DEBUG] Arbiter booted [2023-10-01 20:42:10 -0400] [206] [INFO] Listening at: http://0.0.0.0:8000 (206) [2023-10-01 20:42:10 -0400] [206] [INFO] Using worker: gthread [2023-10-01 20:42:10 -0400] [245] [INFO] Booting worker with pid: 245 [2023-10-01 20:42:10 -0400] [246] [INFO] Booting worker with pid: 246 [2023-10-01 20:42:10 -0400] [206] [DEBUG] 2 workers [20:42:11] INFO: Starting NGINX... [2023-10-02 00:42:11 +0000] [245] [DEBUG] Ignored premature client disconnection. No more data after: b'\n' [2023-10-02 00:45:52 +0000] [245] [DEBUG] GET / [2023-10-02 00:45:52 +0000] [245] [DEBUG] Closing connection. [2023-10-02 00:45:53 +0000] [246] [DEBUG] GET /login/ [2023-10-02 00:45:53 +0000] [246] [DEBUG] Closing connection. [2023-10-02 00:45:56 +0000] [245] [DEBUG] POST /login/ [2023-10-02 00:45:57 +0000] [245] [DEBUG] Closing connection. [2023-10-02 00:45:57 +0000] [245] [DEBUG] GET / [2023-10-02 00:45:58 +0000] [245] [DEBUG] Closing connection. [2023-10-02 00:45:58 +0000] [246] [DEBUG] GET /dashboard/ [2023-10-02 00:45:58 +0000] [246] [DEBUG] Closing connection. [2023-10-02 00:45:58 +0000] [245] [DEBUG] GET /children/german-lemes-cordero/dashboard/ [2023-10-02 00:45:58 +0000] [245] [DEBUG] Closing connection. [2023-10-02 00:46:02 +0000] [246] [DEBUG] GET /user/settings/ [2023-10-02 00:46:02 +0000] [246] [DEBUG] Closing connection. [2023-10-02 00:46:34 +0000] [246] [DEBUG] Ignored premature client disconnection. No more data after: b'\x16\x03\x01\x02\x00\x01\x00\x01\xfc\x03\x03\xc6u\xbb\x1c53\xfe\xbdt\x13ER\x16\x9aBc4\x1f9eK;\x89\xbeJ\xec\x898\x91vr\x10 \xce\x86Y8\xaa?\x12\xe8\xcdgww\x90\x05\xc8\x03\x00f\x04\xde\xd5K\x96\xfb\xbd\x14\xa6\x03\xa3\x06]F\x00$\x13\x02\x13\x03\x13\x01\xc0,\xc00\xc0+\xc0/\xcc\xa9\xcc\xa8\xc0$\xc0(\xc0#\xc0\'\x00\x9f\x00\x9e\x00k\x00g\x00\xff\x01\x00\x01\x8f\x00\x0b\x00\x04\x03\x00\x01\x02\x00\n\x00\x16\x00\x14\x00\x1d\x00\x17\x00\x1e\x00\x19\x00\x18\x01\x00\x01\x01\x01\x02\x01\x03\x01\x04\x00#\x00\x00\x00\x16\x00\x00\x00\x17\x00\x00\x00\r\x00*\x00(\x04\x03\x05\x03\x06\x03\x08\x07\x08\x08\x08\t\x08\n\x08\x0b\x08\x04\x08\x05\x08\x06\x04\x01\x05\x01\x06\x01\x03\x03\x03\x01\x03\x02\x04\x02\x05\x02\x06\x02\x00+\x00\x05\x04\x03\x04\x03\x03\x00-\x00\x02\x01\x01\x003\x00&\x00$\x00\x1d\x00 \x1bZ\x7f\x02\x11a\x8a\xda?\xd1\xc8\xd1;\x92\x01\xf8\x1cU\x87\x95\xdcC\x86\x05G"\xe71\'PGK\x00\x15\x00\xf6\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00'

jcgoette commented 9 months ago

Have you been able to access the BB add-on via the web UI? If not, this is an issue for that repo, not this one.

rdariolemes commented 9 months ago

I can login to the add-on without any issues

jcgoette commented 9 months ago

Then I need logs from the integration, not the addon.

rdariolemes commented 9 months ago

Then I need logs from the integration, not the addon.

how can i gather those for u?

jcgoette commented 9 months ago

Set the BB integration log levels to DEBUG, reload HA, try to setup the integration again, and post any logs from BB integration.