Let $Y$ be a Poisson $\lambda$ random variable, and define $X=I_{[Y>0]}$. Compute $E(Y\,|\,X)$ as a function of $X$ and find $E(|Y-X|)$.
So far, I found the mass function of $X$, $$f_X(x)=\begin{cases} P(X=0)&=e^{-\lambda}\\ P(X=1)&= 1-e^{-\lambda} \end{cases}$$ I don't see how to find the mass function of $Y$ given $X$.
To calculate $E(|Y-X|)$, I think I need to separate into two cases. Since $X$ only equal to $0$ and $1$, $$\begin{align*} E(|Y-X|)&= \begin{cases} 0&\;\;\text{if $Y=0,1$}\\ E(Y-1)=\lambda-1&\;\;\text{if $Y\geq 2$} \end{cases} \end{align*}$$