* Add mqtt sensor state encoding * Make encoding attribute not specific to states * Move encoding attribute to schema base