Show past attributes

Hello,

I’m looking for a way to get past attributes of a binary_sensor? I can’t find any way to query the history to get those past attributes.