Cannot trigger via group state

Welcome. Please edit your post and format your pasted code as per point 11 here.

Then go to developer tools / states menu and check what the actual state of your group is.

Away in your state trigger should probably be not_home.

What is displayed in human friendly terms in the Lovelace frontend is not always the state of an entity. Another example is a binary sensor. Its state is always on or off but can display as moving, clear, detected, and a whole bunch of other things depending on the device class applied to it.