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;
}
- 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;
}
YouTube: https://www.youtube.com/c/KinCony
Online Store: https://shop.kincony.com
Alibaba Store: https://kincony.en.alibaba.com/
Online Store: https://shop.kincony.com
Alibaba Store: https://kincony.en.alibaba.com/

