Zone as at_home

No. Read my post again, slowly; and share the YAML code for your automation, correctly formatted.

at_home is not a state that HA uses. Are you sure you’re using Home Assistant?