Thanks i will do that.
Here are the errors
Error doing job: Task exception was never retrieved
02:13 helpers/template.py (ERROR)
Error doing job: Task exception was never retrieved
02:13 helpers/template.py (ERROR)
Error doing job: Task exception was never retrieved
02:13 helpers/template.py (ERROR)
Error doing job: Task exception was never retrieved
Maybe more relevant like this:
2018-01-19 02:09:38 WARNING (MainThread) [homeassistant.setup] Setup of sensor is taking over 10 seconds.
2018-01-19 02:09:38 WARNING (MainThread) [homeassistant.setup] Setup of media_player is taking over 10 seconds.
2018-01-19 02:09:38 WARNING (MainThread) [homeassistant.setup] Setup of switch is taking over 10 seconds.
2018-01-19 02:09:38 WARNING (MainThread) [homeassistant.setup] Setup of remote is taking over 10 seconds.
2018-01-19 02:09:38 WARNING (MainThread) [homeassistant.setup] Setup of device_tracker is taking over 10 seconds.
2018-01-19 02:09:40 WARNING (MainThread) [homeassistant.setup] Setup of tts is taking over 10 seconds.
2018-01-19 02:09:56 WARNING (MainThread) [homeassistant.components.media_player] Setup of platform cast is taking over 10 seconds.
2018-01-19 02:10:18 ERROR (MainThread) [homeassistant.core] Timer got out of sync. Resetting
2018-01-19 02:13:07 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/template.py", line 118, 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 "<template>", 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: 'None' has no attribute 'state'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 343, in async_trigger
yield from self._async_action(self.entity_id, variables)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 433, in action
yield from script_obj.async_run(variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 151, in async_run
yield from self._async_call_service(action, variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 181, in _async_call_service
self.hass, action, True, variables, validate_config=False)
File "/usr/src/app/homeassistant/helpers/service.py", line 76, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE]))
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in _data_template_creator
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in <dictcomp>
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 74, in _data_template_creator
return value.async_render(variables)
File "/usr/src/app/homeassistant/helpers/template.py", line 120, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'None' has no attribute 'state'
2018-01-19 02:13:10 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/template.py", line 118, 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 "<template>", 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: 'None' has no attribute 'state'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 343, in async_trigger
yield from self._async_action(self.entity_id, variables)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 433, in action
yield from script_obj.async_run(variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 151, in async_run
yield from self._async_call_service(action, variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 181, in _async_call_service
self.hass, action, True, variables, validate_config=False)
File "/usr/src/app/homeassistant/helpers/service.py", line 76, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE]))
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in _data_template_creator
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in <dictcomp>
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 74, in _data_template_creator
return value.async_render(variables)
File "/usr/src/app/homeassistant/helpers/template.py", line 120, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'None' has no attribute 'state'
2018-01-19 02:13:13 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/template.py", line 118, 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 "<template>", 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: 'None' has no attribute 'state'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 343, in async_trigger
yield from self._async_action(self.entity_id, variables)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 433, in action
yield from script_obj.async_run(variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 151, in async_run
yield from self._async_call_service(action, variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 181, in _async_call_service
self.hass, action, True, variables, validate_config=False)
File "/usr/src/app/homeassistant/helpers/service.py", line 76, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE]))
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in _data_template_creator
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in <dictcomp>
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 74, in _data_template_creator
return value.async_render(variables)
File "/usr/src/app/homeassistant/helpers/template.py", line 120, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'None' has no attribute 'state'
2018-01-19 02:13:16 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/template.py", line 118, 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 "<template>", 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: 'None' has no attribute 'state'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 343, in async_trigger
yield from self._async_action(self.entity_id, variables)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 433, in action
yield from script_obj.async_run(variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 151, in async_run
yield from self._async_call_service(action, variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 181, in _async_call_service
self.hass, action, True, variables, validate_config=False)
File "/usr/src/app/homeassistant/helpers/service.py", line 76, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE]))
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in _data_template_creator
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in <dictcomp>
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 74, in _data_template_creator
return value.async_render(variables)
File "/usr/src/app/homeassistant/helpers/template.py", line 120, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'None' has no attribute 'state'
2018-01-19 02:13:49 ERROR (MainThread) [homeassistant.core] Error doing job: Task exception was never retrieved
Traceback (most recent call last):
File "/usr/src/app/homeassistant/helpers/template.py", line 118, 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 "<template>", 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: 'None' has no attribute 'state'
During handling of the above exception, another exception occurred:
Traceback (most recent call last):
File "/usr/local/lib/python3.6/asyncio/tasks.py", line 180, in _step
result = coro.send(None)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 343, in async_trigger
yield from self._async_action(self.entity_id, variables)
File "/usr/src/app/homeassistant/components/automation/__init__.py", line 433, in action
yield from script_obj.async_run(variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 151, in async_run
yield from self._async_call_service(action, variables)
File "/usr/src/app/homeassistant/helpers/script.py", line 181, in _async_call_service
self.hass, action, True, variables, validate_config=False)
File "/usr/src/app/homeassistant/helpers/service.py", line 76, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE]))
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in _data_template_creator
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 72, in <dictcomp>
for key, item in value.items()}
File "/usr/src/app/homeassistant/helpers/service.py", line 74, in _data_template_creator
return value.async_render(variables)
File "/usr/src/app/homeassistant/helpers/template.py", line 120, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'None' has no attribute 'state'
Here is my automations.yaml edited with your value:
- alias: google home - Adjust Volume
trigger:
- platform: state
entity_id: input_number.slider1
action:
- service: media_player.volume_set
data_template:
entity_id: media_player.google_home
volume_level: '{{ states.input_number.google_home.state | float / 80 }}'
- alias: yamaha - Adjust Volume
trigger:
- platform: state
entity_id: input_number.slider2
action:
- service: media_player.volume_set
data_template:
entity_id: media_player.home_cinema_main
volume_level: '{{ states.input_number.home_cinema_main.state | float / 80 }}'
- alias: google home - Volume
trigger:
- platform: state
entity_id: media_player.google_home
action:
- service: input_number.set_value
data_template:
entity_id: input_number.slider1
value: '{{ states.media_player.google_home.attributes.volume_level | float * 80 }}'
- alias: yamaha - Volume
trigger:
- platform: state
entity_id: media_player.home_cinema_main
action:
- service: input_number.set_value
data_template:
entity_id: input_number.slider2
value: '{{ states.media_player.home_cinema_main.attributes.volume_level | float * 80 }}'