Generic thermostat away_mode not valid

I want to use the away_mode of the generic thermostat but is seems not to be valid:

Invalid config for [automation]: [away_mode] is an invalid option for [automation]. Check: automation->action->0->away_mode

Any solution?