Player unit frame fade at 100% health or not in combat LF macro or addon

Im looking for a addon on or macro for the unit frame which displays your health/resource bar, along with your level and portrait. I’m looking for that to disappear whilst out of combat and/or I’m at 100%HP

Something like (default player unit frame):

/run RegisterAttributeDriver(PlayerFrame, "state-visibility", "[combat] show; hide")