Add support for discrete sensors

Previously support was added for 'analog' sensors.  This incorporates
support for 'discrete' sensors.  Those are sensors without a particular
numeric value, but a set of states to assert.

Change-Id: Ia8087ded8699f6f59853ffc93cc1842f8867faca