Checking for 'home' not working in automations

The group idea suggested by sublevel7 is a good one if you need this state pair often.