Export a text-only sensor to Prometheus not working

Hello all
I have a text sensor created from a modbus/tcp device which is defined like this:

- name: E3DC Firmware Release
  unique_id: e3dc_firmware_release
  address: 40051
  data_type: string
  count: 16
  scan_interval: 86400

Which creates a sensor with a value like H20_2023_02. Now I want to export that value with the prometheus exporter but upon looking up the export, the sensor shows up in the export but not the value. Is there a way to get that value exported?

Thanks for your help!

1 Like

I’d like to understand how this works too. I have several custom sensors collecting data from MQTT and a REST sensor that monitor my solar equipment (MQTT) and batteries down to the cell level (REST) that don’t seem to show in Prometheus.

1 Like