simplified State object
changed sensor class to include 'name' value