Fix #2 support for reading states.
This was lost in the way, so re-add it. note that we introduce state as a typedef to DevState, not used everywhere yet though…
This was lost in the way, so re-add it. note that we introduce state as a typedef to DevState, not used everywhere yet though…