Of course it works but like all things "tax related" - the Devil is in the details.
Sometimes the juice isn't worth the squeeze but my "hard wired" L2 install should realize a tax savings of about $300.
Form 8911: https://www.irs.gov/pub/irs-pdf/f8911.pdf

US extends tax credits for EV chargers, motorcycles...
When are "incentive" credits handed out both retroactively and extended forward? When a group of politicians are making the rules! The US spending bill just agreed to last night includes extension of tax credits for home EV charger installations, electric motorcycles, and fuel-cell vehicles...