Combine multiple conditions with an action for each within one automation

To point you in the right direction, notify messages support templating. So the message would look more like:

'{% if night %}Welcome home{% else %}Good morning!{% endif %}'

That “if night” isn’t actually going to work. I don’t have an example handy in my config to post for you. I bet you can find some ideas from the “creating an alarm clock” project: