#Device_class for ESP32 devices. (esphome)

1 messages · Page 1 of 1 (latest)

rose tapir
#

I am trying to build my own ESP device to measure both battery % left and how much propane is left (based on my hall sensor reading).

I keep getting device_class errors.

Apparently I can't use unit_of_measurement: '%' with device_class volume, nor with device_class voltage.

For the latter, I get that I should use device_class: battery,

but for the remote hall sensor that measures how much propane I have left, neither volume nor gas allows for unit_of_measurement: '%' without errors. Am I supposed to call my propane tank a battery?