toverainc / willow

Open source, local, and self-hosted Amazon Echo/Google Home competitive Voice Assistant alternative
https://heywillow.io/
Apache License 2.0
2.61k stars 96 forks source link

server URL must not start with https:// #129

Closed Chrusciki closed 1 year ago

Chrusciki commented 1 year ago

another minor improvement

after fixing my wifi password issue, i am now seeing this, which is obvious what is wrong. E (19:00:04.789) HTTP_CLIENT: Error parse url http://http://192.168.1.222:8123/api/components

We could add a parsing check to see if we have already prepended the http:// or https://

kristiankielhofner commented 1 year ago

We use the host and port only because we actually support HTTP, HTTPS, WS, and WSS to Home Assistant. On boot we detect if your configured HA install supports assist pipeline and if it does, we use WS or WSS depending on whether you have TLS enabled. If it doesn't support assist pipeline we fall back to the legacy Conversation API with TLS or not depending on if enabled.

This is why the configuration options are called "Home Assistant host" and "Home Assistant port".