Some sensors not being saved by recorder?

Possibly just my lack of knowledge about how the recorder works in terms of ESPHome sensors.

I am measuring the voltage of a battery and it updates every 10 seconds. If I have the entity graph open then the updates show… But if I close the popup and re-open then the history is gone.

My ESPHome device also has a Wifi Signal sensor and this does seem to be recording properly to history so makes me think it’s something about my voltage sensor setup.

sensor:
  - platform: adc
    pin: GPIO34
    name: "${device_name} Battery Voltage"
    accuracy_decimals: 3
    device_class: voltage
    unit_of_measurement: "V"
    update_interval: 10s
    filters:
      - multiply: 5.0000 # The ADC Divides by 5.00 so we multiple back again

Any help and enlightenment would be appreciated :slight_smile:

Hi
Both of those quick graphs are only a minute long. What do you see if you click show more?

1 Like

The “show more” shows no further detail unfortunately.

Check if database is corrupt. Go to file editor and click on icon for folder in upper righr hand.

I’m pretty sure it’s not a database issue and most likely something wrong with how I have setup my voltage sensor in ESPHome. I setup a template sensor in ESPHome that does some calcs on the voltage to return a % battery level and that sensor has no issues recording historical data…

I have been resorting to ChatGPT (yes I know!) in the last few days to help out with some ESPHome queries and in a lot of cases it has at least put me on the right path…

And in this case it recommended I check that I had not excluded any entities in my configuration.yaml and low and behold look what I have in there from when I was setting up all my Tasmota power plugs and must have decided I didn’t need historical voltage on those… DOH, guess I need to rename my new voltage sensor slightly different so it still gets logged.

image

Changing my sensor name in ESPHome to end in “volts” instead of “voltage” has fixed my issue :slight_smile:

image