I’ve succesfully written an Arduino sketch that sends temperature, relative humidity and pressure data from an ESP32 + bme280 to my Homey Arduino App. After the DHT11 example I’ve named the vars like this:
Homey.setClass("sensor");
Homey.addCapability("measure_humidity");
Homey.addCapability("measure_temperature");
Homey.addCapability("measure_pressure"); (this one was a wild guess)
Without telling the Arduino anything, Homey decides that my humidity is probably relative humidity expressed in %, temperature is degrees Celcius and pressure is mbar/hpa. How does it know that and how do I name my other variables to get the same goodness with my other sensors? I have a CO2 (MHZ14a) and particle sensor (PMS5007). I have no idea how to name the variables.