Looking for automation help

Yes that’s the way for sensors. Binary sensors will always be on or off though.

Thank you, @tom_l !!