Log sensor based on other sensor state

Hi

How do I log/display a sensor only if another sensors state is a certain value. I can do a conditional card on a dashboard but would like to display historical results as a graph.
Would prefer to do through UI if possible as my yaml is not strong.
TIA

Hello bikerwookie,

I’m afraid a bit of YAML is in your future, friend.

Thanks that was what I fearing