Can I show 2 different calculated value in the dashboard from the same Output from a D1 Mini ESP8266?
I am measuring battery level through the A0 pin on the D1 mini.
Calculating VOLTAGE through voltage divider etc. then using calibrate_linear to get a BATTERY CHARGE LEVEL.
I would love to be able to see both VOLTAGE and BATTERY CHARGE (%) on my dashboard but dont know how to do this.
When I do this code (without #'s in the last section) then I only get the Battery Voltage instead of both Voltage and Charge (%) Also HA only ever recongnises one of them not both at same time.
You could use a template sensor that read from the last value from the adc. You could check this page out if you want to do more fancy stuff https://esphome.io/guides/automations.html#automatio.
I used this below to calibrate my levers on the soil moisture sensor (“Jordfuktighet” in Swedish)