Esphome voltage show

Hello. And sorry for my bad english. I’m just tinkering around with ESPhome. I built a temperature sensor for my small pool, for outside and water temperature. The whole thing runs on a small solar panel, with TP4056 USB-C charging module, and a 18650 battery. This is how the D1 mini is fed. Everything works so far. My question, can the D1 Mini be queried as to what voltage is currently present? And I would like to have integrated it with ESPhome, if at all possible. Maybe there’s something like Wi-Fi, just for excitement

  • platform: wifi_signal
    name: “WiFi signal”
    update_interval: 60s

Yep! The 8266 can read the voltage the chip is getting.

I put it in all my ESP8266 projects by default, along with wifi strength, uptime, etc. just because.

1 Like

As I said, I’m an absolute layman. I found and included the following. I set a resistor from 3.3v to A0 and played the following on the D1 mini. and the D1 shows me 1 volt.

- platform: adc
    name: "Batterie"
    pin: VCC
    accuracy_decimals: 2
    update_interval: 60s

So I kept looking and found this`

filters:
- multiply: 3.3

but it shows me over 16v. Then I lowered the multiplier to 1.13. now I’m at 4.06V, (just charging via the solar panel) which also agrees with the meter. Is my approach correct or am I wrong with the multiplier?

DIeter

Why did you add a resistor? Is that something specific to your setup/board?

I don’t have any multipliers or extra components on mine and it reads exactly what I’d expect: around 3.3 V.

I want to monitor the voltage from the battery that is being charged through the solar panel. That means I’m going to 5v with a resistor of A0. Now it fits but the battery shows 3.89V with the measuring device and in the Home Assistant too.

Hey, any luck with reading the values in the end?