What’s the right way to send email from a notify action group in 2026.8.3 ?
I’d previously been successfully using something like this in conjunction with the SMTP integration:
- name: all
platform: group
services:
- action: mobile_app_user1
- action: mobile_app_user2
- action: email
After receiving the deprecation notice about the notify.email action, I’ve been trying to find the right way to update this to use notify.send_message.
Based on the example at https://www.home-assistant.io/integrations/group/#notify-action-groups, I would’ve guessed that something like this would work:
- name: all
platform: group
services:
- action: mobile_app_user1
- action: mobile_app_user2
- action: send_message
data:
target: email_user_example_org
(notify.email_user_example_org is the entity that’s created by the SMTP integration when I enter [email protected] as a recipient.)
That triggers a stack trace that appears to be complaining that data can’t have any properties (which seems in line with the docs, which state that data is an optional string despite the example treating it as an object with a target property):
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 2926, in async_call
processed_data: dict[str, Any] = handler.schema(service_data)
~~~~~~~~~~~~~~^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/voluptuous/schema_builder.py", line 205, in __call__
return self._compiled([], data)
~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/voluptuous/validators.py", line 256, in _run
return self._exec(self._compiled, value, path)
~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/voluptuous/validators.py", line 386, in _exec
raise e if self.msg is None else AllInvalid(self.msg, path=path)
File "/usr/local/lib/python3.14/site-packages/voluptuous/validators.py", line 384, in _exec
v = func(path, v)
File "/usr/local/lib/python3.14/site-packages/voluptuous/schema_builder.py", line 779, in validate_callable
return schema(data)
File "/usr/local/lib/python3.14/site-packages/voluptuous/schema_builder.py", line 205, in __call__
return self._compiled([], data)
~~~~~~~~~~~~~~^^^^^^^^^^
File "/usr/local/lib/python3.14/site-packages/voluptuous/schema_builder.py", line 549, in validate_dict
return base_validate(path, data.items(), out)
File "/usr/local/lib/python3.14/site-packages/voluptuous/schema_builder.py", line 382, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: extra keys not allowed @ data['target']
If I just list action: email_user_example_org directly, I get a different error (expected since this entity isn’t an action, I think):
Traceback (most recent call last):
File "/usr/src/homeassistant/homeassistant/core.py", line 2894, in async_call
raise ServiceNotFound(domain, service) from None
homeassistant.exceptions.ServiceNotFound: Action notify.email_user_example_org not found
I’ve tried various different permutations of this but haven’t found anything that works so far.
