I modify python_scripts to python_scripts
to my configuration.yaml
Now, I have this error
Fri Feb 28 2020 16:40:41 GMT+0100 (heure normale d’Europe centrale)
[Errno 2] No such file or directory: '/config/python_scripts/bridge_jeedom_influxdb.py'
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/components/websocket_api/commands.py", line 134, in handle_call_service
connection.context(msg),
File "/usr/src/homeassistant/homeassistant/core.py", line 1226, in async_call
await asyncio.shield(self._execute_service(handler, service_call))
File "/usr/src/homeassistant/homeassistant/core.py", line 1253, in _execute_service
await self._hass.async_add_executor_job(handler.func, service_call)
File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run
result = self.fn(*self.args, **self.kwargs)
File "/usr/src/homeassistant/homeassistant/components/python_script/__init__.py", line 96, in python_script_service_handler
execute_script(hass, call.service, call.data)
File "/usr/src/homeassistant/homeassistant/components/python_script/__init__.py", line 126, in execute_script
with open(hass.config.path(FOLDER, sanitize_filename(filename))) as fil:
FileNotFoundError: [Errno 2] No such file or directory: '/config/python_scripts/bridge_jeedom_influxdb.py'
For information, when i run my script, it’s working :
Well, you should read the docs first.
They say that you should add python_script: to your configuration.yaml and that the script should be a *.py file.