Never thought of using the template tool like that thank you. However it does not seem to work. The error I get when setting the template to
{{ trigger.event.data.actiondata.entityid }}
is
Traceback (most recent call last):
File "/usr/lib/python3.4/asyncio/tasks.py", line 237, in _step
result = next(coro)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/automation/__init__.py", line 343, in async_trigger
yield from self._async_action(self.entity_id, variables)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/components/automation/__init__.py", line 433, in action
yield from script_obj.async_run(variables)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/script.py", line 151, in async_run
yield from self._async_call_service(action, variables)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/script.py", line 181, in _async_call_service
self.hass, action, True, variables, validate_config=False)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/service.py", line 74, in async_call_from_config
config[CONF_SERVICE_DATA_TEMPLATE]))
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/service.py", line 70, in _data_template_creator
for key, item in value.items()}
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/service.py", line 70, in <dictcomp>
for key, item in value.items()}
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/service.py", line 72, in _data_template_creator
return value.async_render(variables)
File "/usr/local/lib/python3.4/dist-packages/homeassistant/helpers/template.py", line 104, in async_render
raise TemplateError(err)
homeassistant.exceptions.TemplateError: UndefinedError: 'dict object' has no attribute 'actiondata