How do I: Tweak vsphere/esxi sensor check to exclude batteries?

Especially for the ESX sensors, you can define for every sensor his own state.
In your case you use the complete name of the sensor (no regex allowed here i don’t know why) and set it’s status to good.