Thanks, now instead of that error on startup, I just get the first one, like if I had called it manually.
2018-01-17 21:28:35 WARNING (MainThread) [homeassistant.components.script] Script script.janet_speech_engine already running.
I’m completely stumped.
Is anyone running it directly from the github package files with no additional files? Nothing split down anymore?
Edit: Still getting the same error, even with the changes.
2018-01-17 21:38:24 ERROR (MainThread) [homeassistant.core] Error executing service <ServiceCall script.janet_speech_engine: call_introduction=1, call_greeting=1>
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/template.py", line 118, in async_render
return self._compiled.render(kwargs).strip()
File "/srv/homeassistant/lib/python3.5/site-packages/jinja2/environment.py", line 1008, in render
return self.environment.handle_exception(exc_info, True)
File "/srv/homeassistant/lib/python3.5/site-packages/jinja2/environment.py", line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File "/srv/homeassistant/lib/python3.5/site-packages/jinja2/_compat.py", line 37, in reraise
raise value.with_traceback(tb)
File "<template>", line 156, in top-level template code
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/template.py", line 411, in forgiving_round
value = round(float(value), precision)
jinja2.exceptions.UndefinedError: 'None' has no attribute 'state'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/core.py", line 1010, in _event_to_service_call
yield from service_handler.func(service_call)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/script.py", line 163, in service_handler
yield from script.async_turn_on(variables=service.data)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/components/script.py", line 215, in async_turn_on
yield from self.script.async_run(kwargs.get(ATTR_VARIABLES))
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/script.py", line 151, in async_run
yield from self._async_call_service(action, variables)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/script.py", line 181, in _async_call_service
self.hass, action, True, variables, validate_config=False)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py", line 80, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE]))
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py", line 76, in _data_template_creator
for key, item in value.items()}
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py", line 76, in <dictcomp>
for key, item in value.items()}
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/service.py", line 78, in _data_template_creator
return value.async_render(variables)
File "/srv/homeassistant/lib/python3.5/site-packages/homeassistant/helpers/template.py", line 120, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'None' has no attribute 'state'