I’m trying to run a python script called frontlightson.py from a simple automation. I’ve put copies of the script in two places in the folder
‘’’ /.homeassistant’’’
one copy is in the root the other is in
‘’’/.homeassistant/python_scripts’’’
The relevant lines in configuration.yaml are:
‘’’
python_script:
logger:
default: error
logs:
homeassistant.components.python_script: warning
‘’’
my test automation is:
‘’’
alias: ‘frontlightson’
initial_state: true
trigger:
platform: time
at: ‘15:12’
action:
service: python_script.frontlightson
‘’’
when the service runs I get the log error:
2017-08-20 15:12:00 WARNING (MainThread) [homeassistant.core] Unable to find service python_script/frontlightson
presumably my script is not in the correct location, or my configuration.yaml is wrong
The Docs say create a folder
‘’’
<config>/python_scripts
‘’’
Perhaps I don’t know where that means.