What problem are you having? The sensor config looks right (assuming you have it properly nested underneath sensor: in configuration.yaml). Are you using the right entity name in the card config?
That card requires a newer version of home assistant. Are you up to date? The attributes that are required for that card to work were added mid july. So that’s sometime around 0.97 or greater.