I’m not familiar with all the things that can be measured, but it seems there are a lot. Temperature, CO2, CO, pressure, sound, etc.
Would it be better for each one of these things to have it’s own capability, or for there to be a generic “measurement” capability to use for all of them?
One argument for having each one as it’s own is for multi-sensors. Currently, there’s no way for a given device to have multiple of the same capability. (can’t have two switches, two temp gauges, etc) So, if the measurement is made generic, then any device wouldn’t be able to measure more than one thing.
- unit (string) (example: “degrees”, “ppm”, “db”, etc) (this is specific to the type of measurement)
- subUnit (string) (can be used for scales… example: “C” or “F”; “inches” or “centimeters”, etc)
- value (float)