Problem install python and win 11

Hello
I am having a problem connecting to the local Dashboard on python (windows 11)
So I installed Python and Esphome (Version: 2023.11.6) without any problem on Windows 11 by following the Pyc tech tutorial [https://www.youtube.com/watch?v=9xy8D8B1sTw 1]
It gets stuck when I configure the dashboard with the command “esphome dashboard configuration”
on the video it’s at 3:24

For my part I have several error lines on python and if I enter my IP address with port 6052 I have a connection refused
there are many other parameters to enter but in the video only “esphome dashboard configuration” is enough!!!

An idea ?
thanks in advance

C:\Users\domin>esphome version
> Version: 2023.11.6
> 
> C:\Users\domin>esphome dashboard
> usage: esphome dashboard [-h] [--port PORT] [--address ADDRESS] [--username USERNAME] [--password PASSWORD]
>                          [--open-ui] [--socket SOCKET]
>                          configuration
> esphome dashboard: error: the following arguments are required: configuration
> 
> C:\Users\domin>esphome dashboard configuration
> 2023-12-13 00:47:23,970 INFO Starting dashboard web server on http://0.0.0.0:6052 and configuration dir configuration...Traceback (most recent call last):
>   File "<frozen runpy>", line 198, in _run_module_as_main
>   File "<frozen runpy>", line 88, in _run_code
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Scripts\esphome.exe\__main__.py", line 7, in <module>
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\__main__.py", line 1040, in main
>     return run_esphome(sys.argv)
>            ^^^^^^^^^^^^^^^^^^^^^
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\__main__.py", line 1003, in run_esphome
>     return PRE_CONFIG_ACTIONS[args.command](args)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\__main__.py", line 517, in command_dashboard
>     return dashboard.start_web_server(args)
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\dashboard\dashboard.py", line 1517, in start_web_server
>     status_thread = MDNSStatusThread()
>                     ^^^^^^^^^^^^^^^^^^
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\dashboard\dashboard.py", line 977, in __init__
>     self._refresh_hosts()
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\dashboard\dashboard.py", line 981, in _refresh_hosts
>     entries = _list_dashboard_entries()
>               ^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\dashboard\dashboard.py", line 726, in _list_dashboard_entries
>     return settings.entries()
>            ^^^^^^^^^^^^^^^^^^
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\dashboard\dashboard.py", line 148, in entries
>     for file in self.list_yaml_files():
>                 ^^^^^^^^^^^^^^^^^^^^^^
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\dashboard\dashboard.py", line 129, in list_yaml_files
>     return util.list_yaml_files([self.config_dir])
>            ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>   File "C:\Users\domin\AppData\Local\Programs\Python\Python312\Lib\site-packages\esphome\util.py", line 292, in list_yaml_files
>     [os.path.join(folder, p) for folder in folders for p in os.listdir(folder)]
>                                                             ^^^^^^^^^^^^^^^^^^
> FileNotFoundError: [WinError 3] Le chemin d’accès spécifié est introuvable: 'configuration

It’s pretty awful documentation for this - I had to read it 3 times to work out what to do.

That rather long error message means it can’t find your configuration directory. And the “configuration” in the “esphome dashboard configuration” is actually referring to that directory.

Create a new directory, then replace “configuration” with the path to that directory. Should then work.

It’s OK for the directory
Thank you