04-25-2025, 03:35 PM
(04-25-2025, 02:08 AM)admin Wrote: try to replace this pin:36 code with new code:
- platform: adc
pin: 36
id: adc36
update_interval: never
attenuation: 11db
-----------------------------to new----------
- platform: adc
pin: 36
id: adc36
name: "A32 Pro A1 Voltage"
update_interval: never
attenuation: 11db
filters:
- lambda:
if (x >= 3.11) {
return x * 1.60256;
} else if (x <= 0.15) {
return 0;
} else {
return x * 1.51;
}
Code:- platform: adc
pin: 36
id: adc36
name: "A32 Pro A1 Voltage"
update_interval: never
attenuation: 11db
filters:
- lambda:
if (x >= 3.11) {
return x * 1.60256;
} else if (x <= 0.15) {
return 0;
} else {
return x * 1.51;
}
After this update the sensor is not reading anything.

