Hey @mike2506red, welcome to the Cayenne Community.
You’ll likely be interested in this post which shows how to build VirtualWrite()
statements for devices connected via our Bring Your Own Thing (MQTT) API: Data types for Cayenne MQTT API
In short, if you have a variable myHum
with a humidity percentage, you can pass it to Cayenne with a statement like:
virtualWrite(13, myHum, "rel_hum", "p")
This passes the value of myHum
to MQTT channel 13, and specifies the Data Type as humidity and the units as percentage. You should be able to see on the chart in that post where I got those last two values from.
Once run, this statement should auto-create a widget on your dashboard with myHum’s humidity value, looking similar to this: