If you have an automation that tries to reference trigger.to_state, you can't run that automation manually from the "Run actions" button, because it will fail with "UndefinedError: 'dict object' has no attribute 'to_state'". Obviously, in a lot of cases it makes sense that manually running an automation that behaves differently depending on what entity triggered it often won't work properly when manually triggered because there won't be an actual entity to reference, but it still seems like a manual run should generate some kind of dummy trigger entity object with some default values so you could at least, say, use trigger.to_state.name in a notification message and be able to run that automation to check that the notifications are going through instead of the whole thing just failing.