Could not connect error
I'm getting this error both if trying the https with fully qualified domain name or http with IP:port. Getting the error clears my settings.
Keep in mind Flow Launcher only saves settings once the settings window is closed.
Please try entering your settings, closing the settings window and try to activate the plugin once more.
Good to know. I tested both options, making sure to close the settings and reopen them to ensure proper persistance of my values. However, behavior is the same. Not sure how to troubleshoot further
Please post your plugin.log located where HA-Commander is installed. This will help us find out what the issue is.
Be sure to replace any sensitive info such as your server URL or API key before posting.
Hello,
I also have this issue. The plugin.log file is empty, and FlowLauncher's log has no mention of the issue.
The URL used in the settings works fine, the token was reissued and updated.
There is a log in HA about the attempted login:
This issue started happening after updating HA Core (currently using version 2023.5.2)
Hello,
I also have this issue. The plugin.log file is empty, and FlowLauncher's log has no mention of the issue.
[image]
The URL used in the settings works fine, the token was reissued and updated.
There is a log in HA about the attempted login:
[image]
This issue started happening after updating HA Core (currently using version 2023.5.2) I can confirm it works for the latest version (see below).
I think your settings are not being saved correctly and the plugin is using old/incorrect settings.
Until I can issue a fix you can manual update these settings
-
First Close Flow Launcher
(We dont want Flow Launcher to overwrite our new manual settings)
-
Edit your settings file directly by going here:
%AppData%\FlowLauncher\Settings\Plugins\HA-Commander -
Replace the values in your file with the correct settings:
Working!
Right you are @Garulf, manually setting the data in the plugin Settings.json file works. Thank you!
Even after changing the settings in the json file it doesn't work for me. The log just gives this (some personal info removed):
19:54:22 DEBUG (launcher.py): Request:
{
"method": "query",
"parameters": [
""
],
"settings": {
"url": "**************",
"token": "*************",
"verify_ssl": "true",
"max_results": "50",
"debug": true
}
}
19:54:22 DEBUG (launcher.py): Params: ['']
19:54:22 DEBUG (main.py): Initializing Home Assistant Client
19:54:22 DEBUG (connectionpool.py): Starting new HTTPS connection (1): **************
19:54:22 DEBUG (launcher.py): ########## Total time: 52ms ##########
After trying the manual edit tip, I progressed somewhat, but the plugin still is not fonctionning correctly it seems.
I do not have a connection error, but I retreive nothing :
After trying the manual edit tip, I progressed somewhat, but the plugin still is not fonctionning correctly it seems.
I do not have a connection error, but I retreive nothing :
I confirm. Maybe the problem is the updated built-in Python?
Hi @Garulf , any idea what could be causing the issue?
I have the same 'Could not connect' error.
- the settings are saved once I fill in the details in the Flow plugins settings
- Close and reopen the settings window -> confirms the settings are as defined
- Try to invoke 'ha ' in the flow launcher text box. -> returns an error that ha could not connect. AND overrides the settings to defaults
earlier I had to manually edit the settings in the json file, and it worked for a couple of days. not sure how that got over written again.
EDIT: manually editing the file again seems to retain the values and ha is working. the only concern is it may get overwritten again

I confirm. Maybe the problem is the updated built-in Python?