For the Power Type attribute, that’s read-only which is why you’re getting that error. It should be auto-detected by the switch and reported there.
Re power and energy, you’re likely just needing this fix if you don’t want to wait for the next release.