timmo001/home-assistant-assist-desktop

Initial setup stuck on settings

rlust opened this issue · 6 comments

rlust commented

When I start the application on my Mac it hangs on the config screen. I enter URL and token, but when I click save nothing happens.

Gi60s commented

I'm also seeing this behavior on Windows 11 using version 1.1.2.

I'm also seeing this behavior on Windows 11 using version 1.1.2.

Can you add your logs from %appdata%\dev.timmo.home-assistant-assist-desktop\logs

I'm not sure how to find the logs on a mac. They can also be opened via the system tray menu:

image

Seeing the same behavior on Win 11. Here are my logs, if it helps:

[2024-01-03][10:20:56][INFO][webview::unknown] Loaded settings: {"settings":{"autostart":false,"home_assistant":{"access_token":"","host":"homeassistant.local","port":8123,"ssl":false}}}
[2024-01-03][10:20:56][INFO][webview::unknown] Attached console
[2024-01-03][10:20:56][INFO][webview::unknown] Opened settings
[2024-01-03][10:20:56][INFO][webview::unknown] Loaded settings: {"settings":{"autostart":false,"home_assistant":{"access_token":"","host":"homeassistant.local","port":8123,"ssl":false}}}
[2024-01-03][10:20:56][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://homeassistant.local:8123"}
[2024-01-03][10:20:56][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:20:56][INFO][webview::unknown] Attached console
[2024-01-03][10:20:59][WARN][wry::webview::webview2::file_drop] Error occurred while processing dropped/hovered item: item is not a file.
[2024-01-03][10:21:34][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://192.168.1.100:8123"}
[2024-01-03][10:21:34][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:23:57][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://192.168.1.100:8123"}
[2024-01-03][10:23:57][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:24:00][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://192.168.1.200:8123"}
[2024-01-03][10:24:00][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:24:40][INFO][webview::unknown] Loaded settings: {"settings":{"autostart":false,"home_assistant":{"access_token":"","host":"homeassistant.local","port":8123,"ssl":false}}}
[2024-01-03][10:24:40][INFO][webview::unknown] Attached console
[2024-01-03][10:24:40][INFO][webview::unknown] Opened settings
[2024-01-03][10:24:40][INFO][webview::unknown] Loaded settings: {"settings":{"autostart":false,"home_assistant":{"access_token":"","host":"homeassistant.local","port":8123,"ssl":false}}}
[2024-01-03][10:24:40][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://homeassistant.local:8123"}
[2024-01-03][10:24:40][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:24:40][INFO][webview::unknown] Attached console
[2024-01-03][10:24:43][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://homeassistant.local:8123"}
[2024-01-03][10:24:43][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:24:57][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://192.168.1.200:8123/"}
[2024-01-03][10:24:57][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:25:30][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2024-01-03][10:25:30][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared
[2024-01-03][10:26:28][INFO][webview::unknown] Loaded settings: {"settings":{"autostart":false,"home_assistant":{"access_token":"","host":"homeassistant.local","port":8123,"ssl":false}}}
[2024-01-03][10:26:28][INFO][webview::unknown] Attached console
[2024-01-03][10:26:28][INFO][webview::unknown] Opened settings
[2024-01-03][10:26:28][INFO][webview::unknown] Loaded settings: {"settings":{"autostart":false,"home_assistant":{"access_token":"","host":"homeassistant.local","port":8123,"ssl":false}}}
[2024-01-03][10:26:28][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://homeassistant.local:8123"}
[2024-01-03][10:26:28][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:26:28][INFO][webview::unknown] Attached console
[2024-01-03][10:26:36][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://192.168.1.100:8123/"}
[2024-01-03][10:26:36][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:26:39][INFO][webview::unknown] Validating settings: {"home_assistant_url":"http://192.168.1.100:8123/"}
[2024-01-03][10:26:39][INFO][webview::unknown] Home Assistant URL is not HTTPS
[2024-01-03][10:27:28][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2024-01-03][10:27:28][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared
[2024-01-03][10:27:44][WARN][tao::platform_impl::platform::event_loop::runner] NewEvents emitted without explicit RedrawEventsCleared
[2024-01-03][10:27:44][WARN][tao::platform_impl::platform::event_loop::runner] RedrawEventsCleared emitted without explicit MainEventsCleared
[2024-01-03][10:27:46][WARN][wry::webview::webview2::file_drop] Error occurred while processing dropped/hovered item: item is not a file.
[2024-01-03][10:27:48][WARN][wry::webview::webview2::file_drop] Error occurred while processing dropped/hovered item: item is not a file.

Oh... Ok. Saw in the code that it only works on HTTPS. Not sure if it's the best. If it's by design, maybe we need some warning?

Yes, due to the tauri webview running on https, you must also have a home assistatant URL which is on https.

I should add a note in the settings also

Gi60s commented

My logs showed the same error. HTTPS is required.