Assets are active components that hold value about a measure, either in physical or virtual space.
Most important physical assets are sensors and actuators.
There are 3 supported asset kinds:
temperature
or light
motor
or LED
health
or consumption
Name uniquely identifies the asset within it’s device. Once you define it, you can’t change it.
An asset with the same name can exist on two different devices. For example if you have 5 weather station devices, they might all have their own temperature
assets.
The profile field describes the type of data being measured by the asset. Both simple types like integer as well as more complex and custom object data types are possible. Read more about profiles.
When modelling a weather station, one of the things you might want to represent measured temperature as a numeric value.
To do this, you will need to create a sensor called temperature
, using the number profile as {"type": "number", "unit": "°C"}
- and update values with asset states such as 23.1°C
or 18°C
.