Data types for Cayenne MQTT API

Hi, thanks for this info.

I have 2 questions

  1. Can I change type value from digital_sensor to analog_sensor?

  2. For a scale I want to use Kg as unit value, according to your table there is no Kg, so I use β€œd”. Is there a possibility to use Kg as unit value?

I read the scale by a ACD type HX711.

I have this code for a scale, value I send is weigthKg

CAYENNE_OUT(VIRTUAL_CHANNEL_6) {
  Cayenne.virtualWrite(VIRTUAL_CHANNEL_6, weightKg, "digital_sensor", "d");  
}

M

digital_sensor is used for digital state values like open/close or on/off.
you need to a generic datatype analog_sensor for any unit which is not supported in our end.

1 Like

Hi @shramik_salgaonkar thanks for reply.

I manage now to send analog data and I can see the graphs. I have sent data for 1 week

In the graph i can se Live, m and h, like this

For Day I see this
image

In image section I see this

Why don’t I see any data under Data section?

M

Due to problems making Cayenne work for my devices I have changed to Home Assistant with influxDB and grafana dashboard.