Moving to new Template sensor configuration but failing (Current Cost & Others)

Also, make sure you assign defaults where necessary.