Hi I am getting the following message:
Log Details (ERROR)
Sat Feb 16 2019 20:01:21 GMT+0100 (Ora standard dell’Europa centrale)
Error handling message: {‘type’: ‘call_service’, ‘domain’: ‘light’, ‘service’: ‘turn_on’, ‘service_data’: {‘entity_id’: ‘light.armadio_1’}, ‘id’: 17}
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/template.py”, line 140, in async_render
return self._compiled.render(kwargs).strip()
File “/usr/local/lib/python3.6/site-packages/jinja2/asyncsupport.py”, line 76, in render
return original_render(self, *args, **kwargs)
File “/usr/local/lib/python3.6/site-packages/jinja2/environment.py”, line 1008, in render
return self.environment.handle_exception(exc_info, True)
File “/usr/local/lib/python3.6/site-packages/jinja2/environment.py”, line 780, in handle_exception
reraise(exc_type, exc_value, tb)
File “/usr/local/lib/python3.6/site-packages/jinja2/_compat.py”, line 37, in reraise
raise value.with_traceback(tb)
File “”, line 1, in top-level template code
File “/usr/local/lib/python3.6/site-packages/jinja2/filters.py”, line 668, in do_float
return float(value)
jinja2.exceptions.UndefinedError: ‘brightness’ is undefined
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/websocket_api/decorators.py”, line 17, in _handle_async_response
await func(hass, connection, msg)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/websocket_api/commands.py”, line 148, in handle_call_service
connection.context(msg))
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 1130, in async_call
self._execute_service(handler, service_call))
File “/usr/local/lib/python3.6/site-packages/homeassistant/core.py”, line 1152, in _execute_service
await handler.func(service_call)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/light/init.py”, line 287, in async_handle_light_on_service
await light.async_turn_on(**pars)
File “/usr/local/lib/python3.6/site-packages/homeassistant/components/mqtt/light/schema_template.py”, line 398, in async_turn_on
self._templates[CONF_COMMAND_ON_TEMPLATE].async_render(**values),
File “/usr/local/lib/python3.6/site-packages/homeassistant/helpers/template.py”, line 142, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: ‘brightness’ is undefined
what should I do?
Thanks