refactor to devices
added unit tests
built out unit tests, working contrib basic sensor