Fourier orthogonality for inertia averages
Let $H$ be a finite abelian group, written additively, let $G=(\mathbb Z/2\mathbb Z)^2\times H$, and put $\Phi=\{((\alpha,\beta),h):\alpha=0\}$. For each natural number $r$, choose a subgroup $I_r\subseteq G$ and an element $F_r\in G$. For a complex character $\chi\in\widehat G$ and an integer $n\ge1$, define $$a_\chi(n)=\prod_{\substack{r\mid n\\r\ \mathrm{prime}}}\frac1{|I_r|}\sum_{z\in I_r}\chi(v_r(n)F_r+z),$$ where $v_r(n)$ is the exponent of $r$ in $n$ and an empty product is $1$. For every prime $p$, every integer $i\ge1$, and every $g\in G$, $$\frac1{|\Phi|}\sum_{\chi\in\widehat G}\overline{\chi(g)}\,a_\chi(p^i)=\begin{cases}2/|I_p|,&g-iF_p\in I_p,\\0,&g-iF_p\notin I_p.\end{cases}$$
This gives the coefficients $2$, $0$ and $1$ for the three prime cases in the prime-power Fourier identity.